MCP-CONFIG · tooling-foundation
This library as an MCP server
A .mcp.json entry that connects @theaicape/mcp: search and fetch this site's verified artifacts, patterns, and pillar guides from inside your agent instead of copy-pasting from a browser.
✓ verified 2026-07-18 · stack: claude-code, mcp, node · source
The site you are reading practises its own
AI-legibility argument:
every page is served as raw markdown, and @theaicape/mcp wraps that surface
as an installable MCP server in the same style as the awslabs servers. One
command and your agent can search this artifact library and pull any artifact,
fenced code intact, without leaving the session.
claude mcp add theaicape -- npx -y @theaicape/mcpOr committed to the repo so the whole team gets it on clone:
{ "mcpServers": { "theaicape": { "type": "stdio", "command": "npx", "args": ["-y", "@theaicape/mcp"] } }}What it does
list_pillars: the pillars (and an empty tracks list, kept for older clients), with blurbs and artifact counts. The taxonomy your agent browses is the one on this site, fetched live.search_artifacts: filter by free-text query, pillar, type, or stack tag. Filter vocabularies are validated against the live index at/api/artifacts.json, so the server can never drift from the site.get_artifact: the full markdown of one artifact, including its fenced code blocks, with the canonical URL and verification date appended. What the agent receives is exactly what this site publishes.get_pattern: pillar landings, pattern pages, and track pages by slug, for when the agent needs the reasoning behind an artifact, not just the file.- The server is stateless and holds no content: it is a thin client of the live site, so a merged content update is visible to every installed copy within minutes, with no package release.
Failure modes
- Site unreachable, no offline fallback. Deliberate: stale artifacts copied into a repo are worse than none. Requests time out after ten seconds and the error names the URL; retry when connectivity is back.
- Index staleness window. The catalogue is cached in memory for five minutes, so a deploy can take that long to appear mid-session. Restart the server (or wait) if you need a just-published artifact.
- No Node.js, no server.
npxneeds a Node 20+ runtime on the workstation, the standard cost of stdio servers. Bake Node into the dev container if the team uses one. npx -yfloats to latest. Each launch can pull a new version, the usual supply-chain consideration. Pin a version inargs(@theaicape/mcp@0.1.0) if your security posture requires reproducible tooling.- stdio does not auto-reconnect. If the local process dies, use
/mcp reconnect; only HTTP transports reconnect automatically.
Verified against the .mcp.json shape and claude mcp add semantics at
code.claude.com/docs/en/mcp and a live round-trip of all four tools against
the published package, 2026-07-18.