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