coeus
OfficialProvides model routing and AI-assisted workflow execution through Alibaba Cloud Model Studio, enabling use of Qwen models for code review, debugging, testing, and other engineering tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@coeus Run a code review on the latest commit and flag any issues."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Coeus AI MCP
Coeus is a provider-neutral MCP server for local AI-assisted engineering workflows.
It gives MCP-capable clients one stable coeus_* tool surface for project intake,
model routing, code review, debugging, testing, docs drift checks, release readiness,
design review, and multi-provider verification.
The current registry contains 55 tools. Provider selection is separate from workflow naming, so clients can keep the same MCP calls while choosing an OAuth-backed CLI or a direct API provider.
What Coeus Provides
A standard MCP stdio server named
coeus.55 provider-neutral
coeus_*tools for common developer workflows.Runtime provider health, capability, readiness, and catalog reporting.
Automatic provider routing with bounded fallback when auto-selected providers are unavailable.
Multi-provider verification with explicit consensus limits.
Related MCP server: WhenLabs/When
Install
Requirements:
Python 3.11 or newer.
At least one authenticated provider: an OAuth CLI session for
agy,codex, orclaude, or a direct API key fordeepseek,alibaba, oropenrouter.
git clone https://github.com/soryko/coeus-mcp.git
cd coeus-mcp
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e ".[dev]"For centralized local setup, place the three direct provider keys and other Coeus
settings in the repository-root .env file. Coeus loads that file when configuration
is initialized; variables already supplied by the process take precedence. The file
is gitignored and must not be committed.
Start from the included template:
cp .env.example .envCOEUS_DEEPSEEK_API_KEY=
COEUS_ALIBABA_API_KEY=
COEUS_OPENROUTER_API_KEY=
COEUS_DEFAULT_PROVIDER=autoThe agy, codex, and claude adapters use subscriptions already authenticated in
their local CLIs. No API key is required or accepted for these adapters. Run the
interactive login once as the same user that runs Coeus:
agy login
codex login
claude loginOAuth tokens remain in the CLI credential stores and must not be copied into .env.
Only COEUS_DEEPSEEK_API_KEY, COEUS_ALIBABA_API_KEY, and
COEUS_OPENROUTER_API_KEY are direct API credentials read from .env.
Verify the server locally:
python - <<'PY'
from mcp_server import CoeusMCPServer
server = CoeusMCPServer()
print(server.call_tool("coeus_healthcheck", {}))
print(server.call_tool("coeus_capabilities", {})["providers"])
PYThe console script used by MCP clients is:
./.venv/bin/coeus-aiMCP Client Configuration
Use an absolute path to coeus-ai. Desktop clients often launch without your shell
profile, so relying on PATH is brittle.
{
"mcpServers": {
"coeus": {
"command": "/absolute/path/to/coeus-ai-mcp/.venv/bin/coeus-ai",
"env": {
"COEUS_DEFAULT_PROVIDER": "auto"
}
}
}
}After connecting, ask your agent:
Use coeus_healthcheck and summarize which providers are ready.More client-specific examples live in docs/integrations.md.
Providers, catalogs, and routing
Coeus providers implement the same contract:
healthcheck(probe_network=False)list_models()ask(prompt, model, temperature, max_tokens)
Provider ID | Authentication | Default model | Catalog/readiness notes |
| OAuth subscription via |
| Headless CLI; vision and reasoning capable. |
| OAuth subscription via |
| Inventory comes from |
| OAuth subscription via |
| Checked-in models are bounded by subscription probes. |
|
|
| Fast model: |
|
|
| Alibaba Cloud Model Studio endpoint; provider ID is |
|
|
| Vision and context are model-dependent. |
COEUS_DEFAULT_PROVIDER=auto is the recommended default. In automatic mode, Coeus
selects ready, configured, capability-compatible candidates. A runtime authentication,
availability, timeout, or transport failure may trigger bounded fallback.
Strict provider IDs (agy, codex, claude, deepseek, alibaba, and openrouter)
request one provider and never fall back to another. Direct-key preference aliases
(deepseek_key, alibaba_key, and openrouter_key) put one provider first but remain
fallback-eligible. Supplying an explicit model disables fallback, including when
provider="auto".
When fallback occurs, inspect provider, model, fallback_from, fallback_reason,
and fallback_attempts in the result. coeus_route reports the planned route without
calling a provider; coeus_ask executes it.
Call coeus_list_models for the authoritative provider inventory. A provider entry
contains status, models, and complete. Model records normalize provider, id,
raw_id, capabilities, source, discovered_at, availability, available,
deprecated, and provider-specific metadata. Catalog probes are bounded and cached
for COEUS_PROVIDER_CATALOG_TTL (60 seconds by default); incomplete or stale catalogs
are not treated as ready routing evidence.
coeus_healthcheck reports configured, ready, default_model, and auth details.
OAuth providers include auth_mode, oauth, command_available, and resolved_path;
direct providers include api_key_configured. When a catalog was observed, health
also includes catalog_status, catalog_source, catalog_loaded_at,
catalog_age_seconds, catalog_complete, and catalog_stale. For the normalized,
secret-safe view, use coeus_runtime_diagnostics; its nested readiness contains
configured, reachable, direct_key, oauth, catalog, and ready.
coeus_multi_model_verify executes one strict provider/model attempt per selected
entry. It reports consensus only when at least two distinct provider/model responses
are substantive.
Complete tool surface
The registry exposes exactly 55 provider-neutral tools:
coeus_healthcheck, coeus_capabilities, coeus_list_models,
coeus_runtime_diagnostics, coeus_stats, coeus_route, coeus_ask,
coeus_project_intake, coeus_review_bundle, coeus_counterfactual_review,
coeus_debug_playbook, coeus_test_strategy, coeus_docs_drift_check,
coeus_release_readiness, coeus_multi_model_verify, coeus_wildcard,
coeus_design_review_bundle, coeus_version, coeus_summarize, coeus_eval_plan,
coeus_review_code, coeus_verify_solution, coeus_thinkdeep,
coeus_project_task_plan, coeus_second_opinion,
coeus_workflow_automation_plan, coeus_frontend_design_brief,
coeus_frontend_taste_direction, coeus_css_component_creator,
coeus_ui_asset_sources, coeus_static_asset_plan, coeus_critical_debate,
coeus_analyze_codebase, coeus_codebase_map, coeus_design_review,
coeus_start_conversation, coeus_continue_conversation,
coeus_list_conversations, coeus_clear_conversation, coeus_ai_collaboration,
coeus_extract_structured, coeus_git_diff_review, coeus_content_comparison,
coeus_review_pr, coeus_web_search, coeus_web_fetch, coeus_image_generate,
coeus_generate_tests, coeus_refactor_code, coeus_explain_code,
coeus_generate_docs, coeus_generate_commit, coeus_pixel_art_generate,
coeus_pixel_art_find, and coeus_pixel_palette.
Example Workflows
Repository Intake
Use coeus_project_intake on the current repository with max_depth=3 and max_files=500.
Summarize the stack, key files, risks, and suggested workflows.Model Routing
Use coeus_route for this task:
"Review a Python diff for correctness, backwards compatibility, and security."
Budget: standard. Speed: balanced. Requires vision: false.
Explain the selected provider, model, and workflow.Code Review
Use coeus_review_bundle on the current git diff.
Focus on correctness, missing tests, security, and maintainability.
Lead with concrete findings ordered by severity.Debugging
Use coeus_debug_playbook.
Symptom: The MCP client shows the server but tool calls fail.
Context: Include startup logs and the MCP client configuration.
Return ranked hypotheses and the smallest confirming experiments.Multi-Provider Verification
Use coeus_multi_model_verify with this prompt:
"Does this implementation preserve provider neutrality? List blocking risks only."
Providers: auto. Temperature: 0.2.Wildcard Ideation
Use coeus_wildcard for this problem:
How can we reduce CI build times without asking every team to rewrite their tests?
Set mode=chaotic. Return the three wildcard options and the strongman option.Use mode=practical when the output needs near-term product or engineering ideas.
Use mode=moonshot when the user explicitly wants speculative directions.
Release Readiness
Use coeus_release_readiness for a public GitHub release.
Include git status and docs drift.
Explain blockers and exact follow-up commands.Configuration
Variable | Default | Notes |
|
| Automatic routing or one canonical provider ID. |
| blank | Optional comma-separated provider preference order; capability and readiness checks still apply. |
| empty | Direct DeepSeek credential. |
| empty | Direct Alibaba Cloud Model Studio credential. |
| empty | Direct OpenRouter credential. |
|
| OAuth CLI executable. |
|
| Agy starting model. |
|
| Ignored, non-secret Agy runtime profile directory. |
|
| OAuth CLI executable. |
|
| Codex starting model. |
|
| OAuth CLI executable. |
|
| Claude starting model. |
|
| DeepSeek starting model. |
|
| DeepSeek fast model. |
|
| Alibaba starting model. |
|
| OpenRouter starting model. |
|
| Per-provider execution budget in seconds. |
|
| Bounded CLI output capture. |
|
| Model catalog cache lifetime in seconds. |
|
| Tool profile label returned by capabilities. |
|
| Design capability pack flag. |
|
| Pixel capability pack flag. |
|
| Web capability pack flag. |
|
| Experimental workflow flag. |
Startup does not require every provider to be configured. Missing keys, missing CLI
binaries, missing OAuth sessions, and missing dependencies are reported by
coeus_healthcheck.
Development
Run the built-in unittest suite:
python3 -m unittest discover -vRun pytest when dev dependencies are installed:
python -m pytestThe default suite is offline and never requires provider credentials. Bounded live release probes are opt-in and make one independent request per canonical provider:
COEUS_LIVE_PROVIDER_TESTS=1 ./.venv/bin/python -m pytest \
tests/test_live_provider_smoke.py -q -rsEach probe uses a tiny prompt and token budget, does not use fallback, and
records the requested and actual model. Outcomes are reported separately:
passed means the request returned a substantive response; failed means a
configured provider returned another error; not_configured means its API
credential or OAuth CLI is unavailable; and authentication_required means a
configured provider rejected the authentication. The latter two outcomes are
skips, never passes. Without COEUS_LIVE_PROVIDER_TESTS=1, all six provider
probes skip before constructing the server or making a network/provider call.
Useful local smoke check:
python - <<'PY'
from mcp_server import CoeusMCPServer
server = CoeusMCPServer()
print(len(server.list_tools()))
print(server.call_tool("coeus_docs_drift_check", {"include_legacy": False}))
PYTroubleshooting
Start with health and capability checks:
python - <<'PY'
from mcp_server import CoeusMCPServer
server = CoeusMCPServer()
print(server.call_tool("coeus_healthcheck", {"probe_network": False}))
print(server.call_tool("coeus_capabilities", {})["providers"])
PYCommon issues:
mcp dependency is not importable: activate the virtualenv and runpython -m pip install -e ".[dev]".No provider is ready: run the relevant OAuth login or configure one of the three direct Coeus API keys, then rerun
coeus_healthcheck.A CLI is unavailable: install the CLI or set its
COEUS_*_COMMANDpath.A provider is configured but not ready: inspect catalog status and staleness in
coeus_runtime_diagnostics.Tool calls work in a shell but not a desktop client: use an absolute
commandpath and restart the client.coeus_multi_model_verifyreturns no attempts: no provider is configured and ready for the requested verification.
This release has a breaking provider-neutral tool surface. Existing configurations
must migrate to coeus-ai and the coeus_* names; the exact old-to-new workflow map
is in docs/migrations/vnext-provider-migration.md.
Available Tools
59 toolscoeus_ai_collaborationC
Prepare a multi-round provider collaboration workflow
Inputs: content (required), collaboration_mode (required), models, rounds.
coeus_analyzeC
Umbrella for summarize, codebase map, and explain; mode is summarize, map, or explain
Inputs: target (required), question (required), mode, model.
coeus_analyze_codebaseC
Ask a large-context question about a directory or @file set with ignore guidance
Inputs: target (required), question (required), model, scope, +1 more.
coeus_askC
Make a provider-neutral prompt call through the routed model provider
Inputs: prompt (required), model, speed, budget, +9 more.
coeus_capabilitiesA
Return a truthful live inventory of tools, providers, capability packs, and experimental flags
Inputs: no named parameters.
coeus_clear_conversationC
Clear an in-memory conversation session
Inputs: conversation_id (required).
coeus_codebase_mapC
Produce a large-context architecture map for a directory or @file set
Inputs: target (required), focus, model, ignore.
coeus_content_comparisonC
Compare multiple sources semantically, structurally, factually, or as code
Inputs: sources (required), model, focus_areas, output_format, +2 more.
coeus_continue_conversationA
Continue an existing in-memory conversation session
Inputs: prompt (required), conversation_id (required), model.
coeus_counterfactual_reviewC
Review a change against alternate futures to expose hidden state, dependency, and release risks
Inputs: target (required), code, diff, focus, +8 more.
coeus_critical_debateA
Execute a Red Team vs Blue Team adversarial debate on a plan, design, or code snippet to identify critical flaws and mitigations
Inputs: content (required), depth, context, red_model, +4 more.
coeus_css_component_creatorC
Create stylesheet-backed component code from an approved design direction; pipeline step 3
Inputs: purpose (required), component_name (required), model, states, +4 more.
coeus_debug_playbookB
Create debugging hypotheses, experiments, and logging or instrumentation plan
Inputs: symptom (required), model, context, provider, +2 more.
coeus_design_reviewB
Review a screenshot, rendered HTML/CSS, or design artifact against frontend taste criteria
Inputs: artifact (required), model, context, standards.
coeus_design_review_bundleC
Review screenshot, HTML, and CSS artifacts with concrete implementation fixes
Inputs: css, html, goals, model, +4 more.
coeus_docs_drift_checkC
Compare README/docs/examples against the live registry
Inputs: docs_path, include_legacy.
coeus_eval_planC
Evaluate an implementation plan for feasibility, risk, and requirement fit
Inputs: plan (required), model, context, requirements.
coeus_explain_codeC
Explain supplied source code with optional symbol, line, and topic focus
Inputs: code (required), model, language, focus_lines, +4 more.
coeus_extract_structuredC
Extract structured data from content using a JSON schema
Inputs: schema (required), content (required), model, examples, +1 more.
coeus_frontend_design_briefC
Create a frontend design brief; pipeline step 1 before taste direction, components, and assets
Inputs: project (required), model, audience, constraints, +3 more.
coeus_frontend_taste_directionA
Define non-generic frontend taste direction; pipeline step 2 before component creation
Inputs: project (required), model, audience, workflow, +3 more.
coeus_generate_commitC
Generate commit message candidates from a diff
Inputs: diff (required), model, style, num_candidates, +1 more.
coeus_generate_docsC
Generate docs, README content, API docs, or docstrings for supplied code
Inputs: code (required), model, language, template, +2 more.
coeus_generate_testsC
Generate test files or test code for supplied source
Inputs: code (required), model, language, execute_tests, +4 more.
coeus_git_diff_reviewA
Alias of coeus_review: review an explicit git diff and return structured findings (status/ship/findings).
Inputs: diff (required), model, base_branch, commit_message.
coeus_healthcheckB
Validate Coeus entry point, providers, keys, CLI paths, and dependencies
Inputs: probe_network.
coeus_image_generateC
Generate image bytes only when a capable provider is configured; returns an error if the routed model cannot emit an image
Inputs: prompt (required), seed, model, style, +4 more.
coeus_list_conversationsB
List active in-memory conversations
Inputs: limit.
coeus_list_modelsB
Return the authoritative model inventory for each configured provider
Inputs: no named parameters.
coeus_multi_model_verifyB
Run real verification across configured providers and summarize consensus limits
Inputs: prompt (required), models, providers, reasoning, +4 more.
coeus_pixel_art_editC
Edit a pixel grid under a style contract (recolor or regenerate_slot)
Inputs: op (required), grid (required), style (required), name, +3 more.
coeus_pixel_art_findC
Find pixel-art references or sprites from allowed source families
Inputs: query (required), model, sources, max_results, +2 more.
coeus_pixel_art_generateC
Generate pixel-art sprite plans and renderable pixel grids
Inputs: prompt (required), kind, model, width, +6 more.
coeus_pixel_art_setB
Generate a matching UI icon family from names and a shared prompt
Inputs: names (required), prompt (required), width, palette, +2 more.
coeus_pixel_paletteA
List or inspect bundled pixel-art palettes
Inputs: name.
coeus_project_intakeC
Map a repository's stack, risks, key files, and suggested Coeus workflows
Inputs: root, max_depth, max_files.
coeus_project_task_planC
Convert project goals and tasks into an ordered implementation plan
Inputs: tasks (required), project (required), model, context, +1 more.
coeus_refactor_codeC
Suggest or generate refactors for supplied source code
Inputs: code (required), goal, model, language, +2 more.
coeus_release_readinessC
Return a ship/no-ship release readiness checklist
Inputs: target, include_git_status.
coeus_reviewB
Structured finder-then-verify code review returning findings JSON. effort is quick, standard, or thorough.
Inputs: code, diff, focus, effort, +9 more.
coeus_review_bundleB
Alias of coeus_review: bundle diff/code/context review and return structured findings. preview_only returns prompts and route without calling the provider.
Inputs: code, diff, focus, model, +3 more.
coeus_review_codeC
Review a code blob for quality, security, performance, and requested severity/output constraints
Inputs: code (required), model, purpose, language, +3 more.
coeus_review_prB
Alias of coeus_review: gather a PR or base..head diff then return structured findings.
Inputs: diff, model, head_ref, pr_number, +3 more.
coeus_routeB
Choose provider, model, and workflow based on task, budget, speed, and vision needs
Inputs: task (required), model, speed, budget, +8 more.
coeus_runtime_diagnosticsC
Return secret-safe runtime, CLI, git, catalog, and provider readiness diagnostics
Inputs: probe_network.
coeus_second_opinionB
Get a rigorous second opinion on an approach or technical decision
Inputs: context (required), approach (required), model, question, +1 more.
coeus_start_conversationC
Start an in-memory conversation session
Inputs: title (required), tags, description.
coeus_static_asset_planB
Plan safe static asset integration from a sourced asset manifest; pipeline step 5
Inputs: asset_manifest (required), project_context (required), model, framework, +1 more.
coeus_statsC
Return consolidated Coeus server, cache, and rate-limit statistics
Inputs: section.
coeus_summarizeB
Summarize content or file references; when files is provided it is used instead of content
Inputs: files, focus, model, content.
coeus_test_strategyC
Create a test plan before generating test code
Inputs: change (required), model, provider, risk_level, +2 more.
coeus_thinkdeepC
Run a structured deep investigation of a bug, decision, or risk
Inputs: problem (required), model, context, constraints, +1 more.
coeus_ui_asset_sourcesB
Find licensed UI asset sources and manifests; pipeline step 4 before static asset planning
Inputs: asset_need (required), model, brand_context, target_directory, +2 more.
coeus_verify_solutionC
Verify a solution against requirements, test criteria, and context
Inputs: solution (required), model, context, requirements, +1 more.
coeus_versionA
Return the installed Coeus package version without invoking a provider
Inputs: no named parameters.
coeus_web_fetchB
Fetch a URL with SSRF protections and analyze fetched bytes; HTTP failures return error and do not invent page content
Inputs: url (required), model, extract_mode, max_body_size.
coeus_web_searchC
Requires a configured retrieval backend and returns an error without one; does not search the web by prompting a chat model
Inputs: query (required), model, language, num_results, +4 more.
coeus_wildcardC
Generate three strange solution options and synthesize one strongman idea
Inputs: problem (required), mode, models, context, +6 more.
coeus_workflow_automation_planC
Plan safe automation for a repetitive workflow
Inputs: goal (required), current_steps (required), model, context, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 59 tools
Multiple tools overlap heavily: `coeus_review_bundle`, `coeus_git_diff_review`, and `coeus_review_pr` are explicit aliases of `coeus_review`, while `coeus_review_code` and the design-review pair blur boundaries further. The analyze/summarize/explain/codebase-map cluster and the diagnostics cluster (stats, healthcheck, runtime_diagnostics, capabilities) also make tool selection ambiguous. An agent would frequently need extra context to avoid picking a near-duplicate.
All tools share the `coeus_` prefix and snake_case, which keeps the set readable, but verb/noun ordering is inconsistent: `generate_commit` contrasts with `pixel_art_generate`, and review aliases use `review_pr`, `git_diff_review`, and `review_bundle` interchangeably. Noun-only names such as `stats`, `version`, and `healthcheck` add to the mixed pattern.
At 59 tools, this server far exceeds the 25+ 'too many' threshold, and much of the bulk comes from aliases and specialty pipelines like frontend design and pixel art rather than core capabilities. The core ask/model/route functionality needs only a handful of tools, so the set should be consolidated significantly.
Across its broad intended scope, the server covers many workflows: ask/route, code review, tests, refactoring, docs, planning, web fetch/search, conversations, and pixel/frontend pipelines. However, provider/model configuration operations are missing (only list and diagnostics exist), several apparent duplicates are aliases rather than new capabilities, and some workflows depend on external backends. These gaps are work-aroundable but noticeable.
Maintenance
Related MCP Connectors
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
MCP-native AI SRE: ask what's broken in production, get a reviewed GitHub fix PR.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables spec-driven development workflows with AI assistants, providing tools for managing specification lifecycles, task dependencies, code navigation, testing, and automated reviews through a unified CLI and MCP interface.4MIT
- AlicenseAqualityDmaintenanceA unified developer toolkit for AI-assisted workflows. Task timing, doc drift detection, env validation, secret scanning, port conflict resolution, AI context generation, and license auditing — one MCP server, one install.74MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, create starter projects, analyze codebases, and execute multi-step software development workflows through MCP tools.30 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, map codebases, create starter projects, manage tasks, and run multi-step software development workflows through MCP tools.30 npmMIT