MCP Server developer guide
Use this simple guide to choose a capability and connect a client to the DeepAgentLabs MCP server. The AI Reference (robust) includes detailed operational guides, the generated tool catalog, current package declarations and all ten bundled schemas. Local stdio and hosted HTTP have different execution and authorization boundaries.
Capability index · Quickstart · Configuration · Troubleshooting · Reference
Capability index
Each row links to a short workflow below, with detailed references for configuration, contracts and limitations.
| Capability | What you can do |
|---|---|
| Local stdio connection | Connect an MCP host to the local server and verify the protocol boundary. |
| Diagnostics and compatibility | Inspect version, health, adapter availability and the packaged candidate matrix. |
| Tool catalog and discovery | Discover all 56 tool interfaces, prerequisites, session effects and schemas. |
| Seven-product AI documentation | Discover, search and read all seven robust references before building integrations. |
| Resources and prompt templates | Read reference/schema/session resources and retrieve six reusable prompts. |
| Lens analysis and diagnosis | Analyze workflows, diagnose failures, compare runs and inspect scores/SLOs. |
| Suite, ModelFit, routing and optimization | Compose recorded Lens suite/model/routing/optimization evidence without invoking models. |
| Native Evals validation | Validate native report/gate artifacts against packaged schema 1.0. |
| Chaos catalog, local experiments and export | Discover faults, run authorized local scripts and export native reports to draft AIOS. |
| Sidecar inventory and runtime boundary | Discover supervision modules and distinguish discovery from live host-bound controls. |
| AIOS schema and semantic validation | Route supported 0.4/0.6/0.8 draft artifacts through offline schema and rule checks. |
| Held-byte provenance resolution | Resolve provenance only against caller-held bytes without fetching referenced URIs. |
| Unified release and incident workflows | Compose comparisons, native evaluation/chaos evidence, gates, incident summaries and exports. |
| Onboarding, session state and recall | Inspect setup, retain producer results and recall cited session reports. |
| Hosted Streamable HTTP | Serve authenticated MCP requests with explicit host/origin and concurrency limits. |
| Signup and key lifecycle | Create, inspect, rotate and revoke hosted identities through configured stores. |
| Per-key access policy and administration | Enforce allow/deny, expiry and task scope at dispatch; administer independently of agent keys. |
| Tenant storage and dispatch serialization | Isolate sessions across memory/Redis/PostgreSQL and serialize dispatch with revocation. |
| Per-user Tower credentials | Select HTTPS read/write credentials from host-owned bindings for the authenticated user. |
| Tower investigation and recovery tools | Read evidence, preview permitted recovery/runbooks, execute approved actions and verify outcomes. |
| Independent Sidecar stop/revoke control | Bind a live runtime and independently authorized task operator outside model tools. |
| Access evidence and containment assertions | Preserve dispatch/completion/denial observations and test bounded authenticated containment. |
| Lens execution verification | Verify expected-run bundles through host trust keys and expose verified causal identifiers. |
| Operational AIOS audit projections | Project public native access observations while withholding private text and credentials. |
| Entry points and deployment configuration | Configure three console entry points, optional producers, storage and operator boundaries. |
| Upgrade, rollback and acceptance limits | Check candidate support, protocol/wheel acceptance and operator-owned deployment state. |
Quickstart
Requires Python 3.10 or newer in an activated virtual environment:
python -m pip install deep-agentic-core-mcp
Merge this entry into your MCP client's existing configuration. Use the executable's full path when the client cannot see your environment:
{
"mcpServers": {
"deep-agentic-core": {
"command": "deep-agentic-core-mcp",
"args": []
}
}
}
Restart/reconnect the client, then request these MCP tool calls (not shell commands):
core.version {}
core.compatibility {}
core.verify {}
Expect diagnostics with explicit optional-adapter availability. Missing producer packages do not mean the base server failed to connect. See client connection.
Usage
Repository examples require a source checkout. Tool-call fragments run in an initialized MCP client; file paths, credentials, endpoints, runtime bindings and native artifacts must be supplied by the host. Optional producers run in the server environment, not automatically in the client environment.
Seven-product AI documentation
The server bundles AI-readable documentation for every DeepAgentLabs product: AgenticLens, Agentic Evals, Agentic Chaos, Agentic Sidecar, Control Tower, the AI Operations Specification and this MCP server. GitHub Copilot, OpenAI Codex, Claude Code, Cursor or any MCP-compatible coding agent can use it to explore, understand, integrate and build with these tools from natural-language requests, without anyone navigating the documentation by hand.
Use core.docs_catalog {} to discover all seven products and pinned documentation
versions, then core.docs_search to find an API or example. Pass a returned product
and section ID to core.docs_read; follow next_offset for complete source. The
base package works offline without optional producer installs. Native documentation
resources and core.build_with_ecosystem provide the same workflow to supporting
hosts. See the complete workflow and resources.
Local stdio connection
Run deep-agentic-core-mcp through the client's stdio configuration. The local process retains trusted workspace access and process-local workflow state. Restart after installing a producer or changing its environment. The base package supports diagnostics, prompts, resources and bundled spec validation without optional sibling packages. See startup configuration and protocol interfaces.
Diagnostics and compatibility
Use core.health, core.version, core.verify and core.compatibility. Compatibility reports installed distribution observations against packaged acceptance pins; it does not prove the imported source, remote host readiness or current operator acceptance. core.onboard returns read-only setup steps. See candidate matrix, degraded operation and protocol smoke.
Tool catalog and discovery
Use MCP tools/list to inspect the current surface. The generated catalog covers all 56 registered tools, exact input schemas, prerequisites, expected duration and session mutations. Hosted discovery is filtered by access policy, and dispatch rechecks authorization; hiding a tool is not the enforcement mechanism. A listed tool can still report an unavailable producer.
Resources and prompt templates
Use MCP resources/list / resources/read for the sample workflow, fault catalog, release-check guide, AIOS schemas/rule catalogs, the seven-product documentation (resource://docs/catalog and resource://docs/{product}/reference, /index, /manifest, /license) and authorized saved sessions. Use prompts/list / prompts/get for six templates: core.build_with_ecosystem, core.release_check, tower.investigation, lens.workflow_summary, lens.compare_summary and chaos.experiment_brief.
Prompt retrieval supplies text; it does not execute tools or approve recovery. See the complete resource and prompt inventory, arguments and protocol examples.
Lens analysis and diagnosis
Install AgenticLens in the server environment, restart, and verify availability. Read resource://examples/sample_workflow; pass that JSON object as artifact to lens.analyze_workflow with a chosen session ID, then call lens.report_summary for that session. Structured run tools provide comparison (lens.compare_runs), diagnosis (lens.diagnose_run), score analysis (lens.score_analysis), evidence auditing (lens.audit_report) and SLO summaries (lens.slo_summary).
Use the exact artifact family each tool requests: profiling workflows, structured runs and evaluation reports differ. See Lens tool schemas and producer integration contracts.
Suite, ModelFit, routing and optimization
lens.suite_from_traces converts recorded runs into regression cases; lens.suite_check inspects suites. lens.modelfit_recommend reads experiment evidence, lens.routing_decide explains eligible routing, and lens.optimization_analyze reads recorded traces for opportunities. These tools compose Lens APIs and do not invoke provider models or silently adopt recommendations. See inputs and output limits and Lens integration.
Native Evals validation
evals.validate_artifact validates native evaluation-report or gate JSON with packaged schema 1.0. Schema validity does not mean a case passed or a release is approved. JUnit/Markdown are presentation formats, not native validator inputs. See native report/gate contracts and tool input schema.
Chaos catalog, local experiments and export
chaos.list_faults discovers producer-supported faults. chaos.run_experiment executes a trusted local instrumented script under workspace confinement, configured path globs and timeout limits. chaos.export_aios_run maps a native report to a draft AIOS Run.
Hosted HTTP always rejects arbitrary chaos script execution. For hosted release checks, supply a report produced at an authorized local boundary. See Chaos integration, local script policy, and transport limits.
Sidecar inventory and runtime boundary
sidecar.status and sidecar.module_inventory expose installation/module diagnostics. They do not discover or govern arbitrary running agents. Live stop/revoke requires the explicit independent operator bridge below, bound to the process owning the actual runtime. Sidecar retains pre-action policy/authority/approval ownership. See Sidecar contracts, integration inventory and bridge setup.
AIOS schema and semantic validation
spec.validate_artifact routes by the declared marker: Run/Workflow 0.4-draft, provenance 0.6-draft, and supported operational companions 0.8-draft. Bundled schemas/catalogs resolve offline; an explicitly selected workspace catalog is authoritative. Results distinguish schema, semantic and unchecked process/cross-artifact obligations.
See current validation and resource families, tool input schema and bundled schema inventory. Package release numbers do not promote draft conformance.
Held-byte provenance resolution
The Python adapter resolve_provenance(record, held_subject_bytes) resolves only bytes explicitly held by the caller. It does not fetch URIs, execute artifacts or authenticate conclusions merely because references resolve. Identity, digest and content validity remain separate results. This is a Python integration capability, not an additional MCP tool. See adapter contract and offline cases.
Unified release and incident workflows
Use core.compare_runs, core.release_check, core.incident_summary and core.export_report to combine producer-owned evidence. A release-check fragment for an initialized MCP client is:
{
"session_id": "release-42",
"evaluation_report": {"...": "replace with a complete native Evals report"},
"required_evidence": ["evaluation"],
"thresholds": {"min_pass_rate": 0.95}
}
The report placeholder must be replaced; it is not runnable evidence. Comparison and chaos evidence may be supplied or recalled from the session; native Evals evidence is supplied explicitly. Default required evidence is comparison, evaluation and chaos. Missing/invalid/failed gates block readiness. Incident summaries preserve failure signals without inventing causality, and report export uses MCP-local mcp.unified-report.v1, not AIOS. See full workflow, statuses and examples.
Onboarding, session state and recall
core.onboard {}
core.session_state {"session_id":"release-42"}
core.report_recall {"session_id":"release-42"}
core.report_recall {} lists saved sessions; scoped recall returns stored results, recent history and deterministic cited notes, without fresh scoring. resource://sessions/{encoded-session-id} exposes the same authorized evidence. Unknown recall IDs do not create new reports. See onboarding/recall and source citations.
Hosted Streamable HTTP
Install deep-agentic-core-mcp[http], configure a key store plus shared session storage, and launch deep-agentic-core-mcp-http. The endpoint is /mcp; requests carry a bearer key and MCP protocol headers. Configure public host/origin rules and process-level request/concurrency limits. /healthz checks storage readiness, not all optional adapters.
The base CLI refuses missing authentication/storage configuration. In-memory sessions are available only through explicit embedding/test configuration. See configuration and complete hosting setup, containers and operator-owned deployment. This guide does not deploy a service.
Signup and key lifecycle
Deployments with the configured database/DynamoDB signup store expose /signup for generated user identities and one-time keys. Profile, replacement and self-revocation require the current key; replacing a key preserves stable user/session ownership. Display names are unverified labels, and keys are not recoverable. Environment-key changes require worker restarts; stored lifecycle changes apply through the key store. See client/key workflow and store choices.
Per-key access policy and administration
Host-owned policies configure allow, deny, expires_at and task scope. Deny wins. Hosted tools are reauthorized after acquiring the session dispatch transaction, so queued calls/retries observe revocation and narrowed permissions. core.access_status explains effective permissions when allowed by the policy.
The separate administrator CLI uses store credentials, not the agent bearer key:
deep-agentic-core-mcp-admin show USER_ID
set-permissions, clear-permissions and revoke mutate operator-owned access; use the documented exact user and policy. See administration/dispatch semantics and all four admin commands.
Tenant storage and dispatch serialization
Hosted session names are isolated by authenticated owner. Redis takes session precedence over PostgreSQL; with no Redis, a configured database can hold sessions, keys and signup limits. Session quotas are 100 sessions and 4 MiB serialized state per user, with a one-hour idle TTL. Rate/concurrency counters remain per worker.
Dispatch/revocation share owner-specific serialization. Redis uses a non-expiring guard and bounded acquisition; crashes require operator reconciliation before clearing an orphan. PostgreSQL uses transaction locking; memory is single-process only. See storage setup and quotas and dispatch guards and recovery limits.
Per-user Tower credentials
Configure DEEP_AGENTIC_CORE_MCP_TOWER_BINDINGS on the host with per-user HTTPS origins and separate read/write credentials. Selection uses the reauthenticated caller identity at dispatch, with no credential or origin accepted as tool arguments. Missing bindings fail closed; write tools need a write token. Approval remains human-only in Tower. See binding shape, reload and redirect rules.
Tower investigation and recovery tools
tower.* exposes 21 tools:
- Fleet:
tower.status,tower.agents,tower.versions,tower.posture;tower.capability_contractdiscovers the remote contract. - Incidents and evidence:
tower.detect,tower.incidents,tower.incident,tower.investigate,tower.evidence(an agent's evidence history). - Recovery:
tower.preview, thentower.executeafter a human approves that exact preview in Tower;tower.verifychecks recovery against fresh Lens and Evals evidence. - Runbooks:
tower.runbooks,tower.runbook_recommendations,tower.runbook_preview,tower.runbook_execute,tower.runbook_execution,tower.runbook_executions,tower.runbook_verify,tower.runbook_cancel. Use the generated schemas to select exact IDs and parameters.
MCP cannot grant human approval. Execution consumes separately approved Tower previews, and successful execution alone does not establish verified recovery. See runbook workflows, capability readiness, and all Tower tool inputs.
Independent Sidecar stop/revoke control
The embedding host supplies a live SidecarBridge/TaskBinding, TaskKeyRevoker and an independent operator_store to transport_http.create_app. Operator credentials are exact-task scoped and separate from agent credentials. POST /control/tasks/{task_id}/stop is an operator route, not a model-callable MCP tool.
The bridge acknowledges only effective native stop/access revocation with successful evidence persistence. Unsupported bindings, failures, in-flight work and cooperative cancellation remain explicit. Already-reserved calls may finish. See complete host binding, receipt, retry and scope semantics.
Access evidence and containment assertions
Hosted access logs preserve mcp.access-decision.v1 dispatch, completion, denial and rejected-revocation observations with correlation and task identity; credentials and tool arguments are omitted. Dispatch means admission, not completion. A per-call denial is not proof that every downstream credential was revoked.
The paired Chaos/Lens/Evals acceptance path verifies explicitly scoped ordered snapshots and includes bypassed-authorizer negative controls. Completeness remains producer-declared. See native access evidence, assertion setup and acceptance cases, and reusable containment scoring.
Lens execution verification
lens.execution_verify accepts an actual Lens ExecutionBundle plus an expected run_id. Configure DEEP_AGENTIC_CORE_MCP_LENS_TRUST_STORE as a protected host JSON key-ID → hex-key map; callers cannot supply keys, trust paths or precomputed verdicts. The server delegates authenticated snapshot, conformance and mapping checks to Lens.
Only verified evidence exposes causal IDs. Failed, unknown and incomplete evidence remain distinct, without raw payload exposure. This tool neither signs nor executes evidence. See key setup, rotation, coverage and required Lens capability.
Operational AIOS audit projections
Python services.access_evidence.export_audit_event(...) projects native public access observations with supplied public target/actor context to an AIOS 0.8-draft audit event. It preserves native identity/correlation while withholding private subject/tool/reason text. Dispatch maps to started, denial to denied, and completion follows the observed outcome or unknown.
This adds no automatic remote export or enforcement. See current projection contract, public-target example and examples/operational_artifacts.py in the checkout.
Entry points and deployment configuration
The package installs deep-agentic-core-mcp (stdio), deep-agentic-core-mcp-http (authenticated HTTP with [http]) and deep-agentic-core-mcp-admin (operator key policy/revocation). Optional producers must be installed/configured in the server's selected environment. Workspace-root settings may select explicit sibling sources/catalogs over installed/bundled defaults.
See environment variables and precedence, entry points/admin syntax, HTTP/storage setup and limitations. Package publication does not deploy AWS or update an existing service.
Upgrade, rollback and acceptance limits
Record actual version, compatibility observations, policy and binding configuration without credentials. Use fresh pinned environments or immutable image digests, verify protocol/tool/storage behavior, and run explicit operator deployment acceptance. On rollback, reconcile in-flight effects and dispatch guards before restoring the prior environment; do not restore revoked credentials.
See acceptance matrix and upgrade/rollback sequence, current AIOS changes, and hosted boundaries. Independent review, live/deployment acceptance and stable schema/API freezing remain separate from package milestones.
Troubleshooting
Check the client's executable/environment, optional adapter readiness and selected workspace root. For hosted denials, inspect key policy/store availability and task binding, then retry only after the owner resolves guard/revocation state. Use the troubleshooting guide; do not weaken hosted authorization to repair a local connection.