Documentation Index
Fetch the complete documentation index at: https://docs.runalloy.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Create Server
Creates a new MCP server instance.
Headers:
Authorization: Bearer YOUR_API_KEY # Required
x-alloy-userid: YOUR_USER_ID # Optional (defaults to API key's user)
Content-Type: application/json # Required for POST/PUT
Request Body:
{
"name": "string",
"description": "string",
"tokenExpiresInDays": number,
"restrictions": {
"connectors": {
"mode": "allowlist" | "blocklist",
"allowedIds": ["string"],
"blockedIds": ["string"]
},
"actions": {
"mode": "allowlist" | "blocklist",
"allowedActions": ["string"],
"blockedActions": ["string"]
},
"users": {
"mode": "allowlist" | "blocklist",
"allowedIds": ["string"],
"blockedIds": ["string"]
}
}
}
Response:
{
"serverId": "my-server-a1b2c3d4",
"name": "My Server",
"description": "Server description",
"mode": "connectivity",
"accessToken": "mcp_token_xyz789",
"url": "https://mcp.runalloy.com/mcp/my-server-a1b2c3d4",
"accessUrl": "https://mcp.runalloy.com/mcp/my-server-a1b2c3d4/mcp_token_xyz789",
"restrictions": {},
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
List Servers
Lists all servers for the authenticated user.
Headers:
Authorization: Bearer YOUR_API_KEY # Required
x-alloy-userid: YOUR_USER_ID # Optional (defaults to API key's user)
Response:
{
"servers": [
{
"serverId": "production-server-a1b2c3d4",
"name": "Production Server",
"description": "Main production MCP server",
"url": "https://mcp.runalloy.com/mcp/production-server-a1b2c3d4",
"accessUrl": "https://mcp.runalloy.com/mcp/production-server-a1b2c3d4/mcp_token_xyz789",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"count": 15
}
Get Server
Retrieves details for a specific server.
GET /api/servers/:serverId
Headers:
Authorization: Bearer YOUR_API_KEY # Required
x-alloy-userid: YOUR_USER_ID # Optional (defaults to API key's user)
Response:
{
"serverId": "production-server-a1b2c3d4",
"name": "Production Server",
"description": "Main production MCP server",
"url": "https://mcp.runalloy.com/mcp/production-server-a1b2c3d4",
"accessUrl": "https://mcp.runalloy.com/mcp/production-server-a1b2c3d4/mcp_token_xyz789",
"hasRestrictions": true,
"restrictions": {
"connectors": {
"mode": "allowlist",
"allowedIds": ["slack", "hubspot"]
}
},
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
Update Server
Updates server configuration.
PUT /api/servers/:serverId
Headers:
Authorization: Bearer YOUR_API_KEY # Required
x-alloy-userid: YOUR_USER_ID # Optional (defaults to API key's user)
Content-Type: application/json # Required for POST/PUT
Request Body:
{
"name": "string",
"description": "string",
"restrictions": {}
}
Response:
{
"serverId": "production-server-a1b2c3d4",
"name": "Updated Server Name",
"description": "Updated description",
"updatedAt": "2024-01-01T00:00:00Z"
}
Delete Server
Deletes a server and all associated data.
DELETE /api/servers/:serverId
Headers:
Authorization: Bearer YOUR_API_KEY # Required
x-alloy-userid: YOUR_USER_ID # Optional (defaults to API key's user)
Response:
{
"message": "Server deleted",
"serverId": "production-server-a1b2c3d4"
}
Error Responses:
401 Unauthorized - Invalid or missing authentication
403 Forbidden - Not authorized to delete this server
404 Not Found - Server not found