API Reference¶
This section contains API documentation for Thoth.
HTTP API¶
Quick Links:
Interactive API Docs (Swagger/ReDoc) - Try out endpoints
OpenAPI Specification (YAML)
Endpoints Summary¶
MCP Server (thoth-mcp-server)
Endpoint |
Method |
Description |
|---|---|---|
|
GET |
Root health check |
|
GET |
Detailed health status |
|
GET |
SSE connection for MCP protocol |
|
POST |
MCP message handling |
Ingestion Worker (thoth-ingestion-worker)
Endpoint |
Method |
Description |
|---|---|---|
|
GET/POST |
Health check |
|
POST |
Clone repository to GCS |
|
POST |
Trigger parallel ingestion |
|
POST |
Process file batch |
Python API¶
Auto-generated documentation from source code docstrings.
Module Overview¶
Ingestion Pipeline (thoth.ingestion)
pipeline- Main orchestratorchunker- Document chunkingrepo_manager- Repository managementworker- HTTP worker endpointsgitlab_api- GitLab API client
MCP Server (thoth.mcp)
server.server- MCP protocol handlerhttp_wrapper- HTTP/SSE transport
Shared Utilities (thoth.shared)
vector_store- LanceDB wrapperembedder- Embedding generationcli- Command-line interfacescheduler- Scheduled taskshealth- Health checksgcs_sync- GCS synchronization
MCP Tools¶
The MCP server exposes these tools to AI assistants:
Tool |
Description |
|---|---|
|
Connectivity test |
|
Semantic search with optional filtering |
|
Retrieve full section content |
|
List available topics |
|
Recent documentation changes |
See MCP Server Architecture for detailed tool specifications.