Authorization: Bearer ********************Authorization: Bearer ********************curl --location '/api/mcp-servers?project_id=undefined' \
--header 'X-Session-Id;' \
--header 'Accept-Language;' \
--header 'Content-Type: application/json' \
--data '{
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"custom_auth_mode": "mcp_oauth",
"auth_token": "token_example",
"auth_headers": [
{
"name": "X-API-Key",
"value": "token_example"
}
],
"name": "StreamVI - рабочий сервер",
"url": "http://localhost:8791/sse",
"description": "MCP сервер для аналитики StreamVi",
"is_active": true,
"mcp_server_template_id": "550e8400-e29b-41d4-a716-446655440000",
"description_prepend": "Работать только с рабочим проектом.",
"custom_query_params": {
"projectId": "project_777"
},
"auth_mode": "project",
"meta": {
"type": "analytics",
"tags": [
"streaming"
]
}
}'{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "My MCP Server",
"template_name": "StreamVI",
"url": "http://localhost:8791/sse",
"description": "Production server",
"avatar_url": "https://avatars-ai.senler.ru/mcp-server-templates/550e8400.jpg",
"has_auth_token": true,
"custom_auth_mode": "none",
"is_installed": true,
"auth_mode": "project",
"project_connected_auth_method": "manual",
"supports_project_manual_credential": true,
"manual_auth_headers": [
{
"name": "X-API-Key",
"label": "API key",
"description": "Paste the API key from your MCP provider account",
"required": true,
"secret": true,
"value_prefix": "Bearer "
}
],
"supports_project_oauth_credential": true,
"has_project_credential": true,
"project_credential_validation_status": "unknown",
"project_credential_validation_error": "string",
"project_credential_validated_at": "2019-08-24T14:15:22.123Z",
"project_credential_connected_identity": {
"type": "project",
"name": "Основной проект",
"external_id": "12345",
"avatar_url": "https://example.com/avatar.png",
"provider": "streamvi"
},
"meta": {
"region": "eu",
"version": "1.0",
"tags": [
"analytics"
]
},
"custom_query_params": {},
"has_knowledge_base": true,
"knowledge_base_count": 5,
"is_active": true,
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"app_id": "streamvi",
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}
}