turnstone-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TS_URL | Yes | Turnstone console address. | |
| TS_TOKEN | No | Turnstone API token. | |
| TS_VERIFY | No | `true`, `false`, or the path of a CA file. | |
| TS_TIMEOUT | No | Seconds per request to Turnstone. | |
| TS_API_DENY | No | Comma list of API path prefixes to deny. | |
| TS_API_ALLOW | No | Comma list of API path prefixes to allow. | |
| TS_AUDIT_LOG | No | Audit log of write calls. The image uses /data/turnstone-audit.jsonl. | /data/turnstone-audit.jsonl |
| TS_FILES_DIR | No | Folder in the container from which ts_skill_save may read files. Empty turns file reading off. | |
| TS_HTTP_HOST | No | HTTP host for HTTP mode. | |
| TS_HTTP_PORT | No | HTTP port for HTTP mode. The image uses 8765. | 8765 |
| TS_LOG_LEVEL | No | Log level: DEBUG, INFO, WARNING, or ERROR. | |
| TS_MCP_TOKEN | No | Access token for MCP clients in HTTP mode. At least 24 characters, not the same as TS_TOKEN. | |
| TS_TRANSPORT | No | Transport mode. Set by the image to HTTP mode on port 8765; `stdio` is used for a local install. | |
| TS_ENABLE_API | No | `1` registers the API tools. Non-GET calls also need TS_ENABLE_WRITE=1. | 0 |
| TS_TOKEN_FILE | No | File holding the Turnstone API token. Wins over TS_TOKEN. | |
| TS_ENABLE_WRITE | No | `1` registers the write tools; `0` is read only. | 0 |
| TS_MCP_TOKEN_FILE | No | File holding the MCP client access token. | |
| TS_WRITE_ALLOW_IDS | No | Limits write tools to these session ids or prefixes. Empty = all sessions. While set, new sessions cannot be created. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only view of the Turnstone agent orchestrator. Results are compact Markdown and never contain the models' reasoning. Start with ts_sessions, then ts_session / ts_outputs for one session. Session ids may be given in full or as a unique prefix of at least 6 characters. When the API tools are enabled: ts_skills / ts_skill_get / ts_skill_save manage skills, ts_api_endpoints lists the whole Console API and ts_api calls any endpoint the token is allowed to use.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ts_whoamiA | Health check: which Turnstone user this server is, its permissions, the API base URL, the server version and whether write tools are enabled. |
| ts_sessionsA | List Turnstone sessions, newest first: short id, full id, title, kind, state, node, model, persona, child count, context % used and a warning sign when a session waits for a human. state: optional filter (e.g. running, thinking, idle, attention, closed, or "active" for all that are not closed). kind: optional filter (coordinator or interactive). limit: rows (max 100). |
| ts_sessionA | Details of one session: state, node, model, persona, context use and - if it waits for an approval - the pending tool call with the judge verdict. ws_id: full id or unique prefix (>= 6 chars). |
| ts_childrenA | The worker sessions of a coordinator session. ws_id: full id or unique prefix (>= 6 chars). |
| ts_tasksB | The task list of a coordinator session: id, title, status, worker session, last update. ws_id: full id or unique prefix (>= 6 chars). |
| ts_outputsA | The last final items of a session's conversation: user messages, assistant final text, tool calls and tool results (shortened). Never the models' reasoning. last_n: items (default 5, max 20). include_tools: false hides tool calls and results. max_chars_per_item: default 1500, max 4000. ws_id: full id or unique prefix (>= 6 chars). |
| ts_clusterA | Cluster overview: nodes (version, reachable, sessions per state), totals and node problems. |
| ts_modelsB | Model aliases -> model names (with the default alias) and the available personas. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool targets a distinct data slice (tasks, session detail, children, outputs, cluster, models, identity), and descriptions clarify the boundaries. The risky pair is ts_sessions (list) vs ts_session (detail), and ts_children partially overlaps with ts_sessions filtered by kind, but the descriptions make the intended use clear enough.
All names follow a uniform ts_ + noun pattern with no verb/noun or case mixing, which is predictable and readable. The one- or two-character difference between ts_session and ts_sessions is a real selection hazard, so it is not a perfect score.
Eight tools is well-scoped for a read-only session observability server; each tool covers a distinct view (identity, sessions, detail, children, tasks, outputs, cluster, models) with no filler.
Read-only coverage of the observability domain is broad, but the surface dead-ends where it matters most: tools flag sessions 'waiting for a human' and expose pending tool calls with a judge verdict, yet there is no tool to approve/deny, message a session, or query logs/events. Task listing is also read-only, so any intervention path is missing.