Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
OpenMCPInfo
from mcp_use.server.utils.openmcp import OpenMCPInfo
method init
Parameters
Signaturedef __init__(title: str, version: str | None = None, description: str | None = None):
OpenMCPResponse
from mcp_use.server.utils.openmcp import OpenMCPResponse
method init
Parameters
info
mcp_use.server.utils.openmcp.OpenMCPInfo
required
Parameter value
capabilities
mcp.types.ServerCapabilities
required
Parameter value
tools
list[mcp.types.Tool]
required
List of tools
resources
list[mcp.types.Resource]
required
List of items
resources_templates
list[mcp.types.ResourceTemplate]
required
List of items
prompts
list[mcp.types.Prompt]
required
List of items
Signaturedef __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]):
method to_dict
Convert to dictionary for JSON serialization.Returns
Signature
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
Parameters
The FastMCP server instance
Returns
returns
starlette.responses.JSONResponse
JSONResponse containing the OpenMCP server description
Signaturedef get_openmcp_json(server: MCPServer):