Skip to main content
Glama
Kiro MCP Server

Kiro MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
KIRO_BINNoCLI path or name for kiro-cli.kiro-cli
KIRO_API_KEYNoOptional API key that, when set in the server's environment, is inherited by headless runs only. No tool can read or set it.
KIRO_MCP_CWDNoDefault root when KIRO_MCP_ROOTS is unset.process cwd
KIRO_MCP_ROOTSNoComma-separated absolute directories Kiro may run in. '/' is refused. The first is the ACP host's cwd.KIRO_MCP_CWD
KIRO_MCP_ALLOW_SHELLNoLets shell-command requests be approved. Off: they are rejected at once. Booleans accept 1, true, yes, 0, false, no.off
KIRO_MCP_PERMISSIONSNoPermission policy: 'ask' (the calling agent answers), 'deny' (reject all), or 'allow' (approve once; shell still follows KIRO_MCP_ALLOW_SHELL).ask
KIRO_MCP_CLI_TIMEOUT_MSNoSubcommand timeout.120000
KIRO_MCP_HEADLESS_TRUSTNo'tools' allows headless trust_tools; 'all' also allows trust_all_tools.none
KIRO_MCP_REQUEST_TIMEOUT_MSNoACP request timeout. Prompts have none.120000
KIRO_MCP_ALLOW_CONFIG_WRITESNoAllows agent, MCP config, settings, and powers writes. Booleans accept 1, true, yes, 0, false, no.off
KIRO_MCP_HEADLESS_TIMEOUT_MSNoHeadless job timeout; timeout_s may lower it.3600000
KIRO_MCP_ALLOW_TRUST_WORKSPACENoAllows headless trust_workspace. Booleans accept 1, true, yes, 0, false, no.off
KIRO_MCP_PERMISSION_TIMEOUT_MSNoUnanswered permissions are rejected after this long.600000
KIRO_MCP_ALLOW_PERSISTENT_CONSENTNoAllows 'allow_always' answers. Booleans accept 1, true, yes, 0, false, no.off

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Orchestrates Kiro CLI V3 coding sessions on this machine through the V3 ACP server and headless runs. Call kiro_status first: it says whether kiro-cli is installed and signed in, whether the V3 engine starts, which workspaces (KIRO_MCP_ROOTS) are trusted, and what the operator allows.

Pattern: kiro_session_new (or kiro_session_load) -> optional kiro_session_configure (mode, model, effort) -> kiro_prompt. kiro_prompt waits up to wait_s; if the status is still running, poll kiro_events (or kiro_stream_session) with the returned cursor until the status is completed, cancelled, or failed. A turn finishes only when Kiro answers the prompt, never on a turn_end event. Messages and tool calls that change are re-sent with a new seq: keep the latest per segment or toolCallId.

Permissions: when pending_permissions is not empty, answer each with kiro_permission_respond using one of its offered option_ids only. Unanswered requests are rejected after KIRO_MCP_PERMISSION_TIMEOUT_MS. Shell commands are rejected unless the operator set KIRO_MCP_ALLOW_SHELL, and allow_always needs KIRO_MCP_ALLOW_PERSISTENT_CONSENT. MCP tool annotations in a request are untrusted claims.

Live transcripts: kiro_stream_session follows any session (it loads one this server did not start and replays its history first); or subscribe to the resource kiro-session://<session_id>/transcript. kiro_steer redirects a running turn; kiro_cancel stops it.

Composing Kiro commands: /clear or /chat new = kiro_session_new. /spawn = kiro_session_new plus kiro_prompt in the new session. /spec run or /spec analyze_requirements = kiro_session_configure mode spec, then prompt "run the tasks in the spec" (read results with kiro_specs). /goal = kiro_workflow invoke with the goal or iterate recipe when listed, otherwise mode autonomous plus a prompt with explicit acceptance criteria. /rewind = kiro_session_fork with a message_id from kiro_session_history. /tangent = kiro_tangent. Skills, MCP prompts, and sub-agents = kiro_prompt command. Headless fire-and-forget = kiro_run_headless, polled with kiro_events job_id.

Not possible here, and why: importing a session archive (no ACP method), attaching a repository to a running cloud session (repositories are chosen at creation), file checkpoints (V3 has none; use version control and kiro_session_fork), MCP OAuth and login (they need a person in a browser; run kiro-cli login in a terminal), and trusting a workspace over ACP (no method; run kiro-cli --v3 once in the folder and choose Trust). There is no shell tool and no way to pass raw kiro-cli flags or ACP methods.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "subscribe": true,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
kiro_statusA

