Skip to main content

MCP Reference#

ackit mcp serve runs the ACKit Model Context Protocol server over stdio using the official TypeScript SDK (@modelcontextprotocol/sdk, pinned per ADR-0008). Stdout is protocol-pure; diagnostics go to stderr.

Server identity: name ackit, version from package.json (single source of truth).

Tools (22 direct, read-only)#

Direct-profile tools (advertised without any opt-in):

ToolArgumentsReturns
ackit_capabilities—Version, workspace identity, tool count and inventory location
ackit_scanchanged?, ci?canonical scan report JSON + exit_code_hint
ackit_scan_summarychanged?, ci?, group?, severity?, offset?, limit?Counts, optional severity and Readiness gates, and a page of finding locations
ackit_doctor—config ok/errors + task-doctor integrity
ackit_packmaxTokens?, format?, manifest?pack markdown or JSON (manifest compact by default; full drills down)
ackit_pack_summarymaxTokens?, offset?, limit?Context budget usage and a page of manifest entries
ackit_readinessdetails?Score and category summary, or canonical Readiness report
ackit_instruction_graph—instruction graph nodes
ackit_scope_instructionsprovider, path?, offset?, limit?Effective instruction stack for the relative path
ackit_list_skills—skill records
ackit_validate_skills—tiered issues
ackit_list_tasksall?task rows (id/status/title)
ackit_get_taskidfull task doc or unknown-task error
ackit_policy_check—policy chain + digest + diagnostics
ackit_workflow_statustaskIdworkflow profile/stage/required artifacts + effective evidence/verdict requirements (null for legacy tasks)
ackit_evidence_statustaskId, offset?, limit?Evidence coverage and criteria with reference counts
ackit_get_intentidintent document + fingerprint
ackit_get_checkpointtaskIdlatest checkpoint + resume context
ackit_verification_bundletaskIddeterministic verification bundle (markdown)
ackit_drift_checktaskIddeterministic drift findings (same canonical evaluator as CLI drift check)
ackit_statustaskId?canonical read-only task status snapshot (same ackit.status.v1 contract as CLI status)
ackit_list_roles—portable role contracts

The launch root comes from --root (or the SDK’s createAckitMcpServer(root)), then ACKIT_ROOT, then a project-specific working directory. The fallback requires a Git, ACKit configuration or AGENTS.md marker at that directory. Launches from the ACKit installation or an unrelated directory require an explicit project root. Home and protected system roots are refused.

ackit --root ./workspaces mcp serve --workspace ./project/src selects the closest project marker at or above the hint, within the authorized ./workspaces directory. Absolute local paths or local file URIs also work. UNC paths, drive-relative paths and hints that resolve outside the launch root are rejected. Select one project per process; tools never accept a per-call root or pack includeGlobs. If the bound directory is replaced or removed, the workspace is revoked and the client must start a new session.

Clients that advertise MCP Roots can send workspace hints and change notifications. ACKit reports the count of valid hints within its selected workspace without returning their paths. Roots confer no authority and cannot redirect a running tool or select another repository.

Scans and context discovery skip regular files with multiple hard links. The filesystem cannot establish that all paths to those files are within the selected repository.

ackit_scan.changed defaults to false; true restricts the scan to Git changes. ci defaults to false: report-only scans append exit_code_hint=0 even when findings exist. With ci: true, the hint is 1 only when an unsuppressed finding meets the configured policy severity threshold; otherwise it is 0. This hint does not terminate the MCP server or turn findings into a protocol error. CLI readiness gates are separate from this severity hint.

Use ackit_scan_summary for an agent’s first scan. The default group is active. Pass suppressed or audit to inspect suppression evidence and an exact severity to filter a group. With ci: true, the summary evaluates both gates. Compact tool pages return up to 10 rows by default, accept limits from 1 to 100, and return nextOffset or null. Each page reads current repository state. Repeat from offset zero after changing the project. Use ackit_scan and ackit_pack when full canonical data is needed.

Write tools are absent from the direct profile by explicit decision (ADR-0036): state mutation stays CLI-only there. The opt-in managed profile below is the only MCP surface that mutates, and only with a working approval broker plus explicit enablement. Any further write surface requires a new ADR with an explicit capability/permission gate design before registration.

Managed profile (opt-in, 21 tools)#

