Documentation

MCP integration guide

Connect Atomelody to your AI agent with a copyable setup prompt, client configuration examples, and connection verification steps.

Documentation contents

MCP lets your AI agent discover and call Atomelody tools. You can send the prompt below to your agent and ask it to configure the connection, without learning the configuration file format yourself.

This guide covers installation, authentication, and connection verification.

Ask your agent to connect

  1. Create or prepare a valid key on the platform's API Keys page.
  2. Copy the prompt below and send it to the agent you want to connect.
  3. Follow its instructions to enter the key through the client's secret settings or a local hidden input, then verify the connection.

The prompt contains no API key; do not add one to it. An agent with permission to edit local configuration can help write the configuration. An agent without access to client settings should guide you through the manual steps.

The WorkBuddy desktop application requires you to manually add, trust, and start a new connector. Follow the WorkBuddy section below; your agent can provide the configuration example and instructions.

Help me add Atomelody MCP to the agent tool I am currently using.

First read the official setup guide:
https://www.atomelody.com/en/docs/api/mcp.md

Complete these steps:
1. Identify the current client, its runtime environment, and available configuration capabilities.
   Ask only for missing information. Do not guess configuration paths or mistake a temporary execution environment for the client's environment.
2. Choose the client-specific configuration method in the guide and complete authorized automatic steps.
   If I need to edit a file manually, first open it in this tool's local editor
   and point out the fields to change. If that is unavailable, provide a clickable file link
   supported by the current client; otherwise give the full path and opening instructions.
3. Name the service atomelody-mcp. Preserve existing MCP configuration. If it already exists,
   inspect and reuse it rather than adding a duplicate.
4. Configure the API key through supported secret storage, environment references, or personal configuration.
   Guide me to enter the key locally. Do not ask me to paste it
   into chat, echo it, or write it to project source, version control, or logs.
5. Confirm that this agent can discover Atomelody tools and call get_capabilities
   to verify the connection. Only verify connectivity; do not create or cancel tasks.
6. If reconnecting, reloading, or starting a new session is required, state the next step clearly.
   Do not claim success before verification. Explain permission or compatibility limits honestly and provide manual steps.

After setup, briefly report the verification result and available functions, then wait for my next instruction.

Connection details

SettingValue
Suggested service nameatomelody-mcp
Endpointhttps://api.atomelody.com/mcp
TransportStreamable HTTP
AuthenticationHTTP header Authorization: Bearer ak_...
Suggested environment variableATOMELODY_API_KEY, containing the complete ak_... without the Bearer prefix
Verification toolget_capabilities with {}

This is a remote service; no Atomelody server installation is needed on your machine. The client must support Streamable HTTP and custom authentication headers. Configuration formats differ between clients.

Every MCP request requires a valid API key, including initialization and tool discovery. This integration uses API keys and does not provide OAuth authorization. A platform browser session or JWT cannot replace an API key.

Use /mcp, without the REST API's /v1 prefix and without changing it to /sse. The client sends MCP protocol messages; they do not use the REST API response envelope.

Agent setup steps

Locate the configuration

Inspect the client and its existing MCP configuration. Determine whether it runs on the user's machine, in a remote development environment, or in a hosted environment. Being able to execute commands does not imply access to the actual client's settings.

Prefer the client's supported settings or management commands. Before editing a file, inspect its contents and merge atomelody-mcp into the existing structure, preserving other servers and settings. Do not overwrite the whole file with an example. If that service name exists, check its endpoint, credential reference, and enabled state instead of adding a duplicate.

User-level configuration is usually suitable. Use project-level configuration when the user explicitly wants it limited to one project. The Claude Code example below uses the project-scoped environment reference documented by that client and states its scope explicitly.

If organization policy controls the client or the agent lacks configuration permission, explain where the user must act; do not bypass the client's permission requirements.

Open files that require manual editing

When the user must enter a key or edit configuration, first complete the automatic preparation. Then use the client's file-opening capability to open the actual file in the tool's local editor, ideally at the field or line to change, so the user can edit and save it directly.

If direct opening is unavailable, provide a clickable local file link supported by the current client, rather than only a filename in a code block. Link to a verified configuration file, resolve ~ against the target client's user directory, and use the full path. Include a line number where supported. Do not invent client-specific link schemes or confuse remote or temporary execution paths with paths on the user's machine.

Briefly identify the placeholder to replace, the formatting to retain, and the next step after saving. Opening a file for editing does not mean printing its contents into chat. Do not echo existing keys or ask the user to paste the complete edited file. If neither opening nor file links are supported, provide the full path and the shortest manual opening instructions.

Configure credentials

Prefer an existing ATOMELODY_API_KEY that the client can read, or supported secret storage. Check only whether the key exists, without printing its value. If absent, direct the user to API Keys and have them enter the key through the client secret input or a local hidden input.

The environment variable must be visible to the process running the MCP connection. A variable set in a terminal may not be visible to an application launched from a desktop icon. Setting it in an agent subprocess does not alter an already running parent process. Configure it using the client and operating system's supported method and restart the client if needed. Do not assume a project .env file is loaded automatically.

Use the API key only for authenticated requests to https://api.atomelody.com. Do not put it in URLs, setup prompts, chat replies, or diagnostic logs. If the client only supports keys in configuration files, guide the user to enter it in personal configuration outside version control and restrict file read permissions.

Apply and verify

  1. Enable the server, reconnect, or reload configuration as the client requires. If this session cannot load new tools, explain that verification must continue in a new session.
  2. Confirm MCP initialization and tool discovery have completed and that the current agent can see Atomelody's get_capabilities.
  3. Call get_capabilities through this agent's MCP tools with {}. It only reads supported models, input types, and limits; it does not create tasks.
  4. Report the connection state and available functions after success. On failure, identify the stage and next step without exposing credentials or authentication headers.

