Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CURSOR_API_KEYNoOptional alternative authentication method. Do not use with stored login. For automation only; avoid putting it in config files or logs.
CURSOR_RELAY_SETTING_SOURCESNoComma‑separated list of setting layers. Allowed values are 'project', 'team', 'mdm'. Invalid values are rejected.project
CURSOR_RELAY_WORKSPACE_ROOTSNoStatic workspace allowlist as a comma-separated list of absolute paths. Required for unattended runs with fail‑closed security defaults.
CURSOR_RELAY_ENABLE_DANGER_FULL_ACCESSNoOptional. Set to 'true' at server startup to enable the 'danger-full-access' capability. Keep off for normal use.
CURSOR_RELAY_READ_ONLY_SANDBOX_ENABLEDNoOptional. Set to 'false' to explicitly disable the sandbox on supported non‑Windows hosts. Windows always disables this. Applies only to the read‑only preset.

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
doctorA

检查 Cursor Relay 配置、认证与持久目录;不调用 Cursor 模型。

list_modelsA

从当前 Cursor 账户发现可用模型、别名与参数;start_run 前应调用。

authorize_workspaceA

仅当用户在当前对话明确要求 Cursor Relay 使用该工作区时调用。为一个精确任务和幂等键签发五分钟有效、一次性、只读的工作区授权;不授予写入或危险权限。

start_runA

在允许的本地工作区启动持久 Cursor Agent 运行。默认只读;必须显式选择模型和幂等键。

reply_runB

在一个已结束的 Cursor Agent 会话中发起后续运行,并保留同一 agentId。

get_runB

读取一个持久运行的当前状态,并在进程重启后自动重连 Cursor SDK 运行。

wait_runC

最多等待 30 秒。terminal=false 时 mustCallAgain=true,调用方必须继续轮询。

cancel_runC

取消仍在执行的 Cursor SDK 运行;重复取消具有稳定结果。

list_runsB

按创建时间倒序列出 Relay 持久运行。

read_eventsC

按递增序号读取已持久化的 Cursor SDK 流事件。事件数量有上限。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tonytanglab/cursor-relay-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server