mcp-c6

v0.1.0-alpha.4
io.github.codespar/mcp-c6 Checked 2 days ago Published 2 months ago

DEPRECATED: no live endpoint (baas.c6bank.com.br does not resolve)

Values you need

VariableWhat it is
C6_CLIENT_IDrequired C6 OAuth client_id issued via the Developer Portal after contract onboarding.
C6_CLIENT_SECRETrequired secret C6 OAuth client_secret.
C6_CERT_PATHrequired Absolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2.
C6_KEY_PATHrequired secret Absolute path to the mTLS private key (.key or .pem).
C6_ENVoptional Environment: 'sandbox' or 'production'. Defaults to 'sandbox'.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-c6 -e 'C6_CERT_PATH=<C6_CERT_PATH>' -e 'C6_CLIENT_ID=<C6_CLIENT_ID>' -e 'C6_CLIENT_SECRET=<C6_CLIENT_SECRET>' -e 'C6_KEY_PATH=<C6_KEY_PATH>' -- npx -y @codespar/mcp-c6@0.1.0-alpha.4
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-c6": {
      "args": [
        "-y",
        "@codespar/mcp-c6@0.1.0-alpha.4"
      ],
      "command": "npx",
      "env": {
        "C6_CERT_PATH": "<C6_CERT_PATH>",
        "C6_CLIENT_ID": "<C6_CLIENT_ID>",
        "C6_CLIENT_SECRET": "<C6_CLIENT_SECRET>",
        "C6_KEY_PATH": "<C6_KEY_PATH>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-c6": {
      "args": [
        "-y",
        "@codespar/mcp-c6@0.1.0-alpha.4"
      ],
      "command": "npx",
      "env": {
        "C6_CERT_PATH": "<C6_CERT_PATH>",
        "C6_CLIENT_ID": "<C6_CLIENT_ID>",
        "C6_CLIENT_SECRET": "<C6_CLIENT_SECRET>",
        "C6_KEY_PATH": "<C6_KEY_PATH>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "C6_CERT_PATH",
      "id": "c6-cert-path",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "C6_CLIENT_ID",
      "id": "c6-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "C6_CLIENT_SECRET",
      "id": "c6-client-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "C6_KEY_PATH",
      "id": "c6-key-path",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-c6": {
      "args": [
        "-y",
        "@codespar/mcp-c6@0.1.0-alpha.4"
      ],
      "command": "npx",
      "env": {
        "C6_CERT_PATH": "${input:c6-cert-path}",
        "C6_CLIENT_ID": "${input:c6-client-id}",
        "C6_CLIENT_SECRET": "${input:c6-client-secret}",
        "C6_KEY_PATH": "${input:c6-key-path}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-c6]
command = "npx"
args = ["-y", "@codespar/mcp-c6@0.1.0-alpha.4"]
env = { "C6_CERT_PATH" = "<C6_CERT_PATH>", "C6_CLIENT_ID" = "<C6_CLIENT_ID>", "C6_CLIENT_SECRET" = "<C6_CLIENT_SECRET>", "C6_KEY_PATH" = "<C6_KEY_PATH>" }

For AI agents

  1. Ask the user for: C6_CLIENT_ID, C6_CLIENT_SECRET, C6_CERT_PATH, C6_KEY_PATH. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_oauth_token, create_pix_cob, get_pix_cob, list_pix_cob, create_pix_cobv, get_pix_cobv, resolve_dict_key, register_pix_key, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json