socialistic connector

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.

ToolScopeEndpoint
me_get
The Socialistic account this credential acts as: { user_id }.
session:runGET /v1/me
model_list
List 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:readGET /v1/models
public_skill_match
Find 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:readPOST /v1/public/skills/match
public_skill_search
General search over public skills — not implemented yet. Use public_skill_match to find public skills by source link or text.
public:readPOST /v1/public/skills/search
skill_create
Create 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:createPOST /v1/skills/import
skill_import_github
Get 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:importPOST /v1/skills/github-import
skill_list
List the skills in your account (a credential bound to skills lists only those).
skill:readGET /v1/skills
skill_search
Search your own skills by text, import source and whitelisted field filters, paged.
skill:readPOST /v1/skills/search
skill_get
Get one of your skills: configuration status and serving fields. Secrets are never returned.
skill:readGET /v1/skills/:skillId
skill_stats
Inbound traffic for one of your skills since `since` (default 30 days): share-page views, sessions, users, grouped by source.
skill:readGET /v1/skills/:skillId/stats
skill_revisions
List a skill's append-only revision history (draft / published / snapshot), newest first.
skill:readGET /v1/skills/:skillId/revisions
skill_update
Update a skill's configuration: any subset of key, hosting, consumer_billing, meta. Returns the updated skill.
skill:writePATCH /v1/skills/:skillId
skill_activate
Re-share a deactivated skill (status → active).
skill:publishPOST /v1/skills/:skillId/activate
skill_deactivate
Stop sharing a skill (status → inactive). Nothing is deleted.
skill:publishPOST /v1/skills/:skillId/deactivate
skill_delete
Delete one of your skills. It leaves every list and its share page stops serving; it cannot be restored.
skill:publishDELETE /v1/skills/:skillId
skill_identity_update
Set a skill's name and/or description. Live — saved immediately, not staged on the draft.
skill:writePATCH /v1/skills/:skillId/identity
draft_get
Read the skill's editable draft: config, metadata and file manifest.
skill:readGET /v1/skills/:skillId/draft
draft_put
Make 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:writePUT /v1/skills/:skillId/draft
draft_update
Update 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:writePATCH /v1/skills/:skillId/draft
draft_files_get
Read the draft's files: the list, with inline text content (binary or oversized files are listed with empty content).
skill:readGET /v1/skills/:skillId/draft/files
draft_capability_list
Read 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:readGET /v1/skills/:skillId/draft/capabilities
draft_save
Freeze the current draft into an immutable snapshot checkpoint.
skill:writePOST /v1/skills/:skillId/draft/save
draft_files_put
Batch upsert/delete text files on the draft: changes [{path, content} | {path, deleted: true}].
skill:writePATCH /v1/skills/:skillId/draft/files
draft_capability_add
Attach a capability to the draft, e.g. { capability_type: "mcp", config: { name, url } }.
skill:writePOST /v1/skills/:skillId/draft/capabilities
draft_capability_update
Update one draft capability's label and/or config (config merges; "<set>" keeps a stored secret).
skill:writePATCH /v1/skills/:skillId/draft/capabilities/:capabilityId
draft_capability_remove
Detach one capability from the draft. Billing and inference cannot be removed.
skill:writeDELETE /v1/skills/:skillId/draft/capabilities/:capabilityId
draft_avatar_put
Set the draft's preset avatar (one of the listed avatar keys). Staged on the draft; consumers see it once the draft is published.
skill:writePUT /v1/skills/:skillId/draft/avatar
skill_publish
Publish the draft: it becomes the live version consumers run.
skill:publishPOST /v1/skills/:skillId/publish
translation_list
Read a skill's public-page source strings and the locales still missing for this source version.
translation:readGET /v1/skills/:skillId/translations
translation_put
Store one locale's translation of a skill's public page for the named source version.
translation:writePUT /v1/skills/:skillId/translations/:locale
session_list
List your sessions, optionally on one skill, paged.
session:runGET /v1/sessions
session_create
Start a session on a skill. Every run in it is paid from your own wallet.
session:runPOST /v1/sessions
session_get
Get a session: metadata, conversation history (the agent's replies) and usage. history="false" skips the conversation.
session:runGET /v1/sessions/:sessionId
session_end
End a session. Its record and history are kept, and a new message resumes it.
session:runDELETE /v1/sessions/:sessionId
session_stream_descriptor
Mint 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:runPOST /v1/sessions/:sessionId/stream-descriptor
run_create
Send 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:runPOST /v1/sessions/:sessionId/runs
run_get
Get 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:runGET /v1/sessions/:sessionId/runs/:runId
run_wait
Wait 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:runGET /v1/sessions/:sessionId/runs/:runId
run_cancel
Cancel a running or queued run. Idempotent.
session:runPOST /v1/sessions/:sessionId/runs/:runId/cancel
run_steer
Add text to a run while it executes, without starting another run.
session:runPOST /v1/sessions/:sessionId/runs/:runId/steer
github_skill_search
Search 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:runPOST /v1/github-skill-search
github_skill_search_get
Get 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:runGET /v1/github-skill-search/:sessionId