API Reference
Complete reference for the Fenceline MCP Server API endpoints and methods.
Base URL
https://mcp.fenceline.ai
Authentication
All API requests require authentication using an API key in the request header:
X-API-Key: YOUR_API_KEY
JSON-RPC Endpoint
URL: POST /mcp/rpc
Execute MCP tools using JSON-RPC 2.0 protocol.
Request Format
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "tool_name",
"arguments": {}
}
}
Response Format
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "Tool response data"
}
]
}
}
Discovery Endpoints
Server Information
URL: GET /
Returns comprehensive server information and capabilities.
Tools Catalog
URL: GET /mcp/tools.json
Returns complete catalog of available MCP tools with examples.
OpenAPI Specification
URL: GET /mcp/openapi.json
Returns OpenAPI 3.0 specification for the entire API.
Server Discovery
URL: GET /mcp/.well-known/mcp-server.json
Machine-readable server discovery endpoint for MCP aggregators.
Health and Status
Health Check
URL: GET /health
Returns server health status and uptime information.
MCP Info
URL: GET /mcp/info
Detailed information about MCP transports and capabilities.
Error Handling
The API uses standard HTTP status codes and JSON-RPC error responses:
HTTP Status Codes
200
- Success400
- Bad Request401
- Unauthorized429
- Rate Limit Exceeded500
- Internal Server Error
JSON-RPC Errors
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32600,
"message": "Invalid Request",
"data": "Additional error information"
}
}
Rate Limiting
The API implements rate limiting to ensure fair usage:
- Tool Calls: 100 requests per minute per API key
- Discovery Endpoints: 1000 requests per minute
- Rate Limit Headers: Included in responses
Interactive Testing
Use our Interactive Console to test API calls in real-time.