Invite-only.
Connect

Replit Agent

Replit Agent currently calls external services via plain HTTPS, not MCP. Wire Dock in as a REST backend: store the key as a Secret and call fetch from the generated app.

Client
Replit Agent
Browser-hosted coding agent. Use Dock as a REST backend.
HTTP JSON-RPC (streamable-http)
Dock MCP
trydock.ai/api/mcp
37 tools · OAuth 2.1 + DCR · Bearer
Auth path
1
Mint a dk_ key in Dock Settings → API keys.
2
Paste it as Authorization: Bearer dk_… in the client config.
3
Client calls Dock MCP directly on every request.

Prerequisites

  • Replit account with Agent access.
  • A Dock dk_ key.
Secret
In your Replit project, open Tools · Secrets, add DOCK_API_KEY with value dk_live_....
Prompt
Tell Replit Agent: "Use the DOCK_API_KEY secret. Base URL is https://trydock.ai/api. Auth is Bearer on every request. Append a row to /workspaces/content-pipeline/rows when the user submits the form."
Generated snippet you'll want to seetypescript
export async function appendRow(title: string) {
  const res = await fetch(
    "https://trydock.ai/api/workspaces/content-pipeline/rows",
    {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.DOCK_API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({ data: { title, status: "drafted" } }),
    }
  );
  if (!res.ok) throw new Error(await res.text());
  return res.json();
}

Verify

Inside your running Replit apptext
Submit the form and confirm a new row appears at trydock.ai/{org}/content-pipeline.

Troubleshooting

Symptom
Fix
Agent-generated code hard-codes the token in source
Tell it explicitly: "Use process.env.DOCK_API_KEY, do not embed the key literal." Re-run the prompt.
App works locally but 401s in deployed Replit app
Secrets need to be set in the Deployment as well as the workspace. Replit shows them as separate settings.

Related