Connect a coding agent
Configure Smallworld from Codex or Claude Code with the hosted builder MCP.
Connect and sign in#
Add the Streamable HTTP server below in your coding agent, then sign in to Smallworld in the browser and review the consent screen.
https://api.smallworld.sh/mcp
Codex#
codex mcp add smallworld --url https://api.smallworld.sh/mcp
codex mcp login smallworld
If you run a longer draft test, allow enough time for the result by setting tool_timeout_sec = 150 in the [mcp_servers.smallworld] section of your Codex configuration.
Codex MCP configuration describes the available connection and timeout settings.
Claude Code#
claude mcp add --transport http smallworld https://api.smallworld.sh/mcp
Open /mcp in Claude Code and choose Smallworld to authenticate. See the Claude Code MCP reference.
What the connection can do#
Consent grants all exposed configuration capabilities: Worlds, integration settings and policies, custom integrations, remote MCP integrations, hooks, provider OAuth apps, app branding, and terminal settings. The agent can also search and read this documentation, and create API keys for your application's backend.
Setup tests can call real external endpoints, register OAuth clients, and change remote data. Draft and rotation tools can return newly generated secrets; save them in your application’s secret store. Saved configuration reads keep secrets private.
api_key_create creates a workspace API key named Coding agent – followed by the agent's name, and returns its secret once. The key is listed in Settings → API keys, where you can revoke it, and its creation appears in the audit log. Each call creates another key.
The builder tools do not provide ordinary World execution, execution history, approvals, represented-user or group management, listing or revoking API keys, or IP-policy management.
For example: “Read the custom integration guide, create a support World, register these tools, require approval for refunds, and test my signed endpoint.”
Or: “Add Smallworld to this project's backend: create an API key with api_key_create, save it as SMALLWORLD_API_KEY, add a helper that sends commands to my World for the current user, and run echo hello through it once.”
Manage connected agents#
Each installation has its own connection under Settings → Connected agents. Disconnecting it blocks subsequent requests and refreshes immediately. An operation authorized before disconnect can finish.
Connections survive dashboard logout and have no scheduled authorization expiry. Access tokens last 15 minutes and refresh automatically. Resetting your password revokes previous agent connections; reconnecting creates a new connection and never restores revoked tokens.
The workspace’s existing IP allowlist applies to the agent’s actual network address. Configuration changes and setup actions appear in Settings → Audit log, attributed to the connected agent.
Test an endpoint while developing#
The hosted service must be able to reach your custom integration or hook URL. A laptop-local URL such as http://localhost:3000 is local to the hosted server; use a publicly reachable development endpoint.
Writes retain the API’s current retry behavior and last-write behavior. A timeout or lost response does not prove that an action failed. Inspect configuration and the audit log before repeating a create, remote test, or secret rotation.