agenttrio
Runs bounded planner → coder → read-only reviewer agent workflows against a local Ollama backend. The Ollama endpoint (default http://127.0.0.1:11434) and per-role models (planner, coder, reviewer) are configured by the operator, with model overrides and a remote-endpoint guard; status reports also probe Ollama reachability and list available models.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agenttrio
agenttrio runs bounded agent workflows made of three roles — a planner, a coder, and a separate read-only reviewer — against a local Ollama backend. It reports the workspace status, runs one task through the trio behind a host-enforced verification gate, and runs the workspace's configured checks. One binary serves a command-line interface and a stdio MCP server with exactly three tools.
Work is bounded by the operator config: model turns per role,
coder → verification → reviewer cycles, total tool calls, and
context size all have explicit budgets, and a run is only
verified when the gate below passes — never on the model's say
alone.
Configuration
agenttrio reads an operator-reviewed TOML file. Passing --config <file> explicitly approves loading that file; a workspace
config.toml or .flow.toml is never auto-loaded. The only
auto-loaded location is $XDG_CONFIG_HOME/flow/config.toml.
workspace_dir = "/absolute/path/to/workspace"
[ollama]
base_url = "http://127.0.0.1:11434"
model = "qwen2.5-coder:7b"
timeout = 120
[models]
planner = "qwen2.5-coder:7b"
coder = "qwen2.5-coder:7b"
reviewer = "qwen2.5-coder:7b"
[agent]
max_iterations = 6
max_cycles = 2
max_tool_calls = 64
max_context_chars = 100000
[checks.test]
cmd = ["npm", "test"]
timeout = 60000
required = true
kind = "test"
filetypes = ["ts"]Notes that matter:
Check
timeoutvalues are milliseconds; the Ollamatimeoutis seconds.--workspaceoverrides the config's workspace, and--modeloverrides every role's model.A non-loopback Ollama endpoint is refused unless the config sets
ollama.allow_remote = true.Default mode is read-only.
runandcheckrequire--trusted, which is what allows project edits and explicitly configured named checks.With no resolvable configuration, every command fails with an error naming the missing configuration — nothing is invented.
Ollama itself is external: run
ollama serveand pull a tool-capable model (for exampleollama pull qwen2.5-coder:7b) before expecting runs to work.
Related MCP server: Convorel
Install
npx @reneturcios/agenttrio status --config /path/to/operator.tomlOr run the container image:
docker run -i ghcr.io/cloudcorprecords/agenttrioThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead; mount your config and workspace into the container if you use it that way.
CLI
agenttrio status --config operator.toml
agenttrio run "Fix the failing parser test" --config operator.toml --trusted
agenttrio check --config operator.toml --trusted
agenttrio check test --config operator.toml --trusted
agenttrio --versionReports print as JSON. Exit codes follow the documented scheme:
0 on success, 1 for a runtime failure (including an
unverifiable run configuration), and 2 for usage errors.
Arguments are validated before any configuration is read, so a
malformed invocation is always a usage error.
The verification gate
A run is reported verified: true only when all of these hold:
the planner and coder complete within their budgets;
at least one required named check runs, and every required check passes;
a separate read-only reviewer returns structured approval (a JSON object with
"approved": true).
If the gate fails, the cycle repeats (coder → checks → reviewer)
up to max_cycles, and the final report says verified: false
with a note naming which condition failed.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio
MCP server (newline-delimited JSON-RPC):
npx -y @reneturcios/agenttrio mcp --config /path/to/operator.toml --trustedMCP client configuration:
{
"mcpServers": {
"agenttrio": {
"command": "npx",
"args": ["-y", "@reneturcios/agenttrio", "mcp", "--config", "/path/to/operator.toml", "--trusted"]
}
}
}Replies carry the report as a JSON text block plus
structuredContent; failures are returned as isError results.
The server is deliberately sequential.
Tools
The tool list is intentionally only these three tools.
Tool | Input | What it returns |
|
| The status report: workspace, Ollama reachability and available models, per-role models, agent budgets, and configured checks. |
|
| The run report: planner/coder output, check results, reviewer decision, cycles used, and the |
|
| The check report: every result for the checks that ran and whether they all passed. Omit |
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake executor/fetch/runner only)
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Hosted MCP runtime where your agent publishes its own tools by tool call and keeps working.
Free MCP tools: the only MCP linter, health checks, cost estimation, and trust evaluation.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT Web or another MCP client to inspect and develop a local workspace, read local Codex task history, and use the complete installed XcodeBuildMCP catalog through a small set of stable tools.MIT
- AlicenseNot gradedqualityAmaintenanceProvides local, read-only MCP tools that expose a specified workspace's directory listing, file contents, text search, git status, and git diff to AI clients.1Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables secure discovery and invocation of sandboxed filesystem, repository inspection, and utility tools through a unified MCP client with schema validation, timeouts, and execution traces.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to route coding tasks across local and cloud models with explicit budgets, repository planning and execution, and independent validation/repair checks.Apache 2.0