[{"data":1,"prerenderedAt":492,"buildId":493},["ShallowReactive",2],{"diagnostic-content-MCP0001":3,"navigation_docs":391},{"id":4,"title":5,"body":6,"category":12,"code":379,"description":380,"docsUrl":13,"extension":381,"fix":382,"framework":383,"meta":384,"navigation":385,"pack":15,"path":386,"ruleId":16,"rulePath":17,"seo":387,"severity":18,"source":19,"sourceUrl":20,"stem":388,"why":389,"__hash__":390},"diagnostics\u002Fdiagnostics\u002FMCP0001.md","MCP0001: Give every MCP tool an annotations.title",{"type":7,"value":8,"toc":369},"minimark",[9,21,26,52,56,65,69,74,77,205,208,305,309,312,337,341,353,357,365],[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\u002Fclaude.com\u002Fdocs\u002Fconnectors\u002Fbuilding\u002Freview-criteria#provide-tool-annotations","suggestion","vite-doctor\u002Fmcp","mcp\u002Ftools\u002Frequire-annotation-title","\u002Fmcp\u002Frules\u002Ftools\u002Frequire-annotation-title","warn","src\u002Frule-packs\u002Fmcp\u002Frules\u002Frequire-annotation-title.ts","https:\u002F\u002Fgithub.com\u002Fwords-with-agents\u002Fvite-doctor\u002Fblob\u002Fmain\u002Fsrc\u002Frule-packs\u002Fmcp\u002Frules\u002Frequire-annotation-title.ts",[22,23,25],"h2",{"id":24},"why-it-happens","Why it happens",[27,28,29,30,34,35,38,39,41,42,44,45,47,48,51],"p",{},"Clients show a tool by its title, and MCP has carried it in ",[31,32,33],"code",{},"annotations.title"," since the 2025-03-26 revision. The top-level ",[31,36,37],{},"title"," only arrived in 2025-06-18, so older clients never see it, and some newer client surfaces still ignore it: Claude Code's transcript shows the bare tool name. Anthropic's Connectors Directory review asks every tool for a ",[31,40,37],{}," and hint annotations, and its portal has flagged tools that set only the top-level ",[31,43,37],{},". Both MCP toolkits fill the top-level ",[31,46,37],{}," from the file name and pass ",[31,49,50],{},"annotations"," through as written, so a file-discovered tool ships without one unless you add it.",[22,53,55],{"id":54},"fix","Fix",[27,57,58,59,61,62,64],{},"Set ",[31,60,33],{}," to the same human-readable name as the top-level ",[31,63,37],{},".",[22,66,68],{"id":67},"example","Example",[70,71,73],"h3",{"id":72},"name-the-tool-in-its-annotations","Name the tool in its annotations",[27,75,76],{},"Before",[78,79,84],"pre",{"className":80,"code":81,"language":82,"meta":83,"style":83},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineMcpTool({\n  name: 'get_kpis',\n  title: 'Get KPIs',\n  annotations: { readOnlyHint: true },\n  handler: () => kpis(),\n})\n","ts","",[31,85,86,110,133,150,173,196],{"__ignoreMap":83},[87,88,91,95,98,102,106],"span",{"class":89,"line":90},"line",1,[87,92,94],{"class":93},"s7zQu","export",[87,96,97],{"class":93}," default",[87,99,101],{"class":100},"s2Zo4"," defineMcpTool",[87,103,105],{"class":104},"sTEyZ","(",[87,107,109],{"class":108},"sMK4o","{\n",[87,111,113,117,120,123,127,130],{"class":89,"line":112},2,[87,114,116],{"class":115},"swJcz","  name",[87,118,119],{"class":108},":",[87,121,122],{"class":108}," '",[87,124,126],{"class":125},"sfazB","get_kpis",[87,128,129],{"class":108},"'",[87,131,132],{"class":108},",\n",[87,134,136,139,141,143,146,148],{"class":89,"line":135},3,[87,137,138],{"class":115},"  title",[87,140,119],{"class":108},[87,142,122],{"class":108},[87,144,145],{"class":125},"Get KPIs",[87,147,129],{"class":108},[87,149,132],{"class":108},[87,151,153,156,158,161,164,166,170],{"class":89,"line":152},4,[87,154,155],{"class":115},"  annotations",[87,157,119],{"class":108},[87,159,160],{"class":108}," {",[87,162,163],{"class":115}," readOnlyHint",[87,165,119],{"class":108},[87,167,169],{"class":168},"sfNiH"," true",[87,171,172],{"class":108}," },\n",[87,174,176,179,181,184,188,191,194],{"class":89,"line":175},5,[87,177,178],{"class":100},"  handler",[87,180,119],{"class":108},[87,182,183],{"class":108}," ()",[87,185,187],{"class":186},"spNyl"," =>",[87,189,190],{"class":100}," kpis",[87,192,193],{"class":104},"()",[87,195,132],{"class":108},[87,197,199,202],{"class":89,"line":198},6,[87,200,201],{"class":108},"}",[87,203,204],{"class":104},")\n",[27,206,207],{},"After",[78,209,211],{"className":80,"code":210,"language":82,"meta":83,"style":83},"export default defineMcpTool({\n  name: 'get_kpis',\n  title: 'Get KPIs',\n  annotations: { title: 'Get KPIs', readOnlyHint: true },\n  handler: () => kpis(),\n})\n",[31,212,213,225,239,253,283,299],{"__ignoreMap":83},[87,214,215,217,219,221,223],{"class":89,"line":90},[87,216,94],{"class":93},[87,218,97],{"class":93},[87,220,101],{"class":100},[87,222,105],{"class":104},[87,224,109],{"class":108},[87,226,227,229,231,233,235,237],{"class":89,"line":112},[87,228,116],{"class":115},[87,230,119],{"class":108},[87,232,122],{"class":108},[87,234,126],{"class":125},[87,236,129],{"class":108},[87,238,132],{"class":108},[87,240,241,243,245,247,249,251],{"class":89,"line":135},[87,242,138],{"class":115},[87,244,119],{"class":108},[87,246,122],{"class":108},[87,248,145],{"class":125},[87,250,129],{"class":108},[87,252,132],{"class":108},[87,254,255,257,259,261,264,266,268,270,272,275,277,279,281],{"class":89,"line":152},[87,256,155],{"class":115},[87,258,119],{"class":108},[87,260,160],{"class":108},[87,262,263],{"class":115}," title",[87,265,119],{"class":108},[87,267,122],{"class":108},[87,269,145],{"class":125},[87,271,129],{"class":108},[87,273,274],{"class":108},",",[87,276,163],{"class":115},[87,278,119],{"class":108},[87,280,169],{"class":168},[87,282,172],{"class":108},[87,284,285,287,289,291,293,295,297],{"class":89,"line":175},[87,286,178],{"class":100},[87,288,119],{"class":108},[87,290,183],{"class":108},[87,292,187],{"class":186},[87,294,190],{"class":100},[87,296,193],{"class":104},[87,298,132],{"class":108},[87,300,301,303],{"class":89,"line":198},[87,302,201],{"class":108},[87,304,204],{"class":104},[22,306,308],{"id":307},"verify-the-fix","Verify the fix",[27,310,311],{},"Run only this rule after editing so the report stays focused on the diagnostic you are closing:",[78,313,317],{"className":314,"code":315,"language":316,"meta":83,"style":83},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm vite-doctor . --rules mcp\u002Ftools\u002Frequire-annotation-title\n","bash",[31,318,319],{"__ignoreMap":83},[87,320,321,325,328,331,334],{"class":89,"line":90},[87,322,324],{"class":323},"sBMFI","pnpm",[87,326,327],{"class":125}," vite-doctor",[87,329,330],{"class":125}," .",[87,332,333],{"class":125}," --rules",[87,335,336],{"class":125}," mcp\u002Ftools\u002Frequire-annotation-title\n",[22,338,340],{"id":339},"useful-links","Useful links",[342,343,344],"ul",{},[345,346,347],"li",{},[348,349,352],"a",{"href":13,"rel":350},[351],"nofollow","Upstream docs",[22,354,356],{"id":355},"related-rule","Related rule",[342,358,359],{},[345,360,361],{},[348,362,363],{"href":17},[31,364,16],{},[366,367,368],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}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 pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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":83,"searchDepth":112,"depth":112,"links":370},[371,372,373,376,377,378],{"id":24,"depth":112,"text":25},{"id":54,"depth":112,"text":55},{"id":67,"depth":112,"text":68,"children":374},[375],{"id":72,"depth":135,"text":73},{"id":307,"depth":112,"text":308},{"id":339,"depth":112,"text":340},{"id":355,"depth":112,"text":356},"MCP0001","Report MCP tools whose annotations have no human-readable title.","md","Set `annotations.title` to the same human-readable name as the top-level `title`.","mcp",{},true,"\u002Fdiagnostics\u002Fmcp0001",{"title":5,"description":380},"diagnostics\u002FMCP0001","Clients show a tool by its title, and MCP has carried it in `annotations.title` since the 2025-03-26 revision. The top-level `title` only arrived in 2025-06-18, so older clients never see it, and some newer client surfaces still ignore it: Claude Code's transcript shows the bare tool name. Anthropic's Connectors Directory review asks every tool for a `title` and hint annotations, and its portal has flagged tools that set only the top-level `title`. Both MCP toolkits fill the top-level `title` from the file name and pass `annotations` through as written, so a file-discovered tool ships without one unless you add it.","4DemXyrSnmKyQM9Q_w1Qb1a-lQJkSN4a-uL9r15Mfho",[392,420,424,428,432,436,440,452,456,480,484,488],{"title":393,"path":394,"stem":395,"children":396,"icon":419},"CLI","\u002Fcli","1.cli\u002F1.index",[397,399,403,407,411,415],{"title":398,"path":394,"stem":395},"Run Doctor",{"title":400,"path":401,"stem":402},"Reports","\u002Fcli\u002Freports","1.cli\u002F2.reports",{"title":404,"path":405,"stem":406},"Configuration","\u002Fcli\u002Fconfiguration","1.cli\u002F3.configuration",{"title":408,"path":409,"stem":410},"CI and changed files","\u002Fcli\u002Fci","1.cli\u002F4.ci",{"title":412,"path":413,"stem":414},"Workspaces","\u002Fcli\u002Fworkspaces","1.cli\u002F5.workspaces",{"title":416,"path":417,"stem":418},"Cache and speed","\u002Fcli\u002Fcache","1.cli\u002F6.cache","i-lucide-terminal",{"title":421,"path":422,"stem":423},"Nuxt","\u002Fnuxt","2.nuxt",{"title":425,"path":426,"stem":427},"Vue","\u002Fvue","3.vue",{"title":429,"path":430,"stem":431},"Vite","\u002Fvite","4.vite",{"title":433,"path":434,"stem":435},"Nitro","\u002Fnitro","5.nitro",{"title":437,"path":438,"stem":439},"TypeScript","\u002Ftypescript","6.typescript",{"title":441,"path":442,"stem":443,"children":444,"icon":451},"Design system","\u002Fdesign-system","7.design-system\u002F1.index",[445,447],{"title":446,"path":442,"stem":443},"Overview",{"title":448,"path":449,"stem":450},"Classes and styles","\u002Fdesign-system\u002Fclasses","7.design-system\u002F2.classes","i-lucide-swatch-book",{"title":453,"path":454,"stem":455},"Package","\u002Fpackage","8.package",{"title":457,"path":458,"stem":459,"children":460,"icon":479},"Extending Doctor","\u002Fextending","9.extending\u002F1.index",[461,463,467,471,475],{"title":462,"path":458,"stem":459},"Write an extension",{"title":464,"path":465,"stem":466},"Visitors","\u002Fextending\u002Fvisitors","9.extending\u002F2.visitors",{"title":468,"path":469,"stem":470},"Ship with a library","\u002Fextending\u002Fshipping","9.extending\u002F3.shipping",{"title":472,"path":473,"stem":474},"Test a Rule","\u002Fextending\u002Ftesting","9.extending\u002F4.testing",{"title":476,"path":477,"stem":478},"Rule inputs","\u002Fextending\u002Frule-inputs","9.extending\u002F5.rule-inputs","i-lucide-puzzle",{"title":481,"path":482,"stem":483},"H3","\u002Fh3","9.h3",{"title":485,"path":486,"stem":487},"MCP","\u002Fmodel-context-protocol","9.model-context-protocol",{"title":489,"path":490,"stem":491},"Pinia","\u002Fpinia","9.pinia",1796502574698,"459135de-a4df-4ea8-9b4b-cb70e139bb1e"]