Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CURSOR_SANDBOXNoenabled or disabled, passed as --sandbox <mode>: the sandbox confines what an auto-approved agent may run; any other value ends the server at startup
CURSOR_ALLOW_YOLONotrue runs cursor_agent and cursor_reply with --force (auto-approve every tool call). Without it cursor-agent in headless mode only proposes file changes and applies none (Cursor's headless docs). DANGEROUS — only for trusted environments, best with CURSOR_SANDBOX=enabledfalse
CURSOR_KILL_GRACE_MSNoAfter SIGTERM (timeout or cancellation), a child still alive this long is sent SIGKILL — an integer of milliseconds from 1 to 2147483647 (what a timer can wait); anything else is the default5000
CURSOR_MAX_CONCURRENCYNoMaximum concurrent cursor-agent processes — an integer from 1 to 64; anything else is the default3

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
cursor_agentA

Execute a prompt using Cursor's AI agent with any model id the installed cursor-agent accepts (Composer, Claude, GPT, Gemini, Grok families on your plan; run cursor_models for ids). Modes: 'agent' (tools, terminal, search), 'plan' (design-focused), 'ask' (read-only). In headless mode cursor-agent only PROPOSES file changes unless the server operator set CURSOR_ALLOW_YOLO=true (then --force applies them; CURSOR_SANDBOX=enabled confines them). The result lists the files changed and the model used; a client that sends a progress token gets a progress notification per tool call.

cursor_replyA

Continue an existing Cursor agent session. Send a follow-up message in the same conversation context. Requires a session_id from a previous cursor_agent call.

cursor_modelsA

List the model ids the installed cursor-agent offers (its models command), or a known list when it offers none. Pricing is on cursor.com/docs/models-and-pricing. Use an id with cursor_agent's 'model' parameter.

cursor_sessionsA

List Cursor agent sessions created during this MCP server instance. Shows session IDs, models, and prompts. Use session IDs with cursor_reply to continue a conversation.

cursor_healthA

Check Cursor CLI installation, authentication, and server configuration. Run this first to verify everything is set up correctly.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct operation: starting an agent session, continuing it, listing models, listing sessions, and checking health. The session_id requirement in cursor_reply clearly separates it from cursor_agent, leaving no ambiguity.

Naming Consistency4/5

All tools share the consistent `cursor_` prefix and snake_case, but suffixes mix nouns (agent, models, sessions, health) with a verb-like action (reply). This minor deviation is still readable and predictable.

Tool Count5/5

Five tools is well-scoped for a Cursor agent wrapper, covering execution, continuation, discovery, and diagnostics without redundancy. Each tool clearly earns its place.

Completeness4/5

Core workflows for interacting with the Cursor agent are covered: starting, continuing, listing models/sessions, and health checks. Minor gaps like session cancellation or status inspection exist but are not essential for typical use.

Maintenance

ActivityMaintained
ResponsivenessNo issues