| name | typeagent-setup |
| description | Configure TypeAgent integration mode and settings |
| user-invocable | true |
TypeAgent Setup
Configure the TypeAgent integration for Copilot CLI.
Current Configuration
Read the config file at ${PLUGIN_DATA}/config.json (create if it doesn't exist).
Options
Ask the user which integration mode they'd like:
- direct (default) - Hook handles requests directly, bypassing the LLM. Fastest response time (~2-3s) but no streaming.
- mcp - Hook redirects to MCP tool, allowing the LLM to call TypeAgent. Adds ~1-2s for LLM overhead but enables streaming and LLM formatting.
- dev - Hook tries registered PowerShell development actions first and lets Copilot handle misses.
- bypass - Disable TypeAgent routing and reject TypeAgent MCP calls.
The typeagent-workspace read/glob/grep/fetch tools are available in direct,
mcp, and dev modes. They do not require a separate macro mode.
Also ask for:
- TypeAgent host (default: localhost) - The host where the TypeAgent agent-server is running
- TypeAgent port (default: 8999) - The port for the agent-server
Save Configuration
Write the configuration to ${PLUGIN_DATA}/config.json:
{
"mode": "direct",
"host": "localhost",
"port": 8999
}
Tell the user to restart Copilot CLI for changes to take effect.
They can also override temporarily with environment variables:
TYPEAGENT_MODE=direct, mcp, dev, or bypass
TYPEAGENT_HOST=hostname
TYPEAGENT_PORT=port