[{"data":1,"prerenderedAt":203},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fai\u002Fclaude-desktop":3},{"id":4,"title":5,"body":6,"description":184,"extension":185,"frontmatter":186,"heading":5,"meta":193,"navigation":195,"order":179,"path":196,"seo":197,"sitemap":198,"source":199,"stem":200,"__hash__":201,"hasPopups":202},"docs\u002Fdocs\u002F5.x\u002Fai\u002Fclaude-desktop.md","Connect an API server to Claude Desktop",{"type":7,"value":8,"toc":177},"minimark",[9,33],[10,11,12,13,18,19,23,24,28,29,32],"p",{},"Start with ",[14,15,17],"a",{"href":16},"https:\u002F\u002Fclaude.ai\u002Fdownload","Claude Desktop"," installed and an MCP server generated from your API specification. Follow ",[14,20,22],{"href":21},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-mcp\u002Fguides\u002Fserver","Run an MCP server"," to configure generation, install runtime dependencies, and create a ",[25,26,27],"code",{},"server.ts"," entry point that calls the generated ",[25,30,31],{},"startServer"," function.",[34,35,37,42,69,159,166,170],"steps",{"level":36},"2",[38,39,41],"h2",{"id":40},"register-the-server","Register the server",[10,43,44,45,48,49,52,53,57,58,61,62,65,66,68],{},"Open Claude Desktop's ",[25,46,47],{},"Settings → Developer → Edit Config",". This opens ",[25,50,51],{},"claude_desktop_config.json",", the same file the ",[14,54,56],{"href":55},"\u002Fdocs\u002F5.x\u002Fai\u002Fmcp#client-configuration","Kubb MCP server"," uses. Add the generated entry from ",[25,59,60],{},"src\u002Fgen\u002Fmcp\u002F.mcp.json"," to the file's ",[25,63,64],{},"mcpServers"," object. Keep existing server entries. Update its command arguments to use the absolute path to your ",[25,67,27],{}," entry point:",[70,71,75],"pre",{"language":72,"filename":51,"code":73,"class":74},"json","{\n  \"mcpServers\": {\n    \"petstore\": {\n      \"command\": \"npx\",\n      \"args\": [\"--yes\", \"tsx\", \"\u002Fabsolute\u002Fpath\u002Fto\u002Fproject\u002Fserver.ts\"]\n    }\n  }\n}","shiki shiki-themes github-light github-dark dark:github-dark",[25,76,78,87,88,87,97,87,104,87,119,87,144,87,149,87,154],{"class":77},"language-json",[79,80,83],"span",{"class":81,"style":82},"line","display: inline",[79,84,86],{"style":85},"color:#24292E;--shiki-dark:#E1E4E8","{","\n",[79,89,90,94],{"class":81,"style":82},[79,91,93],{"style":92},"color:#005CC5;--shiki-dark:#79B8FF","  \"mcpServers\"",[79,95,96],{"style":85},": {",[79,98,99,102],{"class":81,"style":82},[79,100,101],{"style":92},"    \"petstore\"",[79,103,96],{"style":85},[79,105,106,109,112,116],{"class":81,"style":82},[79,107,108],{"style":92},"      \"command\"",[79,110,111],{"style":85},": ",[79,113,115],{"style":114},"color:#032F62;--shiki-dark:#9ECBFF","\"npx\"",[79,117,118],{"style":85},",",[79,120,121,124,127,130,133,136,138,141],{"class":81,"style":82},[79,122,123],{"style":92},"      \"args\"",[79,125,126],{"style":85},": [",[79,128,129],{"style":114},"\"--yes\"",[79,131,132],{"style":85},", ",[79,134,135],{"style":114},"\"tsx\"",[79,137,132],{"style":85},[79,139,140],{"style":114},"\"\u002Fabsolute\u002Fpath\u002Fto\u002Fproject\u002Fserver.ts\"",[79,142,143],{"style":85},"]",[79,145,146],{"class":81,"style":82},[79,147,148],{"style":85},"    }",[79,150,151],{"class":81,"style":82},[79,152,153],{"style":85},"  }",[79,155,156],{"class":81,"style":82},[79,157,158],{"style":85},"}",[10,160,161,162,165],{},"Replace the example path with your project path. In Windows JSON paths, escape each backslash as ",[25,163,164],{},"\\\\",".",[38,167,169],{"id":168},"use-the-generated-tools","Use the generated tools",[10,171,172,173,176],{},"Quit Claude Desktop completely and reopen it. Open ",[25,174,175],{},"Manage connectors",", select your server, and check that the tools match the operations in your specification. Ask Claude to run one of those operations and review its request before approving the API call.",{"title":178,"searchDepth":179,"depth":179,"links":180},"",5,[181,183],{"id":40,"depth":182,"text":41},2,{"id":168,"depth":182,"text":169},"Add a generated Kubb MCP server to Claude Desktop so its tools can call your API.","md",{"layout":187,"title":5,"description":184,"outline":188,"order":179,"navigation":190},"doc",[182,189],3,{"title":191,"icon":192},"Your API in Claude Desktop","i-simple-icons-claude",{"layout":187,"outline":194},[182,189],{"title":191,"icon":192},"\u002Fdocs\u002F5.x\u002Fai\u002Fclaude-desktop",{"title":5,"description":184},{"loc":196},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fai\u002Fclaude-desktop.md","docs\u002F5.x\u002Fai\u002Fclaude-desktop","VN_dbsqoIN8brOOpNen1wtMOPnBloH-JKfcR61cpb1c",false,1792782244029]