Integration · Claude Code

Give Claude Code a clean place to finish

Connect Claude Code to DraftRelay once, then ask Claude to save the polished result of a session. Use Claude Code’s native copy command for a quick one-off; use the review inbox when the result needs structure, provenance, safety review, revisions, or a destination format.

01Add

Register the hosted Streamable HTTP endpoint.

Run in a terminal

claude mcp add --transport http --scope user draftrelay https://draftrelay.onrender.com/mcp

--scope user makes the registration available to your Claude Code user rather than writing it into one project. Use a project or local scope only when that narrower placement is intentional. The name draftrelay is the client-side label; the actual protected endpoint is https://draftrelay.onrender.com/mcp.

02Authorize

Complete the browser sign-in from Claude Code.

Start Claude Code and run /mcp. Select the DraftRelay connection and follow the authentication prompt. Review the requested output scopes before approving. Claude Code should return to the session after authorization.

Use /mcp again to confirm that the server is connected and its tools are visible. If the browser flow fails, verify that the URL is exactly https://draftrelay.onrender.com/mcp, sign in to DraftRelay in the same browser, and retry. Do not substitute a copied session cookie or manually created bearer token.

03Use

Tell Claude what the saved artifact is for.

Draft the final client reply, then save only the approved reply to DraftRelay under the Acme project, tagged billing. Keep it under 180 words and include the next action. Do not save our terminal conversation.

Claude should call save_output once and return a direct review URL. Open it to check Markdown, provenance, and secret warnings. If you ask Claude to revise a saved item later, it can read the current revision and create a new one without erasing the original.

04Native copy

Use /copy when the latest response is already enough.

Claude Code has a built-in /copy command for copying the most recent assistant response. That is the shortest path when you only need that response now and do not need to keep a reviewed artifact.

DraftRelay solves a different last-mile problem: extract one part from a noisy session, preserve it across clients, organize it by project and tags, keep immutable revisions and supplied provenance, flag likely secrets, and prepare Slack, email, GitHub, Markdown, or plain-text variants. It complements /copy; it should not replace a simpler native command when the native command is sufficient.

05Disconnect

Remove both sides when access is no longer needed.

Remove the MCP registration from Claude Code using its MCP management commands, and revoke the corresponding OAuth connection in DraftRelay account settings. Removing only the local label does not express your intent as clearly as revoking the server-side grant too.