Skip to main content

Module mcp

Module mcp 

Source

Constants§

MCP_POLICY_SENTENCE
Policy framing wrapped around untrusted MCP tool descriptions.
MCP_QUALIFIED_TOOL_PREFIX
The MCP tool name prefix used in model-visible form.

Functions§

build_mcp_registration
Build a ToolRegistration for a remote MCP tool.
is_legacy_mcp_tool_name
Check if a tool name uses the legacy MCP format (mcp_<provider>_<tool>).
legacy_mcp_tool_name
Extract the tool name from a legacy MCP tool name.
model_visible_mcp_tool_name
Build a model-visible MCP tool name from provider and tool name.
parse_canonical_mcp_tool_name
Parse a canonical MCP tool name of the form mcp::<provider>::<tool_name>.