[{"data":1,"prerenderedAt":523,"buildId":524},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-mcp\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":522,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-mcp\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":511},"minimark",[10,25,30,193,229,233,236,249,281,321,331,338,342,350,376],[11,12,13,14,18,19,24],"p",{},"Pass these options to ",[15,16,17],"code",{},"pluginMcp()",". Shared options link to ",[20,21,23],"a",{"href":22},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options","Shared plugin options",", and this page gives only their default here.",[26,27,29],"h2",{"id":28},"options-overview","Options overview",[31,32,33,49],"table",{},[34,35,36],"thead",{},[37,38,39,43,46],"tr",{},[40,41,42],"th",{},"Option",[40,44,45],{},"Purpose",[40,47,48],{},"Default",[50,51,52,71,87,103,118,136,153,176],"tbody",{},[37,53,54,63,66],{},[55,56,57],"td",{},[20,58,60],{"href":59},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output",[15,61,62],{},"output",[55,64,65],{},"Where handlers are written.",[55,67,68],{},[15,69,70],{},"{ path: 'mcp', barrel: { type: 'named' } }",[37,72,73,81,84],{},[55,74,75],{},[20,76,78],{"href":77},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#group",[15,79,80],{},"group",[55,82,83],{},"Split output by tag or path.",[55,85,86],{},"None",[37,88,89,97,100],{},[55,90,91],{},[20,92,94],{"href":93},"#client",[15,95,96],{},"client",[55,98,99],{},"Registered client plugin the handlers call.",[55,101,102],{},"Detected",[37,104,105,113,116],{},[55,106,107],{},[20,108,110],{"href":109},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#include",[15,111,112],{},"include",[55,114,115],{},"Keep only operations that match.",[55,117,86],{},[37,119,120,128,131],{},[55,121,122],{},[20,123,125],{"href":124},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#exclude",[15,126,127],{},"exclude",[55,129,130],{},"Skip operations that match.",[55,132,133],{},[15,134,135],{},"[]",[37,137,138,146,149],{},[55,139,140],{},[20,141,143],{"href":142},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#override",[15,144,145],{},"override",[55,147,148],{},"Apply different options per pattern.",[55,150,151],{},[15,152,135],{},[37,154,155,163,171],{},[55,156,157],{},[20,158,160],{"href":159},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#resolver",[15,161,162],{},"resolver",[55,164,165,166,170],{},"Customize generated names and file paths. See ",[20,167,169],{"href":168},"#resolver-members","resolver members",".",[55,172,173],{},[15,174,175],{},"resolverMcp",[37,177,178,186,189],{},[55,179,180],{},[20,181,183],{"href":182},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#macros",[15,184,185],{},"macros",[55,187,188],{},"Rewrite AST nodes before printing.",[55,190,191],{},[15,192,135],{},[194,195,197,198,201,202,205,206,209,210,213,214,217,218,221,222,225,226,228],"blockquote",{"as":196},"important","Keep ",[15,199,200],{},"output.path"," a folder name, such as the default ",[15,203,204],{},"'mcp'",". The plugin writes ",[15,207,208],{},"server.ts",", ",[15,211,212],{},"start.ts",", and ",[15,215,216],{},".mcp.json"," at its root, and single-file output (",[15,219,220],{},"output.mode: 'file'",", or a ",[15,223,224],{},"path"," with an extension) has no room for them. With ",[15,227,80],{},", only the handlers move into subfolders.",[26,230,232],{"id":231},"option-details","Option details",[234,235,96],"h3",{"id":96},[11,237,238,239,241,242,245,246,170],{},"Selects the registered client plugin that the handlers call. When ",[15,240,96],{}," is unset, the handlers call the only registered client plugin. Set transport options such as ",[15,243,244],{},"baseURL"," on that plugin, or in your own client module with ",[15,247,248],{},"'client'",[31,250,251,259],{},[34,252,253],{},[37,254,255,257],{},[40,256],{},[40,258],{},[50,260,261,271],{},[37,262,263,266],{},[55,264,265],{},"Type",[55,267,268],{},[15,269,270],{},"'fetch' | 'axios' | 'ky' | 'client'",[37,272,273,276],{},[55,274,275],{},"Required",[55,277,278],{},[15,279,280],{},"false",[282,283,284,295,304,313],"field-group",{},[285,286,288,289,170],"field",{"name":287},"'fetch'","The handlers call ",[20,290,292],{"href":291},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch",[15,293,294],{},"@kubb\u002Fplugin-fetch",[285,296,288,298,170],{"name":297},"'axios'",[20,299,301],{"href":300},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-axios",[15,302,303],{},"@kubb\u002Fplugin-axios",[285,305,288,307,170],{"name":306},"'ky'",[20,308,310],{"href":309},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-ky",[15,311,312],{},"@kubb\u002Fplugin-ky",[285,314,288,315,170],{"name":248},[20,316,318],{"href":317},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client",[15,319,320],{},"@kubb\u002Fplugin-client",[194,322,324,325,327,328,330],{"as":323},"warning","The build fails when no client plugin is registered, when several are registered and ",[15,326,96],{}," is unset, or when ",[15,329,96],{}," names a plugin that is not registered.",[11,332,333,334,170],{},"See ",[20,335,337],{"href":336},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-mcp\u002Fguides\u002Fserver#tool-calls-and-results","Tool calls and results",[26,339,341],{"id":340},"resolver-members","Resolver members",[11,343,344,346,347,349],{},[15,345,162],{}," takes one patch or an array of patches. An array merges over ",[15,348,175],{}," from left to right.",[11,351,352,353,355,356,358,359,209,362,213,365,368,369,209,373,375],{},"Members you leave out of a ",[15,354,162],{}," patch keep ",[15,357,175],{},". Besides the shared ",[15,360,361],{},"name",[15,363,364],{},"file",[15,366,367],{},"imports"," members of ",[20,370,371],{"href":159},[15,372,162],{},[15,374,175],{}," has these:",[377,378,383],"pre",{"language":379,"filename":380,"code":381,"class":382},"typescript","Partial override","type ResolverMcpPatch = {\n handler?: {\n name?(node: OperationNode): string \u002F\u002F → 'showPetByIdHandler'\n }\n tool?: {\n name?(node: OperationNode): string \u002F\u002F → 'showPetById'\n }\n}","highlights",[15,384,386,406,407,406,424,406,456,406,463,406,476,406,501,406,507],{"class":385},"language-typescript",[387,388,391,395,399,402],"span",{"class":389,"style":390},"line","display: inline",[387,392,394],{"style":393},"color:#d73a49;--hls-dark:#f97583","type ",[387,396,398],{"style":397},"color:#6f42c1;--hls-dark:#b392f0","ResolverMcpPatch ",[387,400,401],{"style":393},"= ",[387,403,405],{"style":404},"color:#005cc5;--hls-dark:#79b8ff","{","\n",[387,408,409,412,415,419,422],{"class":389,"style":390},[387,410,411],{"style":404}," ",[387,413,414],{"style":404},"handler",[387,416,418],{"style":417},"color:#24292e;--hls-dark:#e1e4e8","?",[387,420,421],{"style":393},": ",[387,423,405],{"style":404},[387,425,426,429,431,433,436,439,441,444,447,449,452],{"class":389,"style":390},[387,427,428],{"style":404}," ",[387,430,361],{"style":417},[387,432,418],{"style":393},[387,434,435],{"style":404},"(",[387,437,438],{"style":417},"node",[387,440,421],{"style":417},[387,442,443],{"style":397},"OperationNode",[387,445,446],{"style":404},")",[387,448,421],{"style":417},[387,450,451],{"style":397},"string ",[387,453,455],{"style":454},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F → 'showPetByIdHandler'",[387,457,458,460],{"class":389,"style":390},[387,459,411],{"style":454},[387,461,462],{"style":404},"}",[387,464,465,467,470,472,474],{"class":389,"style":390},[387,466,411],{"style":404},[387,468,469],{"style":417},"tool",[387,471,418],{"style":417},[387,473,421],{"style":393},[387,475,405],{"style":404},[387,477,478,480,482,484,486,488,490,492,494,496,498],{"class":389,"style":390},[387,479,428],{"style":404},[387,481,361],{"style":417},[387,483,418],{"style":393},[387,485,435],{"style":404},[387,487,438],{"style":417},[387,489,421],{"style":417},[387,491,443],{"style":397},[387,493,446],{"style":404},[387,495,421],{"style":417},[387,497,451],{"style":397},[387,499,500],{"style":454},"\u002F\u002F → 'showPetById'",[387,502,503,505],{"class":389,"style":390},[387,504,411],{"style":454},[387,506,462],{"style":404},[387,508,509],{"class":389,"style":390},[387,510,462],{"style":404},{"title":512,"searchDepth":513,"depth":513,"links":514},"",5,[515,517,521],{"id":28,"depth":516,"text":29},2,{"id":231,"depth":516,"text":232,"children":518},[519],{"id":96,"depth":520,"text":96},3,{"id":340,"depth":516,"text":341},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-mcp\u002Foptions",1795727681287,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]