Replit Add MCP server: connect Sume with an X-API-Key header
Replit's Add MCP server flow takes an HTTPS endpoint, optional custom headers and Test and save. Connect Sume's hosted MCP and confirm the tools load.

In Replit, choose Add MCP server, enter https://mcp.sume.com/mcp, open Advanced settings to add a header, and press Test and save. Replit's docs describe an HTTPS endpoint, custom headers such as X-API-Key, and Test and save completing OAuth when the server uses it. Sume accepts an API key as Authorization: Bearer or x-api-key, so both header styles work.
The Replit fields
| Field | What to enter for Sume |
|---|---|
| Endpoint | https://mcp.sume.com/mcp (HTTPS) |
| Advanced settings, custom header | x-api-key with your Sume key |
| Test and save | Connects and, with OAuth, completes sign-in |
Header or OAuth
With an API key header the agent sees the full tool set. With OAuth you consent on the MCP host: mcp:read is required, mcp:write is opt-in, and an attempt to write under read-only returns insufficient_scope. OAuth tokens are not API keys. Choose one method per connection.
Smoke test after saving
Ask the agent to list tools, or call them yourself.
mcp_healthandaccount_meconfirm the server and the account.tools_listandtools_schemashow argument names.catalog_listshows what you can generate.generate_imageandgenerate_videoare the router tools on hosted MCP;images_createandvideos_createare not on it.
Long jobs from a Repl
A render outlasts one MCP call. Use jobs_wait, which holds at most 55 seconds, default 50, and on wait_slice_expired call it again with the same ids. Do not resubmit the paid create. A 524 or 522 means transport failure, not a failed job. Keep the key in Replit Secrets rather than in code, and give every paid call its own idempotency_key.
Sources
Related posts
More in Integrations
- Slack Events API retries 3 times: keep one Sume run per event
Slack retries a missed Events API ack three times and can disable your subscriptions. Ack in 3 seconds and let an Idempotency-Key keep one Sume run per event.
- smolagents MCPClient: give a CodeAgent Sume's remote tools
Connect a smolagents CodeAgent to Sume's hosted MCP with MCPClient and the streamable-http transport, send an API key header, and wait on jobs correctly.
- Snap Marketing API ai_content_source: the AI declaration on Media
Snap added an ai_content_source attribute to the Media entity in its Marketing API on August 28, 2026. What the changelog says, and how to record it.
- Snapchat Spotlight API: SUBMITTED, LIVE or REJECTED, 160-char caption
A Spotlight post through Snap's Public Profile API returns SUBMITTED, LIVE or REJECTED and takes a 160-character description with a locale. Prep it with Sume.
Written by Sume