thoth.mcp_server.server

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.

Functions

invoker()

Main entry point for the MCP server.

run_server()

Synchronous entry point for running the server.

setup_logger(name[, level, simple])

Creates and configures a secure logger with automatic sensitive data redaction.

stdio_server([stdin, stdout])

Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

Server(name, version, instructions, ...)

TextContent(*, type, text[, annotations, _meta])

Text content for a message.

ThothMCPServer([name, version])

Main Thoth MCP Server implementation.

Tool(*, name[, title, description, ...])

Definition for a tool the client can call.

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.