MCP Server Reference
Recommended Agent interface. Cloud MCP is the default path for durable memory, context, knowledge bases, files, and workspace governance. The standalone CLI enables advanced local runtime workflows: automatic Sessions, directed Tasks, Agent communication, and diagnostics.
Stable compatibility surface. Cloud MCP remains the supported public interface for durable knowledge. Runtime delivery, sessions, tasks, and communication stay in the connected TokST Runtime and Dashboard.
The TokST MCP (Model Context Protocol) server lets AI agents interact with your memory system directly. Claude Code, Codex, Pi, WorkBuddy, ZCode, Qoder, Kimi, and other MCP clients can store, search, and manage memories through natural language.
For durable decisions, architecture, meeting notes, and tasks, send structured Markdown in content. Use headings, lists, task checkboxes, links, tables, and code blocks when they improve review. Short facts can remain plain text; keep credentials, private keys, raw reasoning, and transient tool output outside memory records.
Scope
Cloud MCP provides durable memory, knowledge-base selection, workspace governance,
evidence files, and account status. Every request resolves the credential to a
stable agt_... audit identity. Tasks, automatic sessions, Agent communication,
handoffs, endpoint health, and automatic-memory controls use the connected
TokST Runtime and Dashboard.
Connection Modes
| Mode | Transport | Use Case |
|---|---|---|
| Remote (Streamable HTTP, 32 tools) | https://api.tokst.com/mcp | Durable memory, knowledge bases, workspaces, files, and account status |
Remote Setup (for ChatGPT & remote agents)
The public MCP manifest is available at https://api.tokst.com/.well-known/mcp. It advertises the Streamable HTTP endpoint, OAuth metadata, and the API-key path for static clients.
Configure a remote MCP client with the endpoint below. On first connection, the client opens TokST sign-in and approval in the browser. TokST uses OAuth 2.1 authorization-code flow with PKCE and creates a stable trusted Agent identity for the approved client.
{
"mcpServers": {
"tokst": {
"type": "streamable-http",
"url": "https://api.tokst.com/mcp"
}
}
}
The remote endpoint is stateless Streamable HTTP: every request carries authentication and can be served by any healthy instance. It returns JSON tool responses and does not require a persistent MCP session ID.
The authorization server advertises OAuth metadata at /.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server. Clients that support Dynamic Client Registration can register automatically.
When a client reaches /mcp without credentials, TokST returns 401 Unauthorized with WWW-Authenticate: Bearer, the required mcp scope, and the protected-resource metadata URL. MCP clients use this challenge to start browser authorization instead of treating the endpoint as unreachable.
API Key remote setup
WorkBuddy, ZCode, Qoder, Kimi, CI, and other clients with static MCP settings can connect with a dedicated API key. Create it in Dashboard API Keys, then use this configuration:
{
"mcpServers": {
"tokst": {
"type": "streamable-http",
"url": "https://api.tokst.com/mcp",
"headers": {
"Authorization": "Bearer tk_live_your_api_key"
}
}
}
}
Create a separate key for each client. Store it in the client's protected environment-variable store, keep it out of source code and version control, and revoke keys that are no longer used.
Tool Reference
TokST Cloud MCP exposes memory, organization, attachment, and account tools. The public endpoint provides 32 focused tools.
Workspace Governance Tools
These tools use the same role checks as the dashboard. confirm: true is required for accepting or declining invitations, revoking invitations, leaving, changing roles, removing members, and transferring ownership.
| Tool | Purpose |
|---|---|
tokst_workspace_members | List members and roles |
tokst_workspace_invitations | List invitations sent from a workspace |
tokst_workspace_invite | Send one or more invitations with role and expiry |
tokst_workspace_invitation_inbox | List invitations for the current user |
tokst_workspace_invitation_respond | Accept or decline an invitation |
tokst_workspace_invitation_revoke | Revoke a pending invitation |
tokst_workspace_leave | Leave a workspace |
tokst_workspace_member_role | Set a member to admin or member |
tokst_workspace_member_remove | Remove a member |
tokst_workspace_owner_transfer | Transfer Owner to an existing member |
Memory Operations
tokst_remember
Store a new memory with auto-routing and embedding generation. Exact active records in the same workspace, atlas, and type return the existing ID with duplicate: true and duplicateOf. Ordinary MCP writes preserve the supplied content and do not run automatic sensitive-content classification. Encrypted sensitive storage is optional and disabled by default. A Workspace Owner can enable it in Dashboard Settings; a user then explicitly selects it for a manually saved record. Those records use encryption, skip embeddings and automatic capture, and require confirmSensitive: true for a confirmed read.
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | yes | The memory content |
type | string | no | fact, decision, preference, task, architecture, note (default: note) |
tags | string | no | Comma-separated tags |
source | string | no | Source name (default: mcp) |
evidence | string | no | Evidence URL or source file path |
confidence | number | no | Confidence from 0 to 1 |
validUntil | string | no | ISO expiry date-time |
atlasId | string | no | Target atlas (auto-routes by keyword if omitted) |
title | string | no | Optional title |
tokst_search
Adaptive scoped search shared with CLI and REST.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search query, at least two characters |
type | string | no | Filter by type |
tags | string | no | Comma-separated tag filter |
atlasId | string | no | Scope to a specific atlas |
mode | string | no | auto, keyword, semantic, or hybrid (default: auto) |
limit | number | no | Max results (default: 20) |
The tool result includes the same ordered memories and meta timing/cache fields as REST.
tokst_context
Get a structured context snapshot grouped by memory type.
| Parameter | Type | Required | Description |
|---|---|---|---|
atlasId | string | no | Atlas ID (all if omitted) |
limit | number | no | Max items per type (default: 10) |
tokst_memory_list
List accessible memories with stable cursor pagination. Continue with nextCursor until hasMore is false.
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | no | Filter by type |
atlasId | string | no | Scope to atlas |
limit | number | no | Max results (default: 20) |
cursor | string | no | Opaque cursor returned by the previous page |
status | string | no | active, archived, or all (default: active) |
includeTotal | boolean | no | Include the exact result count for this snapshot |
The result includes count, hasMore, snapshotAt, and nextCursor when another page is available. Unknown parameters are rejected.
tokst_memory_get
For a controlled sensitive record, MCP returns metadata with the body hidden by default. Pass confirmSensitive: true only after the user explicitly asks to view the original. Every confirmed read is audited.
Get a single memory with full details and attachments.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory ID |
tokst_memory_update
Update one or more fields on a memory. A content update refreshes its retrieval vector. The response includes the saved title, tags, content byte count, and embedding status.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory ID |
title | string | no | Replacement title |
content | string | no | Replacement Markdown body |
tags | string[] | no | Replacement tag list |
Provide at least one of title, content, or tags.
tokst_memory_append
Append content to an existing memory. Surrounding blank lines are normalized to one \n\n separator. Updating or appending to a verified memory returns it to needs_review.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory ID |
content | string | yes | Content to append |
tokst_memory_verify
Verify a memory with supporting evidence, confidence, and an optional expiry date.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory ID to verify |
evidence | string | no | Evidence URL or source file path |
confidence | number | no | Confidence from 0 to 1 |
validUntil | string | no | ISO expiry date-time |
tokst_memory_supersede
Mark an older memory as superseded by a newer record in the same Atlas.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory being superseded |
replacementMemoryId | string | yes | Newer replacement memory |
tokst_memory_archive
Soft-archive a memory (restorable).
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory ID |
tokst_memory_restore
Restore an archived memory to active status.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Memory ID |
tokst_attach_file
Attach one ChatGPT-uploaded file or remote URL to an existing memory. The remote server downloads it and uploads it to R2.
| Parameter | Type | Required | Description |
|---|---|---|---|
memoryId | string | yes | Memory ID |
files | array | no | File supplied by ChatGPT (openai/fileParams) |
fileUrl | string | no | Downloadable URL for generic MCP clients |
filename | string | no | Override filename |
Provide either files or fileUrl. fileUrl must be a publicly reachable HTTPS
download URL and may not resolve to a private network. Remote MCP uploads are
limited to 50 MB per file. The result identifies the failed stage when a source,
upload authorization, object upload, or upload confirmation cannot complete.
tokst_download_file
Get secure download links for one or all attachments on a memory. Links expire after 15 minutes and are also returned as MCP resource_link content.
| Parameter | Type | Required | Description |
|---|---|---|---|
memoryId | string | yes | Memory ID |
attachmentId | string | no | Specific attachment; omit for all attachments |
Atlas Operations
tokst_atlas_list
List all atlases. No parameters.
tokst_atlas_init
Create a new atlas (knowledge base).
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Atlas name |
workspaceId | string | no | Workspace (uses default if omitted) |
keywords | string | no | Comma-separated keywords for auto-routing |
tokst_atlas_rename
Rename an atlas.
| Parameter | Type | Required | Description |
|---|---|---|---|
atlasId | string | yes | Atlas ID |
name | string | yes | New name |
tokst_atlas_profile
Set auto-routing keywords for an atlas.
| Parameter | Type | Required | Description |
|---|---|---|---|
atlasId | string | yes | Atlas ID |
keywords | string | yes | Comma-separated keywords |
tokst_atlas_archive
Archive an atlas. Its memories and attachments remain recoverable in the Dashboard archive view.
| Parameter | Type | Required | Description |
|---|---|---|---|
atlasId | string | yes | Atlas ID to archive |
confirm | boolean | yes | Must be true to confirm archiving |
Workspace Operations
tokst_workspace_list
List all workspaces. No parameters.
tokst_workspace_create
Create a new workspace.
Cloud Team workspace creation uses the account's available Team workspace quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | Workspace name |
tokst_workspace_archive
Archive a workspace. Its resources remain recoverable in the Dashboard archive view.
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | yes | Workspace ID to archive |
confirm | boolean | yes | Must be true to confirm archiving |
Account
tokst_status
Get account overview: plan, usage, storage, workspace/atlas counts. No parameters.
Authentication
- Remote: API Key in
Authorization: Bearer tk_live_xxxheader - CLI Runtime:
tokst login --key <key>stores its cloud credential in~/.tokst/config.jsonfor connected endpoint, session, task, and diagnostic workflows.
Connected Runtime
Install the TokST CLI to connect supported Agents. The Runtime uses authenticated WSS delivery for task assignment, Agent communication, automatic-session capture, handoffs, endpoint health, and execution results. Use the Dashboard to manage these workflows; use MCP to retrieve and store durable knowledge.