Creating a configuration file, connecting from a separate script, or sending one HTTP request does not establish that the current agent is connected. If a restart is still required, report that configuration is ready and verification is pending a restart.

Common client configurations

These examples use environment references or placeholders, never real keys. For clients using environment variables, ensure the target client can read ATOMELODY_API_KEY as described above. WorkBuddy does not resolve environment variables; enter the key manually in its Add MCP interface. Preserve existing configuration when merging.

Codex

Merge this into the user configuration at ~/.codex/config.toml. If a custom configuration directory is set, use the actual file:

[mcp_servers.atomelody-mcp]
url = "https://api.atomelody.com/mcp"
bearer_token_env_var = "ATOMELODY_API_KEY"

Set bearer_token_env_var to the environment variable's name. Codex reads its value and builds the Bearer header. Do not put the actual key in that field or paste another client's JSON configuration into TOML.

After applying the configuration, check MCP status and call the verification tool as described above. If a new session is required, complete verification there.

Reference: OpenAI MCP documentation.

Claude Code

This project-scoped configuration belongs in .mcp.json at the target project's root and applies only to that project:

{
  "mcpServers": {
    "atomelody-mcp": {
      "type": "http",
      "url": "https://api.atomelody.com/mcp",
      "headers": {
        "Authorization": "Bearer ${ATOMELODY_API_KEY}"
      }
    }
  }
}

Keep the environment reference in the example for Claude Code to resolve. Do not substitute the real key when generating the file. Start Claude Code from an environment that can read the variable, check the connection through /mcp, and enable project MCP when prompted.

For use across projects, follow the current official documentation for user-level configuration or management commands. Do not treat a project-level file path as a user-level path.

Reference: Claude Code MCP documentation.

Cursor

Merge this into the user configuration at ~/.cursor/mcp.json:

{
  "mcpServers": {
    "atomelody-mcp": {
      "url": "https://api.atomelody.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:ATOMELODY_API_KEY}"
      }
    }
  }
}

Cursor uses ${env:VARIABLE_NAME} for environment references. For project-only use, place it at .cursor/mcp.json in the project root. Do not use envFile for remote HTTP configuration; it is intended for local stdio services.

After applying the configuration, check that the server is enabled and that connection and tool discovery succeeded, then have the agent call the verification tool.

Reference: Cursor MCP documentation.

WorkBuddy

The WorkBuddy desktop application calls MCP services connectors. Newly added services require manual trust and startup, so add the service in the desktop interface. The agent should provide the following configuration and instructions.

  1. Open Connectors.
  2. Select Custom connector at the top right, then Add MCP.
  3. Paste the atomelody-mcp configuration below.
  4. Replace ak_REPLACE_WITH_YOUR_KEY with your complete API key, preserving the preceding Bearer . WorkBuddy does not resolve environment variables; enter the key directly rather than using a variable reference.
  5. Save and return to the MCP list, where atomelody-mcp should appear.
  6. Select Trust for that service. After trusting and starting it, the interface should show that all n/n tools are enabled (n is the actual tool count), indicating that configuration is complete.
{
  "mcpServers": {
    "atomelody-mcp": {
      "type": "http",
      "url": "https://api.atomelody.com/mcp",
      "headers": {
        "Authorization": "Bearer ak_REPLACE_WITH_YOUR_KEY"
      }
    }
  }
}

Enter the real key only in WorkBuddy's configuration interface. Do not paste the completed configuration into chat or commit it to version control.

Saving alone does not complete setup. If the connector is not trusted or its tools are not enabled, ask the user to finish the steps above. Once configuration is complete, the agent must call get_capabilities with {} to verify that this session can use the tools.

Other agent tools

Follow the client's official documentation to add a remote Streamable HTTP service with the endpoint and authentication header above. Confirm support for custom headers and credential reference syntax rather than copying another client's example unchanged.

If the interface separates authentication type and token, select Bearer and enter only ak_.... If it asks for the complete Authorization header value, enter Bearer ak_....

Clients that support only OAuth, only local stdio, or no user-added MCP services cannot use this configuration directly. A web-chat agent may not have permission to change its host's connection settings; direct the user to the client's settings. Browser frontend calls require additional cross-origin support and are outside this integration method.

Troubleshooting

SymptomWhat to check
HTTP 401 or authentication failureCheck whether the key is valid or revoked, the client can read the variable, and the header contains exactly one Bearer prefix. Do not print keys while troubleshooting.
HTTP 403 or rejected OriginCheck whether the client sends an Origin and whether organization policies apply. Contact support to confirm allowed origins when needed; do not spoof origins to bypass checks.
HTTP 404Verify the endpoint is https://api.atomelody.com/mcp. If correct but unavailable, ask platform support to check service status.
HTTP 405 when opening the URL in a browser or sending a plain GETThis is not an MCP connection test. Use a Streamable HTTP client for initialization and tool discovery.
OAuth sign-in errorThis service uses API keys. Check support for custom authentication headers; a website session is not an MCP credential.
Environment variable not foundEnsure it is visible to the actual client process and restart if needed. Check that the reference syntax belongs to this client.
Configuration saved, but tools are invisible to the agentCheck the file location, configuration scope, enabled state, and whether a reload or new session is needed.
WorkBuddy configured, but connector unavailableReturn to the MCP list, trust atomelody-mcp, and confirm all n/n tools are enabled. Replace the placeholder with a real API key; WorkBuddy does not resolve environment variables.
Timeout or network errorCheck networking, proxies, and domain access in the client's environment. Retain redacted diagnostics and do not report a timeout as success.

For troubleshooting, provide the client name and version, operating system, failed stage, and redacted error details. Do not provide an API key or a complete authentication header.