agentleFS
AnthropicKnown publisheranthropics/claude-quickstarts/managed-agents/mcp-server-typescript/CLAUDE.md

claude-quickstarts / mcp-server-typescript

CLAUDE.md18k starsChanged 2 months agoMITView on GitHub

MCP server that exposes Managed Agents session primitives as tools. Two entrypoints sharing one tool set: src/server.ts (stdio → Claude Desktop and Claude Code) and src/server-http.ts (Streamable HTTP → claude.ai custom connector). This quickstart creates no agents, so there is no agents/ directory. It needs one environment, created once from environment.yaml (the command is in that file and in README.md). Commands: bun run stdio (Desktop, Code), bun run http (claude.ai), bun run typecheck.

Trending

More talk lately.about the whole repository

Dec 2025: 3 mentionsJan 2026: 4 mentionsFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 7 mentionsOct 2026: 3 mentionsNov 2026: 2 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the anthropics/claude-quickstarts repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about anthropics/claude-quickstarts

The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 23

Talked about on GitHub and Bluesky (23 times).

On GitHub · 22

17 more on GitHub

The file

Files
CLAUDE.md

MCP server (TypeScript) × Claude Managed Agents

MCP server that exposes Managed Agents session primitives as tools. Two entrypoints sharing one tool set: src/server.ts (stdio → Claude Desktop and Claude Code) and src/server-http.ts (Streamable HTTP → claude.ai custom connector).

When the user asks to set this up, extend it, or debug it

  1. Invoke /claude-api first. That skill loads the full Managed Agents API reference (agents, sessions, events, environments). Use it as the source of truth for any SDK call. Don't guess field names.
  2. Read ./skill.md and walk the user through it. First ask which client they're targeting (Claude Desktop or Claude Code → stdio path, claude.ai → HTTP + deploy + connector), then follow that path's checklist. Both end with the same send_message → wait_for_idle loop and relay-mode Project instructions. For the HTTP path, do not skip "What the token can reach": get ALLOWED_AGENT_IDS set before anything is deployed.
  3. Adding a tool? Write the SDK call in src/managed-agents.ts, then register it in src/tools.ts with a zod schema and a scope ("agent", "session", or "listing"). The scope is what runs the ALLOWED_AGENT_IDS check, and registration throws if it doesn't match the schema. A "listing" tool takes no ID, so it has to filter its own results the way listAgents does. See the table in skill.md for what is deliberately not exposed (destructive ops, secrets).

This quickstart creates no agents, so there is no agents/ directory. It needs one environment, created once from environment.yaml (the command is in that file and in README.md).

Commands: bun run stdio (Desktop, Code), bun run http (claude.ai), bun run typecheck.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.