mcp-server

v0.4.1
@stigmer/mcp-server Checked 5 hours ago Published 4 days ago

Model Context Protocol server for Stigmer — exposes Stigmer agents and skills as MCP tools and resources

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_agent

Get full details of a Stigmer agent by its org and slug (e.g. org=stigmer slug=variance-reporter).

ParameterTypeDescription
slug *stringAgent slug — the unique identifier within the org (e.g. variance-reporter).
orgstringOrganization slug that owns the agent (e.g. acme). Leave empty on a server that holds one organization.

apply_agent

Create or update a Stigmer agent (idempotent). Provide identity fields (name, org) and agent configuration (instructions, skills, plugins, etc.).

delete_agent

Delete a Stigmer agent and every version of it, by its org and slug. It can't be undone. Returns the deleted agent.

ParameterTypeDescription
slug *stringAgent slug — the unique identifier within the org (e.g. variance-reporter).
orgstringOrganization slug that owns the agent (e.g. acme). Leave empty on a server that holds one organization.

run_agent

Start a run (asynchronous). Returns immediately with the created run (run_* ID) while the run continues in the background — poll get_run to observe progress, the tool uses it waits on, and the final answer. Omit session_id to start a fresh conversation on the agent; pass one to send a follow-up message into an existing session, which runs the agent the session started on. `files` hands the run files from the person's project ("run invoice-checker on samples/march.csv").

