MCP servers
aiflow generates one MCP config per enabled agent (.aiflow/config.json → agents.*) from the
same server set — .mcp.json for Claude Code, .codex/config.toml for OpenAI Codex CLI,
.vscode/mcp.json for GitHub Copilot in VS Code. The Model Context Protocol (MCP) servers it
can wire:
| Server | Purpose | Enabled by |
|---|---|---|
| git-host (github / gitlab / bitbucket / gitea / forgejo) | issues, PRs/MRs on your host | remote.mcp |
| GitKraken | workspaces/PRs/issues via the gk CLI — a client, wired alongside any host |
gitkraken.enabled |
| filesystem | safe structured file access | mcp.filesystem |
| graphify | structural code knowledge graph (imports/call-graph) | graphify.enabled |
| cocoindex-code | semantic code RAG search (ccc mcp) |
mcp.cocoindex |
| context7 | live, version-correct library docs | mcp.context7 |
| task-master | goal/PRD → task decomposition | taskmaster.enabled |
The git-host MCP is chosen per remote.type, with the base URL threaded in (GITHUB_HOST /
GITLAB_API_URL / GITEA_URL) so enterprise/self-managed hosts work. Tokens come from .env
(remote.tokenEnv). Claude receives environment placeholders, Codex gets env_vars forwarding,
and VS Code receives password-protected input prompts. For Codex .env forwarding, launch with
aiflow codex.
Lightweight defaults
The default keeps the optional tool set small. Context7 is enabled, and the selected git-host MCP
is wired when a remote host is configured. Filesystem, Graphify, CocoIndex, Task Master, and
GitKraken start disabled; enable them with aiflow change-settings when a project benefits from
them. Graphify and CocoIndex are most useful on larger codebases where retrieval cost justifies the
extra local service and tool context.
Adding your own MCP server
Add an entry to .mcp.json — servers aiflow doesn’t manage are preserved on re-render:
{
"mcpServers": {
"my-server": {
"command": "npx",
"args": ["-y", "@scope/my-mcp-server"],
"env": { "MY_TOKEN": "${MY_TOKEN}" } // secrets via .env, never inline
}
}
}
Then configure the server in the native config for each agent that needs it and store secrets in
.env or the agent’s secure prompt mechanism. Prefer a focused MCP over a broad one — fewer tools
mean less context and fewer wrong turns.
See Configuration and the MCP servers ecosystem.