Skip to content

List MCP connections

GET
/orgs/{orgId}/mcp-connections
curl --request GET \
--url https://example.com/api/v1/orgs/example/mcp-connections \
--cookie better-auth.session_token=<better-auth.session_token>

Lists active (non-revoked) MCP connections in the organization.

Requires a signed-in browser session; API tokens are rejected with 403.

orgId
required

Organization ID.

string

Active MCP connections

Media typeapplication/json
object
items
required
Array<object>

Active Model Context Protocol connection metadata.

object
bucketIds
required

Allowed bucket IDs, or null for an org-wide token that can access all buckets and org resources.

Any of:
Array<string>
createdAt
required
string
deliveries
required

Delivery modes this token is allowed to mint links with.

Array<string>
Allowed values: gated proxied
id
required
string
lastUsedAt
required
Any of:
string
maxTtlSeconds
required

Maximum lifetime in seconds for share links created by this token.

number
name
required
string
ownerIsYou
required
boolean
ownerName
required
string
secretTail
required

Last 6 characters of the bearer secret, or null for OAuth.

Any of:
string
auth
required

Authentication mode used by MCP clients for this connection.

string
Allowed values: bearer oauth
url
required

Streamable HTTP MCP endpoint URL for this connection.

string

Example

{
"items": [
{
"deliveries": [
"gated"
],
"auth": "bearer"
}
]
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}