[{"data":1,"prerenderedAt":477,"buildId":478},["ShallowReactive",2],{"navigation_docs":3,"rule-content-\u002Fmcp\u002Frules\u002Ftools\u002Frequire-annotation-title":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":464,"diagnosticCodes":465,"docsUrl":115,"extension":466,"fix":116,"framework":467,"meta":468,"navigation":469,"pack":117,"path":471,"recommendedReplacement":472,"ruleId":118,"seo":473,"severity":119,"source":120,"sourceUrl":121,"stem":474,"why":475,"__hash__":476},"rules\u002Fmcp\u002Frules\u002Ftools\u002Frequire-annotation-title.md","Give every MCP tool an annotations.title",{"type":108,"value":109,"toc":455},"minimark",[110,122,127,159,163,188,192,201,205,217,221,226,229,351,354,451],[111,112],"rule-metadata",{"category":113,"diagnosticCodes":114,"docsUrl":115,"fix":116,"pack":117,"ruleId":118,"severity":119,"source":120,"sourceUrl":121},"tools","MCP0001","https:\u002F\u002Fclaude.com\u002Fdocs\u002Fconnectors\u002Fbuilding\u002Freview-criteria#provide-tool-annotations","suggestion","vite-doctor\u002Fmcp","mcp\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",[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\u002Frequire-annotation-title\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\u002Frequire-annotation-title\n",[123,160,162],{"id":161},"why-it-matters","Why it matters",[164,165,166,167,170,171,174,175,177,178,180,181,183,184,187],"p",{},"Clients show a tool by its title, and MCP has carried it in ",[135,168,169],{},"annotations.title"," since the 2025-03-26 revision. The top-level ",[135,172,173],{},"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 ",[135,176,173],{}," and hint annotations, and its portal has flagged tools that set only the top-level ",[135,179,173],{},". Both MCP toolkits fill the top-level ",[135,182,173],{}," from the file name and pass ",[135,185,186],{},"annotations"," through as written, so a file-discovered tool ships without one unless you add it.",[123,189,191],{"id":190},"recommended-fix","Recommended fix",[164,193,194,195,197,198,200],{},"Set ",[135,196,169],{}," to the same human-readable name as the top-level ",[135,199,173],{},".",[123,202,204],{"id":203},"useful-links","Useful links",[206,207,208],"ul",{},[209,210,211],"li",{},[212,213,216],"a",{"href":115,"rel":214},[215],"nofollow","Rule reference",[123,218,220],{"id":219},"example","Example",[222,223,225],"h3",{"id":224},"name-the-tool-in-its-annotations","Name the tool in its annotations",[164,227,228],{},"Before",[128,230,234],{"className":231,"code":232,"language":233,"meta":133,"style":133},"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",[135,235,236,257,279,296,319,342],{"__ignoreMap":133},[138,237,238,242,245,249,253],{"class":140,"line":141},[138,239,241],{"class":240},"s7zQu","export",[138,243,244],{"class":240}," default",[138,246,248],{"class":247},"s2Zo4"," defineMcpTool",[138,250,252],{"class":251},"sTEyZ","(",[138,254,256],{"class":255},"sMK4o","{\n",[138,258,260,264,267,270,273,276],{"class":140,"line":259},2,[138,261,263],{"class":262},"swJcz","  name",[138,265,266],{"class":255},":",[138,268,269],{"class":255}," '",[138,271,272],{"class":148},"get_kpis",[138,274,275],{"class":255},"'",[138,277,278],{"class":255},",\n",[138,280,282,285,287,289,292,294],{"class":140,"line":281},3,[138,283,284],{"class":262},"  title",[138,286,266],{"class":255},[138,288,269],{"class":255},[138,290,291],{"class":148},"Get KPIs",[138,293,275],{"class":255},[138,295,278],{"class":255},[138,297,299,302,304,307,310,312,316],{"class":140,"line":298},4,[138,300,301],{"class":262},"  annotations",[138,303,266],{"class":255},[138,305,306],{"class":255}," {",[138,308,309],{"class":262}," readOnlyHint",[138,311,266],{"class":255},[138,313,315],{"class":314},"sfNiH"," true",[138,317,318],{"class":255}," },\n",[138,320,322,325,327,330,334,337,340],{"class":140,"line":321},5,[138,323,324],{"class":247},"  handler",[138,326,266],{"class":255},[138,328,329],{"class":255}," ()",[138,331,333],{"class":332},"spNyl"," =>",[138,335,336],{"class":247}," kpis",[138,338,339],{"class":251},"()",[138,341,278],{"class":255},[138,343,345,348],{"class":140,"line":344},6,[138,346,347],{"class":255},"}",[138,349,350],{"class":251},")\n",[164,352,353],{},"After",[128,355,357],{"className":231,"code":356,"language":233,"meta":133,"style":133},"export default defineMcpTool({\n  name: 'get_kpis',\n  title: 'Get KPIs',\n  annotations: { title: 'Get KPIs', readOnlyHint: true },\n  handler: () => kpis(),\n})\n",[135,358,359,371,385,399,429,445],{"__ignoreMap":133},[138,360,361,363,365,367,369],{"class":140,"line":141},[138,362,241],{"class":240},[138,364,244],{"class":240},[138,366,248],{"class":247},[138,368,252],{"class":251},[138,370,256],{"class":255},[138,372,373,375,377,379,381,383],{"class":140,"line":259},[138,374,263],{"class":262},[138,376,266],{"class":255},[138,378,269],{"class":255},[138,380,272],{"class":148},[138,382,275],{"class":255},[138,384,278],{"class":255},[138,386,387,389,391,393,395,397],{"class":140,"line":281},[138,388,284],{"class":262},[138,390,266],{"class":255},[138,392,269],{"class":255},[138,394,291],{"class":148},[138,396,275],{"class":255},[138,398,278],{"class":255},[138,400,401,403,405,407,410,412,414,416,418,421,423,425,427],{"class":140,"line":298},[138,402,301],{"class":262},[138,404,266],{"class":255},[138,406,306],{"class":255},[138,408,409],{"class":262}," title",[138,411,266],{"class":255},[138,413,269],{"class":255},[138,415,291],{"class":148},[138,417,275],{"class":255},[138,419,420],{"class":255},",",[138,422,309],{"class":262},[138,424,266],{"class":255},[138,426,315],{"class":314},[138,428,318],{"class":255},[138,430,431,433,435,437,439,441,443],{"class":140,"line":321},[138,432,324],{"class":247},[138,434,266],{"class":255},[138,436,329],{"class":255},[138,438,333],{"class":332},[138,440,336],{"class":247},[138,442,339],{"class":251},[138,444,278],{"class":255},[138,446,447,449],{"class":140,"line":344},[138,448,347],{"class":255},[138,450,350],{"class":251},[452,453,454],"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 .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 .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}",{"title":133,"searchDepth":259,"depth":259,"links":456},[457,458,459,460,461],{"id":125,"depth":259,"text":126},{"id":161,"depth":259,"text":162},{"id":190,"depth":259,"text":191},{"id":203,"depth":259,"text":204},{"id":219,"depth":259,"text":220,"children":462},[463],{"id":224,"depth":281,"text":225},"Report MCP tools whose annotations have no human-readable title.",[114],"md","mcp",{},{"title":470},"Annotation titles","\u002Fmcp\u002Frules\u002Ftools\u002Frequire-annotation-title","Set `annotations.title` to the same human-readable name as the top-level `title`.",{"title":106,"description":464},"mcp\u002Frules\u002Ftools\u002Frequire-annotation-title","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.","1xbNi7ZQ0FMDmVgIG6kjrWs-Mjkxr9Xh0OGoVJAvEAA",1796502548612,"459135de-a4df-4ea8-9b4b-cb70e139bb1e"]