Skip to main content

If you're an agent

For humans

Show this page to your AI. It will help you connect to Kitsch Labs.

Choose the user's goal​

Choose the path that matches what the user wants to build. If their request is unclear, ask whether they want audio tools in their agent or audio features in the service they are developing.

User's goalFollow
Let their agent list voices, generate speech, or transcribe filesA. Connect MCP to an agent
Add speech synthesis, voice cloning, transcription, or noise reduction to their own serviceB. Integrate the API into a service

Follow only the selected path. If the user requests both, configure and verify each integration separately.

A. Connect MCP to an agent​

Use the company-hosted MCP connection. Your user does not need a Kitsch server, local MCP server package, or manually copied API key. For Codex and Claude Code, install the Kitsch plugin to bundle the connection and audio workflow skill.

Connect first​

Follow the client-specific commands for OpenClaw, Hermes, Claude Code, Codex, or Cursor. Preserve unrelated MCP servers and existing settings.

  1. For Codex or Claude Code, install kitsch@kitsch from KitschLabs/kitsch-plugins using the linked client-specific commands. For other clients, register https://mcp.kitschlabs.com/mcp as a remote HTTP MCP server. Do not add a second manual entry for an installed plugin. Follow the migration steps for existing connections.
  2. Start the client's OAuth login flow and let the user finish Kitsch account sign-in and consent in their browser. Do not ask for passwords or API keys in chat.
  3. The user chooses an active workspace where they are an owner or admin. Synthesis and transcription consume that workspace's credits or incur usage charges on a postpaid plan.
  4. Refresh the client connection or start a new session. Discover tools and call list_voices to confirm access. Setup alone does not authorize a paid audio test.

The user can revoke access in the Kitsch app under Account settings → Connected agents. Revocation blocks new requests; it does not undo work already started.

Use the available tools​

Discover the actual tool schemas after connecting. Names may have a server prefix, and only tools covered by the approved permissions are available.

ToolPurpose
list_voicesGet available voices. Use a returned voice_id; do not invent one.
synthesize_speechCreate a complete MP3 or WAV file from user-authorized text.
prepare_transcriptionPrepare a direct file upload. This does not upload or transcribe the file.
get_audio_operationRecover the status or result of an existing operation without starting a new one.

For each new synthesis or transcription, generate and retain one operation ID:

const operation_id = Date.now() + "_" + crypto.randomUUID();

Use the current timestamp and a fresh UUIDv4. Keep the same ID for recovery. Do not reuse a documentation example or substitute a bare UUID.

Synthesize speech​

Call list_voices, then pass the chosen voice_id, text, and operation_id to synthesize_speech. MP3 is the default; output_format: "wav" selects WAV. Omit unspecified optional fields instead of sending empty strings.

The result contains a download link and MIME type. Links last up to 15 minutes; files are retained for 24 hours. Use get_audio_operation for a fresh link during retention. Treat the link as private. Optional return_audio: true also returns audio content for new results up to 2 MiB; recovery returns links.

Transcribe a file​

You need a shell or HTTP tool that can read the user's authorized audio file. A remote MCP server cannot read an arbitrary path on the user's computer.

  1. Read the filename and actual byte size. The maximum is 100 MiB.
  2. Call prepare_transcription with operation_id, filename, and size_bytes. Optional language and prompt must be omitted if unset.
  3. Use the returned method, upload_url, headers, and multipart_fields for the HTTP request, attaching the file under file_field. Send the file directly; do not stage it on another file-sharing service.
  4. Keep the transcript and operation ID. Do not print the upload credentials in chat or shell logs. The upload credential is single-use and expires after five minutes.

Do not pass audio_url or invent a transcribe_audio tool on the hosted server. If you have no file-capable shell or HTTP tool, explain that file transcription cannot be completed in the current client.

Recover without duplicate charges​

