Skip to content
Docs
GitHub

Create a new MCP server

Preview

Connect model providers, discover models and configure MCP servers, search providers and plugins.

Public APIEverruns Cloud and self-hosted Platform

POST/v1/mcp-servers

See authentication for credentials and permissions.

Media typeapplication/json

Request to create a new MCP server

object
api_key

API key for authentication (optional). Sent with each request; never echoed in responses.

string | null

Example

mcp-api-key-redacted-1234567890abcdef
auth_mode
One of:

Authentication mode. Defaults to api_key when api_key is provided, otherwise none. Example shape is defined on McpServerAuthMode.

string
Allowed values: none api_key oauth

Example

api_key
description

A human-readable description of what the MCP server provides.

string | null

Example

Atlassian MCP Server for Jira and Confluence
elicitation_policy
One of:

Elicitation modes the server may use. Defaults to url; url_and_form lets it ask structured questions, none stops it eliciting at all.

string
Allowed values: url url_and_form none

Example

url
headers

Additional HTTP headers for authentication.

object | null

Example

{
"X-Atlassian-Cloud-Id": "00000000-0000-0000-0000-000000000000"
}
name
required

The name of the MCP server. Must be unique.

string

Example

atlassian-mcp-server
protocol_mode
One of:

Protocol-era policy. Defaults to auto (negotiates every protocol era).

string
Allowed values: auto 2025-03-26 2025-06-18 2026-07-28

Example

auto
service_connection_provider

Connection provider whose connection on an agent’s service virtual user supplies the service credential (currently github: the agent’s GitHub App installation). Only allowed for MCP hosts that accept that provider’s tokens.

string | null

Example

github
tool_timeout_ms

How long one tool call may take, in milliseconds (1000 to 1800000). Defaults to 60000.

integer | null format: int64

Example

300000
transport_type

Transport type. Currently only “http” is supported. Example shape is defined on McpServerTransportType.

string
Allowed values: http stdio

Example

http
url
required

The URL of the MCP server endpoint.

string

Example

https://mcp.atlassian.com/v1/mcp

Responses

201MCP server created successfully

MCP server created successfully

Media typeapplication/json

Wrapper that adds API and UI links to a serialized resource.

Uses self_url (not url) for the API link to avoid collision with resources that already have a url field (e.g. McpServer). The allowed_actions array carries state-aware hypermedia links — empty (and omitted from the wire shape) until the underlying resource opts into the convention by overriding ResourceUrlable::allowed_actions.

object
api_key_set
required

Whether an API key has been configured.

boolean
archived_at

Timestamp when the MCP server was archived.

string | null format: date-time
auth_mode

Authentication mode for this MCP server.

string
Allowed values: none api_key oauth
connection_check
One of:

Whether this OAuth preset’s sign-in service was reachable when it was last checked. Present only on OAuth presets.

object
checked_at

When the check ran; absent when it has not run.

string | null format: date-time
host

Host of the request that failed, when the check failed.

string | null
reason

Short, safe explanation of a failed check.

string | null
status
required

Check outcome.

string
Allowed values: ready blocked_by_network_policy unreachable failed not_checked
created_at
required

Timestamp when the MCP server was created.

string format: date-time
deleted_at

Timestamp when the MCP server was deleted.

string | null format: date-time
description

Human-readable description of the MCP server.

string | null
elicitation_policy

Which elicitation modes this server may use (url by default).

string
Allowed values: url url_and_form none
headers

Additional HTTP headers for authentication. Keys are header names, values are header values.

object
key
additional properties
string
id
required

Unique identifier for the MCP server.

string
name
required

Display name of the MCP server.

string
oauth_provider_id

Stable provider id used for user-scoped OAuth connections.

string | null
presentation
One of:

Title, icon, and links published by the remote server. The operator name and description are unchanged.

object
description
string | null
documentation_url
string | null
fetched_at
string | null format: date-time
icons
Array<object>
object
mime_type
string | null
sizes
Array<string>
src
required

https URL on the MCP server’s origin, or a raster data: URI.

string
theme
One of:
string
Allowed values: light dark
sources

Which documents contributed. Not shown in the UI.

Array<string>
title
string | null
version
string | null
website_url
string | null
protocol_mode

Protocol-era adoption policy for the MCP client (auto negotiates).

string
Allowed values: auto 2025-03-26 2025-06-18 2026-07-28
service_connection_provider

Connection provider whose connection on an agent’s service virtual user supplies the service credential instead of an MCP OAuth grant.