Call first. Reports whether kiro-cli is installed (path, version), whether the V3 ACP engine starts, the host's capabilities (prompt and session capabilities, extension methods, session sources, list scopes, execution targets, auto-compaction range), sign-in state from kiro-cli whoami (account type, email, profile only), the roots and their saved workspace trust, the operator policy, and Kiro's log paths. Signed out: run kiro-cli login in a terminal; this server never logs in. include_diagnostics adds kiro-cli diagnostic and kiro-cli doctor --all.

kiro_usageA

Plan usage from _kiro/account/getUsage, like /usage: plan name, billing cycle reset date, usage breakdowns (resource type, used, limit, percentage), bonus and add-on credits, and whether overages are enabled. With session_id, also the credits this server observed for that session's turns since it was attached. UNSUPPORTED_BY_KIRO errors still carry session_credits in their details.

kiro_session_listA

List saved Kiro sessions with session/list: scope workspace (sessions whose cwd is cwd, default the first root) or user (every workspace; local sessions outside KIRO_MCP_ROOTS are left out and only counted). Filters by source (local or remote cloud sessions), title substring, and limit run on this server and report how many were left out.

kiro_session_loadA

Resume a saved local or cloud session (session/load) and attach it to this server, like kiro-cli chat --resume-id. Pass session_id, or latest: true with cwd for the most recently updated session in that workspace (--resume). Replayed history goes into the session's event feed marked replay; the result has a short replay summary and the cursor to poll from. Cloud sessions keep streaming, and approvals that were waiting are returned in pending_permissions.

kiro_session_newA

Create a Kiro CLI V3 session (session/new) in a workspace inside KIRO_MCP_ROOTS and attach it to this server. Optionally pick the agent mode (vibe, plan, spec, quick-spec, bug-fix, autonomous, or a custom agent), model, and effort; values Kiro did not apply are listed in warnings. execution_target cloud creates a cloud sandbox session on the given repos. Caller-supplied MCP servers are never accepted. Also how to compose /clear (start a new session) and /spawn (a new session plus kiro_prompt).

kiro_session_closeA

Close an attached session (session/close), like /quit: cancels its running turn, rejects its pending permissions, and returns the final cursor. The session stays in Kiro's store (use kiro_session_load to resume it), and its event feed stays readable for an hour so streams can drain.

kiro_session_deleteA

Permanently delete a session from Kiro's store (session/delete), like kiro-cli chat --delete-session. Requires confirm: true. Closes the session first when it is attached. Local sessions must live inside KIRO_MCP_ROOTS.

kiro_session_exportA

Export a session to a file inside KIRO_MCP_ROOTS with _kiro/session/export, like /chat save. Fails with PATH_EXISTS unless overwrite is true. Importing an archive is not possible over ACP.

kiro_session_configureA

Switch an attached session's agent mode (session/set_mode: vibe, plan, spec, quick-spec, bug-fix, autonomous, or a custom agent), model and effort (session/set_config_option model and effortLevel), or any other advertised option such as autopilot or memoryReflection, like /model, /effort, /agent, and /plan. Every value is checked against what Kiro last advertised for the session; on VALUE_NOT_ADVERTISED nothing changes. Returns the options as Kiro reports them after the change. title renames the session. For /spec run, select mode spec and prompt the agent to run the named spec.

kiro_session_stateA

Snapshots of what a session will use: MCP servers (status, failed authorization, tool names), tool tags, steering documents, skills, powers, governance flags, agent config errors, the command catalog, modes, config options, context usage (plus _kiro/session/context), and the /config panel including hooks (_kiro/configuration/getState). A snapshot that has not arrived yet comes back with received: false. Large fields (tool schemas, steering content, skill descriptions) are left out unless verbose. models works without a session (kiro-cli chat --list-models).

kiro_session_historyA

Read a session's transcript (_kiro/session/history), paged with cursor and limit, like /transcript. Falls back to this server's event feed when Kiro returns no history. rewind_points lists each user message id with its turn number and a prompt preview: pass one as message_id to kiro_session_fork to rewind.

kiro_session_forkA

Fork a session with session/fork, optionally at a user message id from kiro_session_history's rewind_points (that is /rewind). The fork is attached as a new session; the original is unchanged.

kiro_promptA