If the response is lost or times out, query get_audio_operation with the original ID. An unknown status does not establish that nothing ran or was billed. Do not automatically create a new operation or resend the file. Tell the user what is known and retain any request ID for support.

An uncertain synthesis failure can block new work in the same workspace for five minutes. Respect admission_blocked_until; it is not permission to retry a paid operation automatically. Disconnecting does not undo processing or charges.

Realtime audio is a separate integration​

These MCP tools return completed audio files and transcripts. Streamable HTTP does not mean live microphone capture or streaming playback, and connecting MCP does not change the agent's default voice provider.

Developers who intentionally need a local process can use the separate advanced stdio guide.

Copy prompt: connect my agent​

Connect Kitsch Labs hosted MCP to my agent.
Read https://www.kitschlabs.com/docs/en/for-agents#agent-mcp and follow path A and the client-specific MCP connection guide.
Check my client. For Codex or Claude Code, install kitsch@kitsch from KitschLabs/kitsch-plugins; for other clients, register https://mcp.kitschlabs.com/mcp.
Follow the migration steps for an existing manual Kitsch connection without leaving duplicate active connections.
Keep my existing MCP settings and add or update only Kitsch.
Let me complete Kitsch account sign-in, workspace selection, and consent in my browser. Do not ask for passwords or API keys in chat.
After connecting, discover the available tools and list voices. Run paid synthesis or transcription only when I request it.
Tell me which client is connected and what you actually verified.

B. Integrate the API into a service​

Use this path when you are writing code for the user's application or backend. Call the HTTP API from the service's backend. This path does not require installing the MCP package or changing the coding agent's MCP configuration.

Before implementation​

  1. Inspect the existing project, backend framework, and feature the user wants. Confirm whether they need file output or streaming before choosing an API.
  2. Read the matching public contract below for authentication, request fields, response formats, limits, and errors. Do not invent endpoints or parameters.
  3. Follow Account and API keys to obtain an active workspace API key. Have the user configure it through the project's existing server-side environment or secret management. Never put the key in chat, committed source, browser code, mobile bundles, or logs.
FeatureAPI documentation
Speech synthesisFile output · Streaming
Voice cloningFile output · Streaming
Speech recognitionFile transcription · Streaming
Noise reductionNoise Reduction API

If the service plays an LLM reply as it is generated, follow the Connect TTS to an LLM best practice for streaming text to TTS and playing PCM audio as it arrives.

Implementation and verification​

  1. Reuse the project's HTTP client and backend patterns to call https://api.kitschlabs.com with the xi-api-key header. Implement only the requested feature and connect the response to the application's existing flow.
  2. For speech synthesis, obtain an actual voice_id from GET /v1/voices. Handle audio or text responses according to the selected API contract.
  3. Handle errors and cancellation, and preserve the x-kitsch-request-id response header for troubleshooting without logging credentials. Do not automatically retry paid requests after an error or timeout; usage may already have been incurred.
  4. Run local checks with mocked responses first. Before a paid live test, agree on the input, number of requests, and spending limit with the user. See Pricing.
  5. Report what was implemented, which environment variables the user must set, and which checks passed. Clearly distinguish local checks from live API verification.

Copy prompt: integrate my service​

Integrate the Kitsch Labs HTTP API into the service I am developing.
Read https://www.kitschlabs.com/docs/en/for-agents#service-api and follow path B.
Inspect my project and confirm the audio feature and whether I need file output or streaming.
Use the matching public API documentation and my existing backend and HTTP client.
If the feature plays LLM replies as they are generated, follow https://www.kitschlabs.com/docs/en/voice-conversation.
I will configure the API key in server-side secrets. Do not ask for it in chat, print it, or expose it to the frontend.
Implement the requested feature, handle errors and cancellation, and verify locally with mocked responses.
Do not install MCP for this task. Agree with me on inputs, request count, and spending limit before any paid live test.
Tell me what changed, how to configure it, and what was actually tested.

The full documentation index is available at llms.txt.