Skip to main content

get_resources

Method
This is a method of the MCP class in the mcp module.
List resources/resource-templates advertised by the MCP server. Returns an empty list for transports that do not surface resources or for tools-only servers.

Signature

Returns

List[dict]
Serialised resource and resource-template descriptors.

Uses

  • _res.resources_to_dicts
  • _res.resource_templates_to_dicts

Source

View on GitHub

praisonaiagents/mcp/mcp.py at line 912