---
title: "POST /api/mcp/servers/{slug}/config"
method: POST
path: "/api/mcp/servers/{slug}/config"
tags: ["mcp"]
---

# POST /api/mcp/servers/{slug}/config

`POST /api/mcp/servers/{slug}/config`

## Path parameters

- `slug` string, required

## Request body

- object
  - `config` union, required
    - object
      - `transport` 'remote', required
      - `endpoint` string, required
      - `remoteTransport` 'streamable-http' | 'sse' | 'auto'
      - `queryParams` object, nullable
      - `headers` object, nullable
      - `authenticationTemplate` union[], required
        - union
          - object
            - `slug` string, required
            - `kind` 'none', required
          - object
            - `slug` string, required
            - `kind` 'apikey', required
            - `label` string, nullable
            - `placements` object[], required
              - …
          - object
            - `slug` string, required
            - `kind` 'oauth2', required
          - object
            - `slug` string, required
            - `kind` 'stdio_env', required
            - `vars` string[], required
    - object
      - `transport` 'stdio', required
      - `command` string, required
      - `args` string[], nullable
      - `env` object, nullable
      - `cwd` string, nullable
      - `versionNegotiation` 'legacy' | 'auto', nullable
      - `authenticationTemplate` union[], nullable
        - union
          - object
            - `slug` string, required
            - `kind` 'none', required
          - object
            - `slug` string, required
            - `kind` 'apikey', required
            - `label` string, nullable
            - `placements` object[], required
              - …
          - object
            - `slug` string, required
            - `kind` 'oauth2', required
          - object
            - `slug` string, required
            - `kind` 'stdio_env', required
            - `vars` string[], required

## Response `200`

Success

- object
  - `config` union, required
    - object
      - `transport` 'remote', required
      - `endpoint` string, required
      - `remoteTransport` 'streamable-http' | 'sse' | 'auto'
      - `queryParams` object, nullable
      - `headers` object, nullable
      - `authenticationTemplate` union[], required
        - union
          - object
            - `slug` string, required
            - `kind` 'none', required
          - object
            - `slug` string, required
            - `kind` 'apikey', required
            - `label` string, nullable
            - `placements` object[], required
              - …
          - object
            - `slug` string, required
            - `kind` 'oauth2', required
          - object
            - `slug` string, required
            - `kind` 'stdio_env', required
            - `vars` string[], required
    - object
      - `transport` 'stdio', required
      - `command` string, required
      - `args` string[], nullable
      - `env` object, nullable
      - `cwd` string, nullable
      - `versionNegotiation` 'legacy' | 'auto', nullable
      - `authenticationTemplate` union[], nullable
        - union
          - object
            - `slug` string, required
            - `kind` 'none', required
          - object
            - `slug` string, required
            - `kind` 'apikey', required
            - `label` string, nullable
            - `placements` object[], required
              - …
          - object
            - `slug` string, required
            - `kind` 'oauth2', required
          - object
            - `slug` string, required
            - `kind` 'stdio_env', required
            - `vars` string[], required

## Other responses

- `400` — McpConnectionError | McpToolDiscoveryError
- `500` — InternalError

---

[API](https://skmtc.net/executor/apis/executor-api.md) · [All operations](https://skmtc.net/executor/apis/executor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/executor/executor-api/revisions/c1ec5e355d44/schema)
