yera.tools.mcp.metadata
Public metadata exposed by MCP-backed Yera tools.
Symbols
MCPServerMetadata
Describe the configured server that supplied an MCP tool.
Attributes
Yera's configured name for the server.
Streamable HTTP endpoint used to reach the server.
MCPToolAnnotations
Retain the behavioural hints advertised by an MCP server.
These values are untrusted hints and must not be treated as an authorization or security boundary.
Attributes
Alternate human-readable title.
Whether the server claims the tool is read-only.
Whether the server claims writes may be destructive.
Whether repeated calls should have no additional effect.
Whether the tool may interact with external entities.
Methods
MCPToolAnnotations.from_dict
from_dict(
values: Mapping[str, object] | None,
) → MCPToolAnnotationsBuild annotations from serialized MCP protocol metadata.
Parameters
Serialized annotations, or None when absent.
Returns
Parsed server-supplied annotation hints.
MCPToolIcon
Describe an icon advertised for an MCP tool.
Attributes
Icon URL or data URI supplied by the server.
Optional advertised media type.
Optional supported icon sizes.
Optional light or dark theme restriction.
Methods
MCPToolIcon.from_dict
from_dict(
values: Mapping[str, object],
) → MCPToolIconBuild an icon description from serialized MCP metadata.
Parameters
Serialized icon metadata.
Returns
Parsed icon metadata without fetching its source.
MCPToolMetadata
Describe an imported MCP tool without refreshing the remote server.
Attributes
Fully qualified Python path beneath yr.mcp_tools.
Python-safe leaf name.
Exact tool name advertised by the MCP server.
Configured server identity.
Preferred human-readable title.
Human-readable tool description.
Advertised JSON Schema for tool arguments.
Optional advertised JSON Schema for structured output.
Untrusted behavioural hints supplied by the server.
Icon descriptions retained without fetching their contents.
Advertised legacy task-execution support.
Arbitrary namespaced MCP metadata.
Methods
MCPToolMetadata.from_record
from_record(
server_name: str,
server_url: str,
record: MCPToolRecord,
) → MCPToolMetadataBuild public metadata from a locally cached catalogue record.
Parameters
Yera's configured name for the server.
Configured Streamable HTTP endpoint.
Cached tool discovery metadata.
Returns
Public metadata for local inspection.