Skip to main content
GET
/
api
/
mcp
/
resource
curl -X GET "https://api.example.com/api/mcp/resource?id=mcp_abc123&uri=file:///data/config.json" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "result": {
    "uri": "file:///data/config.json",
    "mimeType": "application/json",
    "content": {
      "apiKey": "***",
      "environment": "production",
      "features": {
        "auth": true,
        "logging": true
      }
    }
  }
}

Query Parameters

id
string
required
MCP server ID
uri
string
required
Resource URI to read

Response

success
boolean
Whether the request was successful
result
object
Resource content and metadata. The structure depends on the resource type and may include fields like content, mimeType, and other resource-specific data.
curl -X GET "https://api.example.com/api/mcp/resource?id=mcp_abc123&uri=file:///data/config.json" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "result": {
    "uri": "file:///data/config.json",
    "mimeType": "application/json",
    "content": {
      "apiKey": "***",
      "environment": "production",
      "features": {
        "auth": true,
        "logging": true
      }
    }
  }
}