string | null
status
required

Current lifecycle status of the MCP server.

string
Allowed values: active disabled archived deleted
tool_timeout_ms

How long one tool call may take, in milliseconds. Absent means the 60000 default.

integer | null format: int64
transport_type
required

Transport type (currently only HTTP supported).

string
Allowed values: http stdio
updated_at
required

Timestamp when the MCP server was last updated.

string format: date-time
url
required

URL of the MCP server endpoint.

string
allowed_actions

State-aware hypermedia actions the caller can take on this resource next (e.g. cancel, events, update). Omitted from the wire shape when empty so resources that haven’t opted into the convention don’t grow their payloads.

Array<object>

Agent-actionable link describing a follow-up the caller can take. Used in two contexts:

  • Error recovery — ErrorResponse.allowed_actions carries rels like retry, retry-later, unarchive, get-existing so the agent knows the right next call after a 4xx/429.
  • Entity hypermedia — WithUrls<T>.allowed_actions carries state-aware rels like cancel, events, self, update on the entity itself so the agent can follow links instead of reconstructing routes from prose.

The shape is intentionally identical across both contexts; the closed rel vocabulary distinguishes them.

object
hint

Short, agent-readable hint (e.g. “Shorten ‘name’ to <= 200 chars.”, “Cancel the active turn for this session.”).

string | null
href

Absolute (preferred) or relative URL the caller may invoke directly. Always present on entity hypermedia actions (WithUrls<T>.allowed_actions); optional on error-recovery actions (ErrorResponse.allowed_actions) where the matching operation_id is enough and the URI is implicit from the failed call.

string | null
method

HTTP method to use against href. Required for entity hypermedia actions; usually omitted on error-recovery actions where the same operation is retried with its original method.

string | null
operation_id

OpenAPI operationId the caller should invoke. Lets an MCP client resolve the call without parsing href.

string | null
rel
required

Link relation describing the action. Examples: self, cancel, pause, resume, events, retry, retry-later, unarchive, get-existing, delete, update.

string
schema_ref

