AGIW MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TYPESAFE_API_KEY | No | TypeSafe API key for the optional Jev tools. If not set, agiw-mcp can read it from the macOS Keychain or Linux Secret Service. | |
| AGIW_MCP_AUTHOR_MODEL | No | Model ID of the author model. Can also be set as author_model in config.json. | |
| AGIW_MCP_MODEL_BASE_URL | No | Base URL of the local OpenAI-compatible model server, e.g. http://127.0.0.1:1234/v1. Can also be set as model_base_url in config.json. | |
| AGIW_MCP_REVIEWER_MODEL | No | Model ID of the reviewer model, which must differ from the author model. Can also be set as reviewer_model in config.json. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AGIW MCP. When the user says "initiate online code mode" with no task, call agiw_readiness and report READY or the first missing local prerequisite with its fix; start nothing else. With a task: use agiw_nisi_run with the relevant file contents and review the proposed contents yourself. Jev pre/post checks are optional and require recorded consent and a key. Jev answers are advisory, not a verdict. The agiw_consent tool cannot grant consent. Ask the user to read the disclosure and run the consent CLI themselves; do not write consent.json or automate the prompt. Same-user shell or file access can change the consent record. agiw_nisi_run never writes project files; applying its proposed contents is a separate decision.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| agiw_readinessA | The "initiate online code mode" check. Only checks, never starts work. Returns READY, or the FIRST missing prerequisite with an exact fix, in this order: Python, configuration, Node.js 22+ whose node --help lists a permission flag (or allow_unsandboxed_nisi is true in config.json), vendored Nisi hashes, optional configured syntax Python, local OpenAI-compatible model server listing two distinct configured models. Optional Jev readiness is reported separately; key presence is checked only after consent (Linux lookup returns the key but discards its output). |
| agiw_statusB | Versions, configuration (home directory shown as ~) and which prerequisites are met. Contains no secrets and starts no work. |
| agiw_consentA | Show or revoke consent to send text to TypeSafe for the Jev checks. "show" returns exactly what is sent. This tool cannot grant consent. Use |
| agiw_jev_preA | Send a task description (at most 12 KiB) to Jev at TypeSafe with fixed questions about risk, blockers, missing detail, irreversible actions and reliance on old reports. Returns Jev's answers and which are flagged. Advisory, not a verdict. Refused unless consent is recorded and a key is available. Never retried automatically. |
| agiw_jev_postA | Send a result or report (truncated to 12 KiB) to Jev at TypeSafe with fixed questions about self-contradiction, unbacked claims, risk of acting on it and misclassified findings. Advisory, not a verdict. Refused unless consent is recorded and a key is available. Never retried automatically. |
| agiw_nisi_runA | Run one Nisi v0.3.2 workflow (draft, syntax check, tests, independent review, bounded repair) on file CONTENTS you pass in, using the configured local author and reviewer models. Runs in a private temporary directory that is removed afterwards. Never reads or writes project files and never executes generated code; returns proposed contents and Nisi's report for you to review and apply yourself. Tests are the built-in checks (some file changed, no empty file) plus optional contains/not_contains assertions. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool maps to a distinct step in the workflow (readiness, consent, jev_pre, jev_post, nisi_run), and pre/post are clearly separated by stage. The only real overlap is agiw_readiness vs agiw_status, both of which report prerequisite/configuration state, though descriptions distinguish check-gating from informational reporting.
All six names share a consistent `agiw_` prefix and snake_case formatting, which makes the set easy to scan. Minor deviation: suffixes mix nouns (readiness, status, consent) with verb-style forms (jev_pre, jev_post, nisi_run), so the action pattern isn't fully uniform.
Six tools is well-scoped for a single gated pipeline: one check, one status, one consent control, and a pre/post advisory pair plus one workflow runner. Nothing appears redundant or padded.
The pre/post advisory pair and the Nisi runner cover the core lifecycle, but there are two deliberate dead ends: consent cannot be granted via any tool (must use a terminal command) and Nisi output cannot be applied by the toolset. These are documented workarounds rather than gaps in coverage, but they will still force an agent out-of-band for a required step.