Overhaul how TypeAgent connects to and manages MCP servers.
Connectivity and fidelity:
- Move to the v2 MCP client with protocol negotiation.
- Support generic stdio servers (command/env/cwd/headers/timeout), not just bundled .js/.py scripts.
- Convert each advertised tool independently so one unsupported tool no longer fails the whole server; skipped tools are reported as diagnostics.
- Map tool results to TypeAgent results, including text/image/audio/embedded content and error results.
Configuration:
- Add a normalized MCP server config model (transport, args, env, cwd, enabled tools, trust, scope) with secrets held as credential references, not values.
- Import .mcp.json, .github/mcp.json, and .vscode/mcp.json config files, normalizing them into that model.
Dynamic lifecycle:
- Add/remove/update user-managed MCP servers at runtime and propagate the change to every connected session without a restart.
- Persist user-managed servers; keep shipped servers as seeded configuration.
Extension management:
- Discover MCP servers from a local MCP config file through @Package.
- Manage native agents and MCP servers from one command surface, tagged by extension kind, with `@package available --type agent|mcp|all` to filter.
Fully covered by offline unit tests; build and local suite green.
Overhaul how TypeAgent connects to and manages MCP servers.
Connectivity and fidelity:
Configuration:
Dynamic lifecycle:
Extension management:
Fully covered by offline unit tests; build and local suite green.