Advertised only when ACKIT_LOCAL_ENABLE_MANAGED=1 and an active approval directory (ACKIT_LOCAL_APPROVAL_DIR holding a fresh active marker) is present; ACKIT_LOCAL_ENABLE_WRITE=1 gates file/document mutations and ACKIT_LOCAL_ENABLE_SEARCH=1 gates search. Without all of these, tools/list shows exactly the 22 direct tools above (45 total with the profile enabled, verified over real stdio). Implementation lives in the isolated workspace packages packages/local-tools (policy, files, processes, search, documents) and packages/desktop (WebView approval, tray, shortcut, vault, locale); the root install downloads no browser and compiles no native code.

ToolPurpose
ackit_workflow_advance, ackit_workflow_verifyTyped forward-only workflow transitions via the same canonical stores and gates as the CLI (no force, no generic CLI bridge)
ackit_task_doctorManaged task-integrity check (same gate as ackit task doctor)
ackit_text_read, ackit_text_writeUTF-8 read; digest-bound write with atomic staging (original preserved on failure)
ackit_doc_readOutline/metadata for txt/xlsx/docx/pdf/pptx
ackit_doc_write_xlsx, ackit_doc_write_docx, ackit_doc_write_pdfCreate with integrity re-open before publication (pdf-lib only, no renderer download)
ackit_doc_write_pptxCreate a real 16:9 Office-compatible presentation (slide size, masters/layouts/themes, measured text/shape/table layouts) with the same approval/digest/atomicity contract
ackit_doc_edit_docxEdit body and every header/footer part
ackit_doc_edit_pptxEdit slide text across every slide part (numeric order)
ackit_fs_list, ackit_fs_read_manyApproval-bound listing (paginated) and up-to-16-file reads
ackit_fs_mkdir, ackit_fs_moveApproval-bound directory creation; atomic same-extension moves
ackit_searchBounded one-shot literal search (no persistent sessions)
ackit_process_start, ackit_process_read, ackit_process_interactExact-argv spawn (shell: false), paginated reads, bounded stdin
ackit_process_terminate, ackit_process_kill, ackit_process_listOwned-tree termination (kill is owned-only by design); owned session list

Every mutation binds the canonical workspace root, exact typed arguments, policy/input state, expiry and single-use identity, and is revalidated immediately before execution. Denied, expired, replayed, cross-root or revoked approvals fail closed. See docs/security/managed-tool-mapping.md for the source-capability map and deliberate differences.

Desktop broker and approvals#

The managed profile authorizes through the optional ACKit Desktop broker (packages/desktop), never through a test decision-writer. Install it from local packed tarballs into an isolated directory (no workspace symlinks, no source-tree paths), then launch with disposable state (Node.js 22+; the approval window additionally needs Node.js 24+ and a visible desktop session):

Point the managed MCP server at the live broker directory and enable the profile (ACKIT_LOCAL_APPROVAL_DIR=<broker-dir>, ACKIT_LOCAL_ENABLE_MANAGED=1 plus ACKIT_LOCAL_ENABLE_WRITE=1 / ACKIT_LOCAL_ENABLE_SEARCH=1 as needed). node node_modules/@cynrath/ackit-desktop/dist/cli.js status reports broker liveness and pending approvals; stop ends the resident producer, sweeps owned requests and removes only the owned session file. Local preparation commands (prepare/update/rollback) were retired with the C# helpers; product updates flow only through ackit update.

Each approval binds the canonical root, operation, exact typed arguments, input digest, policy state, a single-use nonce and a 60-second expiry. Allow-once, persisted allow/deny, denial, cancellation and expiry are decided by the user in the cross-platform WebView approval window (Ctrl+Alt+Enter approves once while the window is focused, with no repeat spillover); headless requests, stale markers, revoked or unavailable brokers fail closed to deny. Permissions persist under an ACKit-namespaced DPAPI vault with user-scoped private storage, immediate revocation and no permission widening on migration. See docs/security/corrective-inventory.md for the full source-to-destination capability map.

Client setup#

ackit mcp setup previews (--dry-run, default), applies (--apply) or removes (--uninstall) one owned client registration, or reports status (--status). Supported clients: Codex, Claude Code, Cursor, VS Code (native and editor-managed), OpenCode and Gemini CLI (see ackit mcp setup --help). Only user-initiated setup writes client configuration, reversibly.

Resources#

repo://summary · repo://instructions-graph · repo://skills-catalog · repo://tasks-active · repo://policy

repo://workspace reports the active project profile, opaque workspace ID, root source, root-discovery status, revocation and read-only tool inventory.

Prompts#

onboarding · task-execution(taskId?) · scan-remediation · context-optimization(maxTokens?)

All templates are deterministic: identical arguments ⇒ byte-identical prompt.