[{"data":1,"prerenderedAt":351,"buildId":352},["ShallowReactive",2],{"diagnostic-content-MCP0003":3,"navigation_docs":250},{"id":4,"title":5,"body":6,"category":12,"code":238,"description":239,"docsUrl":13,"extension":240,"fix":241,"framework":242,"meta":243,"navigation":244,"pack":15,"path":245,"ruleId":16,"rulePath":17,"seo":246,"severity":18,"source":19,"sourceUrl":20,"stem":247,"why":248,"__hash__":249},"diagnostics\u002Fdiagnostics\u002FMCP0003.md","MCP0003: Keep MCP tool names short and plain",{"type":7,"value":8,"toc":226},"minimark",[9,21,26,47,51,60,64,69,72,127,130,162,166,169,194,198,210,214,222],[10,11],"rule-metadata",{"category":12,"docsUrl":13,"fix":14,"pack":15,"ruleId":16,"rulePath":17,"severity":18,"source":19,"sourceUrl":20},"tools","https:\u002F\u002Fmodelcontextprotocol.io\u002Fspecification\u002F2025-11-25\u002Fserver\u002Ftools#tool-names","no","vite-doctor\u002Fmcp","mcp\u002Ftools\u002Fvalid-name","\u002Fmcp\u002Frules\u002Ftools\u002Fvalid-name","warn","src\u002Frule-packs\u002Fmcp\u002Frules\u002Fvalid-name.ts","https:\u002F\u002Fgithub.com\u002Fwords-with-agents\u002Fvite-doctor\u002Fblob\u002Fmain\u002Fsrc\u002Frule-packs\u002Fmcp\u002Frules\u002Fvalid-name.ts",[22,23,25],"h2",{"id":24},"why-it-happens","Why it happens",[27,28,29,30,34,35,38,39,42,43,46],"p",{},"MCP limits tool names to ASCII letters, digits, ",[31,32,33],"code",{},"_",", ",[31,36,37],{},"-",", and ",[31,40,41],{},".",", and up to 128 characters. Anthropic's Connectors Directory is stricter and rejects names longer than 64 characters. Clients that turn tools into model function calls can't reliably use a name with spaces or other characters. h3-mcp (okmcp), and nitro-mcp-toolkit on top of it, answer the whole ",[31,44,45],{},"tools\u002Flist"," with HTTP 500 when any name breaks the MCP format, so one bad name hides every tool on the server.",[22,48,50],{"id":49},"fix","Fix",[27,52,53,54,34,56,38,58,41],{},"Rename the tool to at most 64 characters, using only letters, digits, ",[31,55,33],{},[31,57,37],{},[31,59,41],{},[22,61,63],{"id":62},"example","Example",[65,66,68],"h3",{"id":67},"use-a-plain-tool-name","Use a plain tool name",[27,70,71],{},"Before",[73,74,79],"pre",{"className":75,"code":76,"language":77,"meta":78,"style":78},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","defineTool({ name: 'list order suggestions', handler })\n","ts","",[31,80,81],{"__ignoreMap":78},[82,83,86,90,94,98,102,105,108,112,115,118,121,124],"span",{"class":84,"line":85},"line",1,[82,87,89],{"class":88},"s2Zo4","defineTool",[82,91,93],{"class":92},"sTEyZ","(",[82,95,97],{"class":96},"sMK4o","{",[82,99,101],{"class":100},"swJcz"," name",[82,103,104],{"class":96},":",[82,106,107],{"class":96}," '",[82,109,111],{"class":110},"sfazB","list order suggestions",[82,113,114],{"class":96},"'",[82,116,117],{"class":96},",",[82,119,120],{"class":92}," handler ",[82,122,123],{"class":96},"}",[82,125,126],{"class":92},")\n",[27,128,129],{},"After",[73,131,133],{"className":75,"code":132,"language":77,"meta":78,"style":78},"defineTool({ name: 'list_order_suggestions', handler })\n",[31,134,135],{"__ignoreMap":78},[82,136,137,139,141,143,145,147,149,152,154,156,158,160],{"class":84,"line":85},[82,138,89],{"class":88},[82,140,93],{"class":92},[82,142,97],{"class":96},[82,144,101],{"class":100},[82,146,104],{"class":96},[82,148,107],{"class":96},[82,150,151],{"class":110},"list_order_suggestions",[82,153,114],{"class":96},[82,155,117],{"class":96},[82,157,120],{"class":92},[82,159,123],{"class":96},[82,161,126],{"class":92},[22,163,165],{"id":164},"verify-the-fix","Verify the fix",[27,167,168],{},"Run only this rule after editing so the report stays focused on the diagnostic you are closing:",[73,170,174],{"className":171,"code":172,"language":173,"meta":78,"style":78},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm vite-doctor . --rules mcp\u002Ftools\u002Fvalid-name\n","bash",[31,175,176],{"__ignoreMap":78},[82,177,178,182,185,188,191],{"class":84,"line":85},[82,179,181],{"class":180},"sBMFI","pnpm",[82,183,184],{"class":110}," vite-doctor",[82,186,187],{"class":110}," .",[82,189,190],{"class":110}," --rules",[82,192,193],{"class":110}," mcp\u002Ftools\u002Fvalid-name\n",[22,195,197],{"id":196},"useful-links","Useful links",[199,200,201],"ul",{},[202,203,204],"li",{},[205,206,209],"a",{"href":13,"rel":207},[208],"nofollow","Upstream docs",[22,211,213],{"id":212},"related-rule","Related rule",[199,215,216],{},[202,217,218],{},[205,219,220],{"href":17},[31,221,16],{},[223,224,225],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":78,"searchDepth":227,"depth":227,"links":228},2,[229,230,231,235,236,237],{"id":24,"depth":227,"text":25},{"id":49,"depth":227,"text":50},{"id":62,"depth":227,"text":63,"children":232},[233],{"id":67,"depth":234,"text":68},3,{"id":164,"depth":227,"text":165},{"id":196,"depth":227,"text":197},{"id":212,"depth":227,"text":213},"MCP0003","Report MCP tool names longer than 64 characters or with characters outside A-Z, a-z, 0-9, `_`, `-`, and `.`.","md","Rename the tool to at most 64 characters, using only letters, digits, `_`, `-`, and `.`.","mcp",{},true,"\u002Fdiagnostics\u002Fmcp0003",{"title":5,"description":239},"diagnostics\u002FMCP0003","MCP limits tool names to ASCII letters, digits, `_`, `-`, and `.`, and up to 128 characters. Anthropic's Connectors Directory is stricter and rejects names longer than 64 characters. Clients that turn tools into model function calls can't reliably use a name with spaces or other characters. h3-mcp (okmcp), and nitro-mcp-toolkit on top of it, answer the whole `tools\u002Flist` with HTTP 500 when any name breaks the MCP format, so one bad name hides every tool on the server.","DWhvsbxqaxbxIwSzNAUeavttV891u1Ejn5TkYCP66UQ",[251,279,283,287,291,295,299,311,315,339,343,347],{"title":252,"path":253,"stem":254,"children":255,"icon":278},"CLI","\u002Fcli","1.cli\u002F1.index",[256,258,262,266,270,274],{"title":257,"path":253,"stem":254},"Run Doctor",{"title":259,"path":260,"stem":261},"Reports","\u002Fcli\u002Freports","1.cli\u002F2.reports",{"title":263,"path":264,"stem":265},"Configuration","\u002Fcli\u002Fconfiguration","1.cli\u002F3.configuration",{"title":267,"path":268,"stem":269},"CI and changed files","\u002Fcli\u002Fci","1.cli\u002F4.ci",{"title":271,"path":272,"stem":273},"Workspaces","\u002Fcli\u002Fworkspaces","1.cli\u002F5.workspaces",{"title":275,"path":276,"stem":277},"Cache and speed","\u002Fcli\u002Fcache","1.cli\u002F6.cache","i-lucide-terminal",{"title":280,"path":281,"stem":282},"Nuxt","\u002Fnuxt","2.nuxt",{"title":284,"path":285,"stem":286},"Vue","\u002Fvue","3.vue",{"title":288,"path":289,"stem":290},"Vite","\u002Fvite","4.vite",{"title":292,"path":293,"stem":294},"Nitro","\u002Fnitro","5.nitro",{"title":296,"path":297,"stem":298},"TypeScript","\u002Ftypescript","6.typescript",{"title":300,"path":301,"stem":302,"children":303,"icon":310},"Design system","\u002Fdesign-system","7.design-system\u002F1.index",[304,306],{"title":305,"path":301,"stem":302},"Overview",{"title":307,"path":308,"stem":309},"Classes and styles","\u002Fdesign-system\u002Fclasses","7.design-system\u002F2.classes","i-lucide-swatch-book",{"title":312,"path":313,"stem":314},"Package","\u002Fpackage","8.package",{"title":316,"path":317,"stem":318,"children":319,"icon":338},"Extending Doctor","\u002Fextending","9.extending\u002F1.index",[320,322,326,330,334],{"title":321,"path":317,"stem":318},"Write an extension",{"title":323,"path":324,"stem":325},"Visitors","\u002Fextending\u002Fvisitors","9.extending\u002F2.visitors",{"title":327,"path":328,"stem":329},"Ship with a library","\u002Fextending\u002Fshipping","9.extending\u002F3.shipping",{"title":331,"path":332,"stem":333},"Test a Rule","\u002Fextending\u002Ftesting","9.extending\u002F4.testing",{"title":335,"path":336,"stem":337},"Rule inputs","\u002Fextending\u002Frule-inputs","9.extending\u002F5.rule-inputs","i-lucide-puzzle",{"title":340,"path":341,"stem":342},"H3","\u002Fh3","9.h3",{"title":344,"path":345,"stem":346},"MCP","\u002Fmodel-context-protocol","9.model-context-protocol",{"title":348,"path":349,"stem":350},"Pinia","\u002Fpinia","9.pinia",1796502574940,"459135de-a4df-4ea8-9b4b-cb70e139bb1e"]