Send a prompt to an attached session (session/prompt) and wait up to wait_s for the turn to finish. Returns the finished turn (final text, tool calls, credits) or status running with a turn_id and cursor: then poll kiro_events with that cursor until the status is completed, cancelled, or failed, answering any pending_permissions with kiro_permission_respond. A turn finishes only when Kiro answers the prompt. Add files as links (or embedded UTF-8 text with embed: true) and images from a path or base64. command runs an advertised skill, MCP prompt, or sub-agent as /<name> <input>; text starting with @name runs a saved prompt. when_busy queue waits behind the running turn.

kiro_eventsA

Read normalized events after cursor from a session's (or headless job's) event feed: agent text, tool calls, plan updates, permission requests, turn boundaries with credits, mode and config changes, steering, workflow, and notices. Long-polls up to wait_s when nothing is newer. A message or tool call that changes is re-sent with a new seq: keep the latest per segment or toolCallId. Thoughts are left out unless include_thoughts. Returns next_cursor, lowest_cursor (gap: true when older events were dropped), the turn status, and pending permissions.

kiro_steerA

Send a steering message into the session's running turn (_session/steer), like Kiro's steer mode: Kiro queues it and injects it at the next step (watch for steering events in kiro_events). Fails with NO_ACTIVE_TURN when nothing is running; send a new kiro_prompt instead.

kiro_cancelA

Cancel a session's running turn (like Ctrl+C): pending permissions are answered with the offered reject option, session/cancel is sent, and the call waits up to 30 s for Kiro's prompt response before returning the settled turn. Queued prompts are dropped. With job_id, stops a headless run's process group (SIGTERM, then SIGKILL 5 s later). The session stays open.

kiro_permissionsA

List Kiro's pending permission requests (all sessions, or one), with the options exactly as offered, the consent details (capability, resource, workspace root), and the MCP tool identity, which is untrusted display data. Answer with kiro_permission_respond before expires_at, or the request is rejected.

kiro_permission_respondA

Answer a pending permission with one of its offered option_ids (never anything else). allow_always needs the operator's KIRO_MCP_ALLOW_PERSISTENT_CONSENT; reject_always is always allowed because it only narrows Kiro. For an always option, scope (session, workspace, or user) and resource (a pattern; default the request's resource) are sent as Kiro consent. Shell commands can be approved only when the operator sets KIRO_MCP_ALLOW_SHELL. A denied tool call fails and the turn continues.

kiro_tangentA

Tangents, like /tangent: branch forks the session at its latest message into a named side conversation (default tangent-N) and attaches it; tree shows the recorded tangent tree; merge prompts the tangent once for a short findings summary, then sends that summary to the destination (parent by default, root, or a tangent name) as a new turn. The tangent itself is left unchanged. The tangent tree is held in this server's memory and does not survive a restart; the forked sessions stay in Kiro's store.

kiro_specsA

Read Kiro spec-driven development output under /.kiro/specs, like /spec and /spec view. list shows each spec folder, which of requirements.md, bugfix.md, design.md, and tasks.md exist, their modification times, and checked versus unchecked task counts. read returns one document (truncated at 200 KiB), with parsed tasks for tasks.md. To create or run a spec, select mode spec (or quick-spec, bug-fix) with kiro_session_configure and prompt the agent, for example "run the tasks in the spec".

kiro_session_compactA

Compact an idle session's context with _kiro/session/compact, like /compact, and return the context usage reported afterwards. Fails with TURN_ACTIVE while a turn runs.

kiro_memoryA

