Connector API
MCP
The same API as tools, over the Model Context Protocol’s Streamable HTTP transport:
POST https://connector.socialistic.ai/mcp
Authorization: Bearer <API key or OAuth access token>Stateless: there is no Mcp-Session-Id and no server-push stream (GET /mcp answers 405); each request is authenticated on its own. MCP clients that support OAuth (Claude, Claude Code) discover https://socialistic.ai from the 401 and run the flow in Auth & scopes themselves — add https://connector.socialistic.ai/mcp as a connector and sign in.
tools/listshows only the tools your token’s scopes allow. Each tool is one REST endpoint below — same input fields (path parameters such as skill_idjoin the body’s), same checks, same rate limit (it counts as one request of that endpoint). A failure is a tool result with isError: true and the endpoint’s JSON error { "status", "code", "detail"? }; only protocol faults are JSON-RPC errors.
Waiting on a run never holds a connection: run_create answers with the run id as soon as the runtime accepts the run (on a cold session that can take a minute or two while its sandbox starts — keep your client’s request timeout above that, and pass idempotency_key so a retry after a timeout returns the same run), run_wait waits at most 50 seconds and answers done: false if the run is still going (call it again), and session_get reads the reply. Binary uploads (archive import, avatars) stay REST-only.
On current (Toscana) sessions, run_get (and run_wait once done) carries what a run ended with: result, the reply of a completed run, and charge_credits / charge_usd, what your wallet was debited, as soon as the charge is final (until then they are absent — read the run again).
Streaming. A tool result arrives whole, so MCP carries no live output. For a person watching a run live, session_stream_descriptormints a token that reads that one session’s stream and nothing else, with the Gateway URL it is read from: hand it to the browser, which streams from the Gateway directly (see Streaming). Your own credential — API key or OAuth token — stays on your server. The stream is optional: the run settles whether or not anyone reads it.
| Tool | Scope | Endpoint |
|---|---|---|
me_getThe Socialistic account this credential acts as: { user_id }. | session:run | GET /v1/me |
model_listList the platform's available models. type: inference (default), image_generation, video_generation, audio_generation, image_understanding, video_understanding, audio_understanding. q: substring search on model id. | public:read | GET /v1/models |
public_skill_matchFind public skills by exact string match: a GitHub link (source eq) returns that path's canonical skill and its copies, or everything listed under a repository; text contains matches names and descriptions. Read-only; never imports. | public:read | POST /v1/public/skills/match |
public_skill_searchGeneral search over public skills — not implemented yet. Use public_skill_match to find public skills by source link or text. | public:read | POST /v1/public/skills/search |
skill_createCreate a skill in your account from a GitHub URL — your own copy, never the canonical skill for that path (use skill_import_github for that). Optionally set slug, hosting and consumer_billing in the same call. Archive uploads are REST-only (multipart POST /v1/skills/import). | skill:create | POST /v1/skills/import |
skill_import_githubGet the skill for a GitHub link (repository or a path inside it), importing it if it is not listed yet. Returns the path's one canonical skill, attributed to the repository's author — existing: true when it was already listed. | skill:import | POST /v1/skills/github-import |
skill_listList the skills in your account (a credential bound to skills lists only those). | skill:read | GET /v1/skills |
skill_searchSearch your own skills by text, import source and whitelisted field filters, paged. | skill:read | POST /v1/skills/search |
skill_getGet one of your skills: configuration status and serving fields. Secrets are never returned. | skill:read | GET /v1/skills/:skillId |
skill_statsInbound traffic for one of your skills since `since` (default 30 days): share-page views, sessions, users, grouped by source. | skill:read | GET /v1/skills/:skillId/stats |
skill_revisionsList a skill's append-only revision history (draft / published / snapshot), newest first. | skill:read | GET /v1/skills/:skillId/revisions |
skill_updateUpdate a skill's configuration: any subset of key, hosting, consumer_billing, meta. Returns the updated skill. | skill:write | PATCH /v1/skills/:skillId |
skill_activateRe-share a deactivated skill (status → active). | skill:publish | POST /v1/skills/:skillId/activate |
skill_deactivateStop sharing a skill (status → inactive). Nothing is deleted. | skill:publish | POST /v1/skills/:skillId/deactivate |
skill_deleteDelete one of your skills. It leaves every list and its share page stops serving; it cannot be restored. | skill:publish | DELETE /v1/skills/:skillId |
skill_identity_updateSet a skill's name and/or description. Live — saved immediately, not staged on the draft. | skill:write | PATCH /v1/skills/:skillId/identity |
draft_getRead the skill's editable draft: config, metadata and file manifest. | skill:read | GET /v1/skills/:skillId/draft |
draft_putMake sure the skill has a draft (no arguments), or roll the draft back to an earlier revision (`source_revision`; appends a copy of it). | skill:write | PUT /v1/skills/:skillId/draft |
draft_updateUpdate the draft's serving config and metadata (partial: hosting, key, consumer_billing, meta). Staged on the draft; the live version changes only on publish. `key` is write-only. | skill:write | PATCH /v1/skills/:skillId/draft |
draft_files_getRead the draft's files: the list, with inline text content (binary or oversized files are listed with empty content). | skill:read | GET /v1/skills/:skillId/draft/files |
draft_capability_listRead the draft's capabilities (the live version's when there is no draft) with `validation`: the rules publish checks. Secrets read back as "<set>". Never creates a draft. | skill:read | GET /v1/skills/:skillId/draft/capabilities |
draft_saveFreeze the current draft into an immutable snapshot checkpoint. | skill:write | POST /v1/skills/:skillId/draft/save |
draft_files_putBatch upsert/delete text files on the draft: changes [{path, content} | {path, deleted: true}]. | skill:write | PATCH /v1/skills/:skillId/draft/files |
draft_capability_addAttach a capability to the draft, e.g. { capability_type: "mcp", config: { name, url } }. | skill:write | POST /v1/skills/:skillId/draft/capabilities |
draft_capability_updateUpdate one draft capability's label and/or config (config merges; "<set>" keeps a stored secret). | skill:write | PATCH /v1/skills/:skillId/draft/capabilities/:capabilityId |
draft_capability_removeDetach one capability from the draft. Billing and inference cannot be removed. | skill:write | DELETE /v1/skills/:skillId/draft/capabilities/:capabilityId |
draft_avatar_putSet the draft's preset avatar (one of the listed avatar keys). Staged on the draft; consumers see it once the draft is published. | skill:write | PUT /v1/skills/:skillId/draft/avatar |
skill_publishPublish the draft: it becomes the live version consumers run. | skill:publish | POST /v1/skills/:skillId/publish |
translation_listRead a skill's public-page source strings and the locales still missing for this source version. | translation:read | GET /v1/skills/:skillId/translations |
translation_putStore one locale's translation of a skill's public page for the named source version. | translation:write | PUT /v1/skills/:skillId/translations/:locale |
session_listList your sessions, optionally on one skill, paged. | session:run | GET /v1/sessions |
session_createStart a session on a skill. Every run in it is paid from your own wallet. | session:run | POST /v1/sessions |
session_getGet a session: metadata, conversation history (the agent's replies) and usage. history="false" skips the conversation. | session:run | GET /v1/sessions/:sessionId |
session_endEnd a session. Its record and history are kept, and a new message resumes it. | session:run | DELETE /v1/sessions/:sessionId |
session_stream_descriptorMint a short-lived token, scoped to reading this one session's stream, plus the Toscana Gateway URL and session id it is read with — to hand to a browser so it streams the session's live output directly. Your own credential never goes to the browser. | session:run | POST /v1/sessions/:sessionId/stream-descriptor |
run_createSend a message into a session. Answers at once with the run id; call run_wait to wait for it, then session_get to read the reply. | session:run | POST /v1/sessions/:sessionId/runs |
run_getGet a run's current state (queued | running | completed | failed | cancelled). Once it has ended: `result`, the final reply of a completed run, and `charge_credits` / `charge_usd`, what your wallet was debited, as soon as that is final. | session:run | GET /v1/sessions/:sessionId/runs/:runId |
run_waitWait up to 50 s for a run to finish. Returns its state and done: true once it has completed, failed or been cancelled; done: false means it is still going — call run_wait again. Once done, result is the reply of a completed run and charge_credits / charge_usd its charge once final. | session:run | GET /v1/sessions/:sessionId/runs/:runId |
run_cancelCancel a running or queued run. Idempotent. | session:run | POST /v1/sessions/:sessionId/runs/:runId/cancel |
run_steerAdd text to a run while it executes, without starting another run. | session:run | POST /v1/sessions/:sessionId/runs/:runId/steer |
github_skill_searchSearch GitHub for skills and runnable open-source code that can complete a task, reading GitHub as you (your connected GitHub App, read-only). Give the whole task, not keywords. Starts a paid run from your wallet; read the shortlist with github_skill_search_get. | session:run | POST /v1/github-skill-search |
github_skill_search_getGet a GitHub skill search: its status (running | completed | failed | stopped) and, once delivered, the ranked shortlist of candidates with their GitHub URLs. Poll while running (UPSTREAM_ERROR means the status could not be confirmed: poll again); import a candidate with skill_import_github. | session:run | GET /v1/github-skill-search/:sessionId |