838b5ae216
Update root + 43 directory-level AGENTS.md files to reflect current state: - Root AGENTS.md rewritten with accurate counts (1967 TS files, 1304 source + 663 test, 278k LOC, 120 barrel index.ts), 7-step init flow, 5-tier hook composition, and full Team Mode section (12 team_* tools, eligibility, storage layout, config gate) - src/AGENTS.md adds team-mode init step, current per-subdir file/LOC table - src/tools/AGENTS.md documents conditional gates (team-mode +12, task system +4, hashline +1, interactive_bash +1, look_at +1) with always-on baseline of 20 - src/hooks/AGENTS.md splits into 5 tiers + 4 conditional team-mode hooks - src/features/team-mode/AGENTS.md surfaces 12 tools, eligible agents, spawn-race-safe invariants, and integration points - src/features/builtin-skills/AGENTS.md tracks 10 skills incl. team-mode - src/agents/AGENTS.md, src/plugin/AGENTS.md, src/config/AGENTS.md updated for team-mode awareness, accurate counts, and current schema field list - All other AGENTS.md files refreshed to 2026-05-08 generation date
1.7 KiB
1.7 KiB
src/mcp/ — 3 Built-in Remote MCPs
Generated: 2026-05-08
OVERVIEW
Tier 1 of the three-tier MCP system. 3 remote HTTP MCPs created via createBuiltinMcps(disabledMcps, config).
BUILT-IN MCPs
| Name | URL | Env Vars | Tools |
|---|---|---|---|
| websearch | mcp.exa.ai (default) or mcp.tavily.com |
EXA_API_KEY (optional), TAVILY_API_KEY (if tavily) |
Web search |
| context7 | mcp.context7.com/mcp |
CONTEXT7_API_KEY (optional) |
Library documentation |
| grep_app | mcp.grep.app |
None | GitHub code search |
REGISTRATION PATTERN
// Static export (context7, grep_app)
export const context7 = {
type: "remote" as const,
url: "https://mcp.context7.com/mcp",
enabled: true,
oauth: false as const,
}
// Factory with config (websearch)
export function createWebsearchConfig(config?: WebsearchConfig): RemoteMcpConfig
ENABLE/DISABLE
// Method 1: disabled_mcps array
{ "disabled_mcps": ["websearch", "context7"] }
// Method 2: enabled flag
{ "mcp": { "websearch": { "enabled": false } } }
THREE-TIER SYSTEM
| Tier | Source | Mechanism |
|---|---|---|
| 1. Built-in | src/mcp/ |
3 remote HTTP, created by createBuiltinMcps() |
| 2. Claude Code | .mcp.json |
${VAR} expansion via claude-code-mcp-loader |
| 3. Skill-embedded | SKILL.md YAML | Managed by SkillMcpManager (stdio + HTTP) |
FILES
| File | Purpose |
|---|---|
index.ts |
createBuiltinMcps() factory |
types.ts |
McpNameSchema: "websearch" | "context7" | "grep_app" |
websearch.ts |
Exa/Tavily provider with config |
context7.ts |
Context7 with optional auth header |
grep-app.ts |
Grep.app (no auth) |