OpenAPI $ref to the request-body schema, when the action takes one (e.g. #/components/schemas/UpdateSessionRequest). Lets a tool-calling agent fetch the input shape without scanning the whole spec.

string | null
self_url
required

Full API endpoint URL for this resource.

string
ui_link
required

Alias for view_url, used by command and MCP outputs.

string
view_url
required

Full UI URL for viewing this resource.

string

Example

{
"auth_mode": "none",
"connection_check": {
"host": "mcp.linear.app",
"status": "ready"
},
"description": "Atlassian MCP Server for Jira and Confluence",
"elicitation_policy": "url",
"id": "mcp_01933b5a00007000800000000000001",
"name": "atlassian-mcp-server",
"presentation": {
"icons": [
{
"theme": "light"
}
],
"title": "GitHub MCP Server",
"website_url": "https://github.com"
},
"protocol_mode": "auto",
"service_connection_provider": "github",
"status": "active",
"tool_timeout_ms": 300000,
"transport_type": "http",
"url": "https://mcp.atlassian.com/v1/mcp",
"allowed_actions": [
{
"method": "POST"
}
]
}
400Invalid input or duplicate name

Invalid input or duplicate name

Media typeapplication/json

Standard error response.

Wire shape is RFC 9457 Problem Details: every error response includes title and status, and may include detail, code, allowed_actions, retry_after_seconds, instance, and type. The content type is rewritten to application/problem+json with the application/problem+json content type.

object
allowed_actions

Recovery actions the caller can take next.

Array<object>

Agent-actionable link describing a follow-up the caller can take. Used in two contexts:

  • Error recovery — ErrorResponse.allowed_actions carries rels like retry, retry-later, unarchive, get-existing so the agent knows the right next call after a 4xx/429.
  • Entity hypermedia — WithUrls<T>.allowed_actions carries state-aware rels like cancel, events, self, update on the entity itself so the agent can follow links instead of reconstructing routes from prose.

The shape is intentionally identical across both contexts; the closed rel vocabulary distinguishes them.

object
hint

Short, agent-readable hint (e.g. “Shorten ‘name’ to <= 200 chars.”, “Cancel the active turn for this session.”).

string | null
href

Absolute (preferred) or relative URL the caller may invoke directly. Always present on entity hypermedia actions (WithUrls<T>.allowed_actions); optional on error-recovery actions (ErrorResponse.allowed_actions) where the matching operation_id is enough and the URI is implicit from the failed call.

string | null
method

HTTP method to use against href. Required for entity hypermedia actions; usually omitted on error-recovery actions where the same operation is retried with its original method.

string | null
operation_id

OpenAPI operationId the caller should invoke. Lets an MCP client resolve the call without parsing href.

string | null
rel
required

Link relation describing the action. Examples: self, cancel, pause, resume, events, retry, retry-later, unarchive, get-existing, delete, update.

string
schema_ref

OpenAPI $ref to the request-body schema, when the action takes one (e.g. #/components/schemas/UpdateSessionRequest). Lets a tool-calling agent fetch the input shape without scanning the whole spec.

string | null
code

Stable, machine-readable error code (snake_case).

string | null
detail

Human-readable explanation specific to this occurrence.

string | null
instance

Request URI for this occurrence.

string | null
retry_after_seconds

Seconds the caller should wait before retrying (429 / transient 503).

integer | null format: int32
status
required

HTTP status code; mirrors the response status line.

integer format: int32
title
required

Short, human-readable summary of the problem (e.g. “Not Found”).

string
type

RFC 9457 problem type URI. Optional; identifies the problem class.

string | null

Example

{
"allowed_actions": [
{
"method": "POST"
}
],
"code": "session_not_found",
"detail": "Session session_01933b5a000070008000000000000001 not found in org org_01933b5a000070008000000000000001.",
"instance": "/v1/sessions/session_01933b5a000070008000000000000001",
"retry_after_seconds": 30,
"status": 404,
"title": "Session not found",
"type": "https://everruns.com/docs/errors/session_not_found"
}
500Internal server error

Internal server error

Media typeapplication/json

Standard error response.

Wire shape is RFC 9457 Problem Details: every error response includes title and status, and may include detail, code, allowed_actions, retry_after_seconds, instance, and type. The content type is rewritten to application/problem+json with the application/problem+json content type.

object
allowed_actions

Recovery actions the caller can take next.

Array<object>

Agent-actionable link describing a follow-up the caller can take. Used in two contexts:

  • Error recovery — ErrorResponse.allowed_actions carries rels like retry, retry-later, unarchive, get-existing so the agent knows the right next call after a 4xx/429.
  • Entity hypermedia — WithUrls<T>.allowed_actions carries state-aware rels like cancel, events, self, update on the entity itself so the agent can follow links instead of reconstructing routes from prose.

The shape is intentionally identical across both contexts; the closed rel vocabulary distinguishes them.

object
hint

Short, agent-readable hint (e.g. “Shorten ‘name’ to <= 200 chars.”, “Cancel the active turn for this session.”).

string | null
href

Absolute (preferred) or relative URL the caller may invoke directly. Always present on entity hypermedia actions (WithUrls<T>.allowed_actions); optional on error-recovery actions (ErrorResponse.allowed_actions) where the matching operation_id is enough and the URI is implicit from the failed call.

string | null
method

HTTP method to use against href. Required for entity hypermedia actions; usually omitted on error-recovery actions where the same operation is retried with its original method.

string | null
operation_id

OpenAPI operationId the caller should invoke. Lets an MCP client resolve the call without parsing href.

string | null
rel
required

Link relation describing the action. Examples: self, cancel, pause, resume, events, retry, retry-later, unarchive, get-existing, delete, update.

string
schema_ref

OpenAPI $ref to the request-body schema, when the action takes one (e.g. #/components/schemas/UpdateSessionRequest). Lets a tool-calling agent fetch the input shape without scanning the whole spec.

string | null
code

Stable, machine-readable error code (snake_case).

string | null
detail

Human-readable explanation specific to this occurrence.

string | null
instance

Request URI for this occurrence.

string | null
retry_after_seconds

Seconds the caller should wait before retrying (429 / transient 503).

integer | null format: int32
status
required

HTTP status code; mirrors the response status line.

integer format: int32
title
required

Short, human-readable summary of the problem (e.g. “Not Found”).

string
type

RFC 9457 problem type URI. Optional; identifies the problem class.

string | null

Example

{
"allowed_actions": [
{
"method": "POST"
}
],
"code": "session_not_found",
"detail": "Session session_01933b5a000070008000000000000001 not found in org org_01933b5a000070008000000000000001.",
"instance": "/v1/sessions/session_01933b5a000070008000000000000001",
"retry_after_seconds": 30,
"status": 404,
"title": "Session not found",
"type": "https://everruns.com/docs/errors/session_not_found"
}