> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arclio.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

> Complete API documentation for MCP components

The MCP system provides comprehensive APIs through its components. Below is an overview of the available APIs:

## MCP Hub API

Core APIs for managing sessions, tools, resources, and prompts.

<CardGroup cols={2}>
  <Card title="Sessions" icon="plug" href="/api-reference/mcp-hub/sessions">
    Manage MCP server sessions
  </Card>

  <Card title="Tools" icon="wrench" href="/api-reference/mcp-hub/tools">
    Tool discovery and execution
  </Card>

  <Card title="Resources" icon="database" href="/api-reference/mcp-hub/resources">
    Resource management
  </Card>

  <Card title="Prompts" icon="comment-dots" href="/api-reference/mcp-hub/prompts">
    Prompt templates and management
  </Card>
</CardGroup>

## MCP Chatbot API

APIs for chat interface and AI interactions.

<CardGroup cols={2}>
  <Card title="Chat" icon="message" href="/api-reference/mcp-chatbot/chat">
    Chat and conversation management
  </Card>

  <Card title="Tools" icon="toolbox" href="/api-reference/mcp-chatbot/tools">
    Tool integration and usage
  </Card>

  <Card title="Resources" icon="folder-open" href="/api-reference/mcp-chatbot/resources">
    Resource access and management
  </Card>
</CardGroup>

## Common Patterns

### Authentication

Each component uses its own authentication method:

* **MCP Hub**: API key or token-based authentication
* **MCP Chatbot**: Inherits authentication from MCP Enterprise

### Response Format

All APIs follow a standard response format:

```json theme={null}
{
  "success": true,
  "data": {
    // Response data
  },
  "error": null
}
```

### Error Handling

Standard error format:

```json theme={null}
{
  "success": false,
  "data": null,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human readable error message"
  }
}
```

## OpenAPI Specifications

* [MCP Hub OpenAPI Spec](/api-reference/mcp-hub/openapi.json)
* [MCP Chatbot OpenAPI Spec](/api-reference/mcp-chatbot/openapi.json)
