Mcp server schema
See Management API schema for every domain, the endpoint and authentication.
Queries
mcpServer
Reads an MCP server. Null when no server has the ID.
Scope: ORGANIZATION_INTEGRATIONS_READ.
mcpServer(input: McpServerInput!): McpServer @authMutations
mcpServerRegister
Registers a third-party MCP server to a project.
Scope: ORGANIZATION_INTEGRATIONS_CREATE.
mcpServerRegister(input: McpServerRegisterInput!): McpServerRegisterPayload! @auth(only: USER)mcpServerUpdate
Renames an MCP server.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
mcpServerUpdate(input: McpServerUpdateInput!): McpServerUpdatePayload! @auth(only: USER)mcpServerUrlSet
Replaces an MCP server's URL. Of the URL, the result shows only urlDisplay. A URL on another
origin (scheme, host and port) removes the auth header unless authHeader supplies one;
hasAuthHeaderValue in the result shows whether the server holds one.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
mcpServerUrlSet(input: McpServerUrlSetInput!): McpServerUrlSetPayload! @auth(only: USER)mcpServerAuthHeaderSet
Sets or replaces the auth header sent to an MCP server.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
mcpServerAuthHeaderSet(input: McpServerAuthHeaderSetInput!): McpServerAuthHeaderSetPayload! @auth(only: USER)mcpServerAuthHeaderClear
Removes an MCP server's auth header. Succeeds when the server has none.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
mcpServerAuthHeaderClear(input: McpServerAuthHeaderClearInput!): McpServerAuthHeaderClearPayload! @auth(only: USER)mcpServerDelete
Deletes an MCP server with its stored URL and auth header. Cannot be undone; an unknown ID returns
NOT_FOUND.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
mcpServerDelete(input: McpServerDeleteInput!): McpServerDeletePayload! @authTypes
McpServer
"""
A third-party Model Context Protocol server registered to a project. The API stores its full URL
and auth header value encrypted and never returns them.
"""
type McpServer {
"""The ID of the MCP server."""
id: ID!
"""The ID of the project the server belongs to."""
projectId: ID!
"""The name of the server."""
name: String!
"""
The server's URL with every query value replaced by `***` and the fragment removed, such as
`https://example.com/mcp?token=***`.
"""
urlDisplay: String!
"""The name of the auth header. Null when none is set."""
authHeaderName: String
"""Whether an auth header value is set."""
hasAuthHeaderValue: Boolean!
"""When the server was registered."""
createdAt: DateTime!
"""When the server last changed."""
updatedAt: DateTime!
}McpServerEdge
"""An MCP server in a page of results."""
type McpServerEdge {
"""The cursor of this edge."""
cursor: String!
"""The MCP server."""
node: McpServer!
}McpServerConnection
"""A page of MCP servers."""
type McpServerConnection {
"""The edges in this page."""
edges: [McpServerEdge!]!
"""Where this page sits in the list."""
pageInfo: PageInfo!
"""The total number of MCP servers in the project."""
totalCount: Int!
}McpAuthHeaderInput
"""The auth header sent with every request to an MCP server."""
input McpAuthHeaderInput {
"""
The header name. Defaults to `authorization`. At most 64 characters, with no spaces or separators,
and not a header the transport sets, such as `Host` or `Cookie`.
"""
name: String
"""
The header value, stored encrypted. At most 4096 bytes after trimming, with no control characters.
"""
value: String!
}McpServerInput
"""The input of `mcpServer`."""
input McpServerInput {
"""The ID of the MCP server."""
id: ID!
}McpServerRegisterInput
"""The input of `mcpServerRegister`."""
input McpServerRegisterInput {
"""The ID of the project to register the server to."""
projectId: ID!
"""The name of the server. Must not be blank."""
name: String!
"""
The server's URL, stored encrypted, so its query may carry secrets. Must use `http` or `https` on
the default port, carry no user info, and resolve to a public address.
"""
url: String!
"""The auth header to send. Null for none."""
authHeader: McpAuthHeaderInput
}McpServerUpdateInput
"""The input of `mcpServerUpdate`. Every field is required."""
input McpServerUpdateInput {
"""The ID of the MCP server."""
id: ID!
"""The new name. Must not be blank."""
name: String!
}McpServerUrlSetInput
"""The input of `mcpServerUrlSet`."""
input McpServerUrlSetInput {
"""The ID of the MCP server."""
id: ID!
"""The new URL, held to the rules of `McpServerRegisterInput.url`."""
url: String!
"""
The auth header to store with the URL, replacing the server's current one. Null keeps the current
header when the URL stays on the same origin and removes it when the URL moves to another.
"""
authHeader: McpAuthHeaderInput
}McpServerAuthHeaderSetInput
"""The input of `mcpServerAuthHeaderSet`."""
input McpServerAuthHeaderSetInput {
"""The ID of the MCP server."""
id: ID!
"""
The header name, held to the rules of `McpAuthHeaderInput.name`. Defaults to `authorization`.
"""
name: String
"""The header value, held to the rules of `McpAuthHeaderInput.value`."""
value: String!
}McpServerAuthHeaderClearInput
"""The input of `mcpServerAuthHeaderClear`."""
input McpServerAuthHeaderClearInput {
"""The ID of the MCP server."""
id: ID!
}McpServerDeleteInput
"""The input of `mcpServerDelete`."""
input McpServerDeleteInput {
"""The ID of the MCP server."""
id: ID!
}McpServerRegisterPayload
"""The result of `mcpServerRegister`."""
type McpServerRegisterPayload {
"""The registered MCP server."""
mcpServer: McpServer
}McpServerUpdatePayload
"""The result of `mcpServerUpdate`."""
type McpServerUpdatePayload {
"""The updated MCP server."""
mcpServer: McpServer
}McpServerUrlSetPayload
"""The result of `mcpServerUrlSet`."""
type McpServerUrlSetPayload {
"""The updated MCP server."""
mcpServer: McpServer
}McpServerAuthHeaderSetPayload
"""The result of `mcpServerAuthHeaderSet`."""
type McpServerAuthHeaderSetPayload {
"""The updated MCP server."""
mcpServer: McpServer
}McpServerAuthHeaderClearPayload
"""The result of `mcpServerAuthHeaderClear`."""
type McpServerAuthHeaderClearPayload {
"""The updated MCP server."""
mcpServer: McpServer
}McpServerDeletePayload
"""The result of `mcpServerDelete`."""
type McpServerDeletePayload {
"""Whether the server was deleted."""
success: Boolean!
}