List, read, create, update, or delete Kiro memories (_kiro/memory/*), like /memories, and read the memory sync status. Delete needs confirm: true. Kiro refuses writes in untrusted workspaces or below the configured memory access level (KIRO_REFUSED with Kiro's message).

kiro_knowledgeC

Kiro knowledge bases (_kiro/knowledge), like /knowledge: show, add (a path inside KIRO_MCP_ROOTS), remove, search, update, clear, status, cancel. Returns Kiro's success, message, and data; success false is KIRO_REFUSED.

kiro_code_intelligenceC

LSP-backed code intelligence (_kiro/codeIntelligence), like /code: init, status, overview, logs. Kiro's success false (for example when it is not enabled) is KIRO_REFUSED.

kiro_workflowB

Kiro workflows (_kiro/workflow/*), like /workflow: list_recipes, list runs, invoke a recipe with inputs (checked against the recipe's declared input names), and inspect, pause, resume, cancel, retry (optionally from node_id), or delete a run. Lifecycle notifications appear as workflow events in kiro_events. For /goal, invoke the goal or iterate recipe when one is listed; otherwise prompt in autonomous mode with explicit acceptance criteria.

kiro_cloud_sourcesA

Connected source providers for cloud sessions (_kiro/sourceProviders/list), or, with provider (for example GITHUB), that provider's repositories (_kiro/sourceProviders/listResources). Use the owner/name values as repos for kiro_session_new with execution_target cloud.

kiro_run_headlessA

Fire-and-forget run of kiro-cli chat --v3 --no-interactive --output-format stream-json in a directory inside KIRO_MCP_ROOTS, locally or in the cloud (cloud + repos). The prompt goes on stdin. Returns a job_id: poll kiro_events with job_id for streamed events and the final result (session id, final text, exit code and meaning: 0 success, 3 MCP startup failed, 4 agent not found), and stop it with kiro_cancel. Headless runs cannot ask for permission: anything not pre-approved is denied. trust_all_tools needs KIRO_MCP_HEADLESS_TRUST=all, trust_tools needs tools or all, and trust_workspace needs KIRO_MCP_ALLOW_TRUST_WORKSPACE. Uses the operator's CLI login or KIRO_API_KEY.

kiro_agentsB

Kiro custom agents: list (the custom agents a session advertises as modes, with their source, plus agent config errors) and validate (kiro-cli agent validate --path). The writes create, set_default, and upgrade need KIRO_MCP_ALLOW_CONFIG_WRITES. Editing an agent opens $EDITOR and is not available; agent migrate is withheld as potentially destructive.

kiro_mcp_configA

Read Kiro's MCP configuration: list (kiro-cli mcp list, optional scope) and status (kiro-cli mcp status --name), parsed from text with the raw text alongside. add (HTTP servers only: an https URL, or http to localhost) and remove need KIRO_MCP_ALLOW_CONFIG_WRITES. Stdio (command) servers and mcp import are withheld because they run arbitrary commands. For live server status in a session, use kiro_session_state include mcp.

kiro_settingsB

Read Kiro settings (kiro-cli settings list --format json, with all: true for every available setting); get returns only the given keys. set and delete need KIRO_MCP_ALLOW_CONFIG_WRITES; keys under chat.agentEngine and acp.*, and any key naming a token, secret, API key, or password, are withheld. Use set chat.defaultModel for /model set-current-as-default.

kiro_powersA

Kiro powers: list returns a session's powers snapshot (like /powers). install (a catalog name, or a local path inside KIRO_MCP_ROOTS) and uninstall run kiro-cli powers and need KIRO_MCP_ALLOW_CONFIG_WRITES.

kiro_stream_sessionA

Follow a session's transcript live: returns events after cursor (agent text, tool calls and results, plan updates, permission requests, turn events) and the next cursor, waiting up to wait_s (default 1 s) when nothing is newer. Works for sessions this server did not start: they are loaded first, so their history comes first (replay: true), then live events. Re-reading a cursor returns the same events; gap: true means older events were dropped. types filters (skipped events still advance the cursor); max_chars caps the page and sets truncated: true. Also available as the subscribable resource kiro-session://<session_id>/transcript (notifications/resources/updated within a second of new events).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 32 tools

Disambiguation4/5

Most tools target clearly distinct Kiro domains or session lifecycle operations, with strong descriptions that explain boundaries. There is some overlap among kiro_events, kiro_stream_session, kiro_session_history, and kiro_session_state, since they all expose aspects of session activity or state, but the distinctions are mostly workable.

Naming Consistency4/5

All tools use the kiro_ prefix and snake_case, and session tools follow a predictable kiro_session_<action> pattern. Non-session tools are more noun-oriented (kiro_memory, kiro_workflow, kiro_specs) and encode actions in parameters, so the convention is mostly but not entirely verb_noun.

Tool Count3/5

32 tools is heavy for an MCP server and exceeds the typical well-scoped range, with many session-related tools plus domain-specific integrations. The breadth reflects a genuinely large surface, but the set risks overwhelming agents and could benefit from consolidation.

Completeness4/5

The surface covers session lifecycle, prompting, events, permissions, specs, memory, knowledge, workflows, cloud sources, agents, settings, and diagnostics comprehensively. Minor gaps exist, such as archive import not being possible over ACP, agent editing being unavailable, and some config writes being intentionally withheld for security.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues