Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JCODE_MCP_MODENo`connect` attaches to your jcode so sessions are visible in Desktop and the TUI. `launch` starts a private instance (not visible to your own clients, dies with this process).connect
JCODE_MCP_BINARYNoPath to a jcode binary. Defaults to the bundled binary.
JCODE_MCP_SOCKETNoHarness API socket path. Defaults to the SDK default.
JCODE_MCP_ALLOWED_ROOTSNoColon-separated directories agents may work in. Strongly recommended. Default is unrestricted.
JCODE_MCP_WORKTREE_ROOTNoWhere worktrees are created.~/.jcode-mcp/worktrees
JCODE_MCP_INHERIT_LOGINSNo`launch` mode: copy your provider logins into the private instance. `0` starts with none.1
JCODE_MCP_AUTOSTART_BRIDGENoSet `1` to start `jcode api-bridge` if nothing is listening. Opening jcode Desktop also starts it.off

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
spawn_agentA

Start a jcode agent session on a task and return immediately. The session is a normal jcode session (visible in jcode Desktop and the TUI when connected to the user's jcode). Give it a git worktree so parallel agents do not edit the same files. Poll with agent_status, or block briefly with wait_agents.

list_agentsB

List agents spawned through this server, with state, tool counts and pending permission requests.

agent_statusA

State of one agent: running, idle, failed, cancelled, disconnected.

agent_outputB

The agent's last final message, plus optionally the last N transcript messages. Do not treat a worker's claim of success as proof: check its diff and run the tests yourself.

wait_agentsA

Block up to timeout_seconds (max 50) until any or all agents stop running or ask for a permission. Prefer this over repeated polling.

message_agentA

Send text to an agent. A running agent gets it as a soft interrupt (urgent=true skips pending tool calls); an idle agent starts a new turn with it.

respond_permissionC

Answer a pending tool permission request shown in agent_status.pending_permissions.

cancel_agentA

Interrupt the agent's current turn. The session stays open and can be messaged again.

close_agentA

Stop tracking an agent. Optionally archive the jcode session (hides it in Desktop) and remove its git worktree. Removing a worktree with uncommitted changes needs force=true.

list_jcode_sessionsB

List sessions known to the connected jcode daemon, including ones this server did not spawn.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 10 tools

Disambiguation4/5

Each tool has a distinct role in the agent lifecycle (spawn, observe, interact, terminate), and descriptions clearly differentiate them. The only mild overlap is between list_agents, agent_status, and list_jcode_sessions, though the descriptions distinguish server-spawned agents from daemon-wide sessions.

Naming Consistency4/5

Eight of ten tools follow a verb_noun pattern (spawn_agent, list_agents, wait_agents, message_agent, cancel_agent, close_agent, respond_permission, list_jcode_sessions). agent_status and agent_output break the pattern with noun-first naming, a minor but noticeable deviation.

Tool Count5/5

Ten tools is well-scoped for an agent orchestration server, covering exactly the lifecycle phases a caller needs. No tool appears redundant or vestigial.

Completeness4/5

The surface covers spawn, monitor, message, wait, cancel, close, and permission handling — a full lifecycle. Minor gaps include no tool to fetch an agent's diff or worktree state (descriptions tell you to inspect manually) and no resume/restart operation for a closed agent.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues