# MCP

Built-in MCP defaults:

- `context7`
- `lsp`
- `ast_grep`
- `websearch`
- `grep_app`

For reproducible project installs, the config hook publishes SEED MCP defaults
without merging existing host/user OpenCode MCP config. Set
`isolation.allow_host_mcp: true` only when you deliberately want host MCP
entries to participate; in that opt-in mode, existing `{ "enabled": false }`
entries remain disabled.

`websearch` is `auto` by default and is enabled only when `EXA_API_KEY` or `TAVILY_API_KEY` is available. `grep_app` is `auto` by default and can be enabled with `SEED_ENABLE_GREP_APP=1`.

`lsp` and `ast_grep` are enabled only when SEED can resolve local MCP CLIs from
the target repository or installed package ancestry:

- `packages/lsp-tools-mcp/dist/cli.js` or `packages/lsp-tools-mcp/src/cli.ts`
- `packages/ast-grep-mcp/dist/cli.js` or `packages/ast-grep-mcp/src/cli.ts`

If those CLIs are not present, SEED-agent registers the MCP entry as disabled and
adds `SEED_MCP_DIAGNOSTIC` to the local MCP environment. It does not fall back to
a fake server or to an unrelated `npx @ast-grep/cli mcp` command.
