MCP Server Module

The Model Context Protocol (MCP) server module provides the core server implementation.

Server Module

Thoth MCP Server - Main remote MCP server implementation.

This module provides the core Model Context Protocol (MCP) server that enables remote tool and resource access.

class thoth.mcp_server.server.ThothMCPServer(name: str = 'thoth-server', version: str = '1.0.0')[source]

Bases: object

Main Thoth MCP Server implementation.

__init__(name: str = 'thoth-server', version: str = '1.0.0')[source]

Initialize the Thoth MCP Server.

Parameters:
  • name – Server name identifier

  • version – Server version

async run() None[source]

Run the MCP server with stdio transport.

async thoth.mcp_server.server.invoker() None[source]

Main entry point for the MCP server.

thoth.mcp_server.server.run_server() None[source]

Synchronous entry point for running the server.

Classes

ThothMCPServer

class thoth.mcp_server.server.ThothMCPServer(name: str = 'thoth-server', version: str = '1.0.0')[source]

Bases: object

Main Thoth MCP Server implementation.

__init__(name: str = 'thoth-server', version: str = '1.0.0')[source]

Initialize the Thoth MCP Server.

Parameters:
  • name – Server name identifier

  • version – Server version

async run() None[source]

Run the MCP server with stdio transport.

Functions

async thoth.mcp_server.server.invoker() None[source]

Main entry point for the MCP server.

thoth.mcp_server.server.run_server() None[source]

Synchronous entry point for running the server.

Package Contents

Thoth MCP Server package.

class thoth.mcp_server.ThothMCPServer(name: str = 'thoth-server', version: str = '1.0.0')[source]

Bases: object

Main Thoth MCP Server implementation.

__init__(name: str = 'thoth-server', version: str = '1.0.0')[source]

Initialize the Thoth MCP Server.

Parameters:
  • name – Server name identifier

  • version – Server version

async run() None[source]

Run the MCP server with stdio transport.

async thoth.mcp_server.invoker() None[source]

Main entry point for the MCP server.

thoth.mcp_server.run_server() None[source]

Synchronous entry point for running the server.