ParameterTypeDescription
agent *stringAgent slug — the unique identifier within the org (e.g. variance-reporter).
message *stringThe instruction or message for the agent to act on.
filesarrayFiles from the person's project the message carries, at most 20: each a path, relative to a folder their coding agent has open or absolute inside one. The agent sees each with the message and finds it…
include_my_vaultbooleanWhether each turn of a new conversation uses the caller's own My vault first (default true). Pass false to run on the listed vaults only. Only when starting a new conversation (no session_id).
orgstringOrganization slug that owns the agent (e.g. acme). Leave empty on a server that holds one organization.
pluginsarrayInstalled plugins a new conversation uses beside its agent's, each whole (its skills, agents, hooks and MCP servers): each a plugin slug in `org`, or `org/slug`. Only when starting a new conversation…
session_idstringExisting session ID to continue a conversation (from a previous run's spec.session_id). Omit to start a new session. A turn in a session runs the agent the session started on and belongs to that sessi…
vaultsarrayShared vaults a new conversation uses, in order, after the caller's My vault: each a vault slug in `org`, or `org/slug`. Only when starting a new conversation (no session_id); a conversation keeps the…

list_runs

List one agent's runs, newest first, across all its conversations: how to find "the last run" of an agent, or the run a person means ("last night's", "the one that failed"). Each run has its run_id, session_id, phase, start and end, and its error in one line when it failed. Read one run with get_run (why it failed, what it said), what it saved with get_run_outputs, and how it was graded with get_run_scores.

ParameterTypeDescription
agent *stringAgent slug (e.g. invoice-checker).
limitintegerHow many of the newest runs to return (default 10, at most 50).
orgstringOrganization slug that owns the agent (e.g. acme). Leave empty on a server that holds one organization.

get_run_outputs

Read what a run made: the files it saved in its outputs folder (a report, a CSV), newest per path. Text files come back with their content, at most 512 KB each, the cut said; other files are named with their size and type. Give the person the content itself, not a description of where it is. To save the files to a folder, the person runs `stigmer download run <run_id> --output-dir <folder>`. No download link is returned: it would open the file without a sign-in.

ParameterTypeDescription
run_id *stringRun ID (run_*); find one with list_runs.
pathstringOnly this output: its path in the outputs folder (reports/march.md) or its filename.

get_run_scores

Read how a run was graded: each score with where it came from (the platform's run-health check, a person's thumbs, an AI judge, an eval), whether it was graded, its verdict, its criteria and comment. An empty list means nobody and nothing graded the run: say so plainly rather than judge it yourself.

ParameterTypeDescription
run_id *stringRun ID (run_*); find one with list_runs.

get_run

Get a run and what its agent did: the run's lifecycle (phase, timing, error, stop_cause) and the run's events from its session's event log. Poll this tool to track a run started with run_agent (terminal phases: completed, failed, cancelled, terminated). The default compact view summarizes the turn: its phase, its answer, asks (the tool uses waiting for your answer, each with the tool_use_id submit_run_approval takes), its to-do list, its changed files and the last few items (messages, thinking, tool uses with their results); total_items tells you when the tail is a window. run.status.credentia…

ParameterTypeDescription
run_id *stringRun ID (run_*).
item_limitintegerCompact view only: number of trailing items of the turn to return (default 5).
viewstringResponse shape: compact (default, the turn summarized with a bounded item tail) or full (every event).

submit_run_approval

Answer a tool use a run is waiting on (get_run's turn.phase is waiting). Find the waiting tool uses in get_run's turn.asks — tool_use_id must match exactly. The run continues once every waiting tool use of its turn is answered. deny refuses the one call and feeds your reason back to the agent, which then continues; to stop the conversation use cancel_run instead. An approval is the person's to give: send allow or allow_all only when the person you are working for said so, in this conversation, for this call.

ParameterTypeDescription
decision *stringallow: run this call. deny: refuse it; the agent is told why (see reason) and adapts. allow_all: run this call and every call of its class (its built-in category, MCP server or asking hook) for the re…
run_id *stringRun ID (run_*).
tool_use_id *stringThe waiting tool use to answer (get_run's turn.asks[].tool_use_id).
reasonstringWith deny only: why the call is refused, fed back to the agent.

get_skill

Get full details of a Stigmer skill by org and slug, optionally at a specific version. Omit 'version' for the latest.

ParameterTypeDescription
slug *stringSkill slug — unique identifier within the org.
orgstringOrganization slug that owns the skill. Leave empty on a server that holds one organization.
versionstringVersion to retrieve: tag name (e.g. stable) or SHA-256 hash. Omit for latest.

delete_skill

Delete a Stigmer skill and all its versions by org and slug. To create or update skills, use the 'stigmer skill push' CLI command. Returns the deleted skill.

ParameterTypeDescription
slug *stringSkill slug — the unique identifier within the org (e.g. variance-report). Deletes the skill and all its versions.
orgstringOrganization slug that owns the skill (e.g. acme). Leave empty on a server that holds one organization.

list_skill_versions

List a skill's version history (newest first): version hash, tag, who pushed it and when, and which version is current. Fetch one version's full content with get_skill and its hash or tag.

ParameterTypeDescription
slug *stringSkill slug — unique identifier within the org.
orgstringOrganization slug that owns the skill. Leave empty on a server that holds one organization.
page_sizeintegerMaximum versions per page (default 50).
page_tokenstringPagination token from a previous response's next_page_token.

cancel_run

Cancel a run in progress (run_*) by interrupting its conversation: every unfinished turn of the conversation stops (queued, working, waiting for an answer or paused), not this run alone, and each ends cancelled. Cancellation is terminal: a stopped turn cannot be resumed. The response names the runs stopped (stopped_run_ids). A run already in a terminal phase is returned with already_terminal=true and nothing is stopped.

ParameterTypeDescription
run_id *stringRun ID to cancel (run_*).

search_docs

Search Stigmer's documentation at stigmer.ai/docs for the pages that answer a question: what Stigmer is, its editions and billing, how a concept works, a CLI command or SDK call, or why something fails. Returns the best-matching pages with their URLs. Then read the page with read_doc, whole, and answer from what it says.

ParameterTypeDescription
query *stringA few words naming what the question is about (e.g. 'runner port', 'editions billing').

read_doc

Read one page of Stigmer's documentation whole, as Markdown, exactly as published today. The text opens with the page's Source URL: cite it in the answer. Pass the page's path (e.g. tools) or its full https://stigmer.ai/docs/... URL. Only stigmer.ai/docs is read.

ParameterTypeDescription
page *stringThe page's path after /docs/ (e.g. tools), or its full URL.