From b9d03134b1aec236a86aecf31377b58858315062 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 20 Nov 2026 22:00:00 +0000 Subject: [PATCH 1/2] State that Claude Desktop has no installer. The connect-your-tools host list never said Claude Desktop is outside the installer targets. Docs landmarks and the dark code-comment color are adjusted so that page passes axe-core. Co-authored-by: Rodrigo --- content/docs/network/connect-your-tools.mdx | 2 + src/app/docs/layout.tsx | 2 + src/app/global.css | 6 ++ src/components/docs-landmarks.tsx | 63 +++++++++++++++++++ ...connect-your-tools-claude-desktop.test.mjs | 20 ++++++ 5 files changed, 93 insertions(+) create mode 100644 src/components/docs-landmarks.tsx create mode 100644 tests/connect-your-tools-claude-desktop.test.mjs diff --git a/content/docs/network/connect-your-tools.mdx b/content/docs/network/connect-your-tools.mdx index fcfcfd4..1bbde74 100644 --- a/content/docs/network/connect-your-tools.mdx +++ b/content/docs/network/connect-your-tools.mdx @@ -15,6 +15,8 @@ cd /path/to/your/project kimetsu plugin install # claude-code | codex | cursor | grok-bot | pi | openclaw ``` +Claude Desktop has no installer. + Restart the host so it picks up the server. `kimetsu plugin status` shows what is wired. `pi` and `openclaw` need a binary built with those features (or a prebuilt / npm install, which already includes diff --git a/src/app/docs/layout.tsx b/src/app/docs/layout.tsx index efeef54..899aac7 100644 --- a/src/app/docs/layout.tsx +++ b/src/app/docs/layout.tsx @@ -1,10 +1,12 @@ import { DocsLayout } from "fumadocs-ui/layouts/docs"; +import { DocsLandmarks } from "@/components/docs-landmarks"; import { baseOptions } from "@/lib/layout.shared"; import { source } from "@/lib/source"; export default function Layout({ children }: LayoutProps<"/docs">) { return ( + {children} ); diff --git a/src/app/global.css b/src/app/global.css index 7e6c7f7..2610a70 100644 --- a/src/app/global.css +++ b/src/app/global.css @@ -25,6 +25,12 @@ --color-fd-muted-foreground: #a3a3a3; } +/* Shiki comment gray #6A737D is 3.65:1 on the dark code background #191919. + The token sets the variable inline, so the override has to win that declaration. */ +.dark .shiki span[style*="--shiki-dark:#6A737D"] { + --shiki-dark: #8b949e !important; +} + html { scrollbar-gutter: stable; } diff --git a/src/components/docs-landmarks.tsx b/src/components/docs-landmarks.tsx new file mode 100644 index 0000000..4e1ecf8 --- /dev/null +++ b/src/components/docs-landmarks.tsx @@ -0,0 +1,63 @@ +"use client"; + +import { useLayoutEffect } from "react"; + +function headingText(heading: Element) { + return (heading.textContent ?? "") + .replaceAll("Copy Anchor Link", "") + .replace(/\s+/g, " ") + .trim(); +} + +export function DocsLandmarks() { + useLayoutEffect(() => { + const page = document.getElementById("nd-page"); + if (page) page.setAttribute("role", "main"); + + const pageToc = document.getElementById("nd-toc"); + if (pageToc && !pageToc.getAttribute("role")) { + pageToc.setAttribute("role", "navigation"); + pageToc.setAttribute("aria-label", "On this page"); + } + + for (const header of document.querySelectorAll("#nd-docs-layout header")) { + if (header.id === "nd-subnav") continue; + header.setAttribute("role", "group"); + const toc = header.parentElement; + if (!toc || toc.getAttribute("role")) continue; + toc.setAttribute("role", "navigation"); + toc.setAttribute("aria-label", "Page sections"); + } + + const seen = new Map(); + for (const region of document.querySelectorAll( + '#nd-page [role="region"]', + )) { + if ( + region.getAttribute("aria-label") || + region.getAttribute("aria-labelledby") + ) { + continue; + } + let heading: Element | null = null; + let node: Element | null = region.closest("figure"); + while (node?.previousElementSibling) { + const previous = node.previousElementSibling; + if (/^H[1-6]$/.test(previous.tagName)) { + heading = previous; + break; + } + node = previous; + } + const base = heading ? `${headingText(heading)} sample` : "Code sample"; + const count = (seen.get(base) ?? 0) + 1; + seen.set(base, count); + region.setAttribute( + "aria-label", + count === 1 ? base : `${base} ${count}`, + ); + } + }, []); + + return null; +} diff --git a/tests/connect-your-tools-claude-desktop.test.mjs b/tests/connect-your-tools-claude-desktop.test.mjs new file mode 100644 index 0000000..324895a --- /dev/null +++ b/tests/connect-your-tools-claude-desktop.test.mjs @@ -0,0 +1,20 @@ +import assert from "node:assert/strict"; +import { readFile } from "node:fs/promises"; +import test from "node:test"; + +const page = await readFile( + new URL("../content/docs/network/connect-your-tools.mdx", import.meta.url), + "utf8", +); + +test("connect your tools states that Claude Desktop has no installer", () => { + const hosts = page.indexOf( + "kimetsu plugin install # claude-code | codex | cursor | grok-bot | pi | openclaw", + ); + const sentence = page.indexOf("Claude Desktop has no installer."); + const claudeCode = page.indexOf("## Claude Code"); + assert.ok(hosts >= 0); + assert.ok(sentence > hosts); + assert.ok(claudeCode > sentence); + assert.equal(page.split("Claude Desktop has no installer.").length - 1, 1); +}); From 13c4c3892d6cfef8850f3cb2b4ce4f2e4c7c6755 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 20 Nov 2026 22:02:16 +0000 Subject: [PATCH 2/2] Drop the docs chrome accessibility edits from this branch. Those landmark and comment-color changes need their own review. This branch keeps the Claude Desktop sentence and its test. Co-authored-by: Rodrigo --- src/app/docs/layout.tsx | 2 - src/app/global.css | 6 --- src/components/docs-landmarks.tsx | 63 ------------------------------- 3 files changed, 71 deletions(-) delete mode 100644 src/components/docs-landmarks.tsx diff --git a/src/app/docs/layout.tsx b/src/app/docs/layout.tsx index 899aac7..efeef54 100644 --- a/src/app/docs/layout.tsx +++ b/src/app/docs/layout.tsx @@ -1,12 +1,10 @@ import { DocsLayout } from "fumadocs-ui/layouts/docs"; -import { DocsLandmarks } from "@/components/docs-landmarks"; import { baseOptions } from "@/lib/layout.shared"; import { source } from "@/lib/source"; export default function Layout({ children }: LayoutProps<"/docs">) { return ( - {children} ); diff --git a/src/app/global.css b/src/app/global.css index 2610a70..7e6c7f7 100644 --- a/src/app/global.css +++ b/src/app/global.css @@ -25,12 +25,6 @@ --color-fd-muted-foreground: #a3a3a3; } -/* Shiki comment gray #6A737D is 3.65:1 on the dark code background #191919. - The token sets the variable inline, so the override has to win that declaration. */ -.dark .shiki span[style*="--shiki-dark:#6A737D"] { - --shiki-dark: #8b949e !important; -} - html { scrollbar-gutter: stable; } diff --git a/src/components/docs-landmarks.tsx b/src/components/docs-landmarks.tsx deleted file mode 100644 index 4e1ecf8..0000000 --- a/src/components/docs-landmarks.tsx +++ /dev/null @@ -1,63 +0,0 @@ -"use client"; - -import { useLayoutEffect } from "react"; - -function headingText(heading: Element) { - return (heading.textContent ?? "") - .replaceAll("Copy Anchor Link", "") - .replace(/\s+/g, " ") - .trim(); -} - -export function DocsLandmarks() { - useLayoutEffect(() => { - const page = document.getElementById("nd-page"); - if (page) page.setAttribute("role", "main"); - - const pageToc = document.getElementById("nd-toc"); - if (pageToc && !pageToc.getAttribute("role")) { - pageToc.setAttribute("role", "navigation"); - pageToc.setAttribute("aria-label", "On this page"); - } - - for (const header of document.querySelectorAll("#nd-docs-layout header")) { - if (header.id === "nd-subnav") continue; - header.setAttribute("role", "group"); - const toc = header.parentElement; - if (!toc || toc.getAttribute("role")) continue; - toc.setAttribute("role", "navigation"); - toc.setAttribute("aria-label", "Page sections"); - } - - const seen = new Map(); - for (const region of document.querySelectorAll( - '#nd-page [role="region"]', - )) { - if ( - region.getAttribute("aria-label") || - region.getAttribute("aria-labelledby") - ) { - continue; - } - let heading: Element | null = null; - let node: Element | null = region.closest("figure"); - while (node?.previousElementSibling) { - const previous = node.previousElementSibling; - if (/^H[1-6]$/.test(previous.tagName)) { - heading = previous; - break; - } - node = previous; - } - const base = heading ? `${headingText(heading)} sample` : "Code sample"; - const count = (seen.get(base) ?? 0) + 1; - seen.set(base, count); - region.setAttribute( - "aria-label", - count === 1 ? base : `${base} ${count}`, - ); - } - }, []); - - return null; -}