View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/server/utils/openmcp.py
OpenMCPInfo
from mcp_use.server.utils.openmcp import OpenMCPInfo
OpenMCPResponse
from mcp_use.server.utils.openmcp import OpenMCPResponse
method init
ParametersSignatureParameter valueParameter valueList of toolsList of itemsList of itemsList of items
def __init__(info: mcp_use.server.utils.openmcp.OpenMCPInfo, capabilities: mcp.types.ServerCapabilities, tools: list[mcp.types.Tool], resources: list[mcp.types.Resource], resources_templates: list[mcp.types.ResourceTemplate], prompts: list[mcp.types.Prompt]):
get_openmcp_json
function get_openmcp_json
Generate OpenMCP JSON response for a FastMCP server.from mcp_use.server.utils.openmcp import get_openmcp_json
ReturnsThe FastMCP server instance
SignatureJSONResponse containing the OpenMCP server description
def get_openmcp_json(server: MCPServer):