Skip to main content

OpenMCPInfo

from mcp_use.server.utils.openmcp import OpenMCPInfo

method init

Parameters
title
str
required
String value
version
str | None
default:"None"
String value
description
str | None
default:"None"
String value
Signature
def __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
Signature
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]):

method to_dict

Convert to dictionary for JSON serialization.Returns
returns
dict[str, Any]
Signature
def to_dict():

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
server
MCPServer
required
The FastMCP server instance
Returns
returns
starlette.responses.JSONResponse
JSONResponse containing the OpenMCP server description
Signature
def get_openmcp_json(server: MCPServer):