get_prompts
Method
This is a method of the MCP class in the mcp module.List prompt templates advertised by the MCP server. Returns an empty list for transports that do not surface prompts or for servers that expose none.
Signature
Returns
List[dict]
Serialised prompt descriptors with argument hints.
Uses
_res.prompts_to_dicts
Source
View on GitHub
praisonaiagents/mcp/mcp.py at line 930
