adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Get prompts list from MCP server

Open amedeorizzo opened this issue 1 year ago • 9 comments

After reading the docs I understand that there isn't a way to get the list of exposed interactive templates (prompts) from an MCP server. It would be awesome if there was a way to do that

amedeorizzo avatar May 12 '25 10:05 amedeorizzo

Requesting clarification: So are you looking to keep track of all the prompts that were routed to a specific MCP server?

ankursharmas avatar May 12 '25 23:05 ankursharmas

Not really. As stated in https://google.github.io/adk-docs/mcp "MCP follows a client-server architecture, defining how data (resources), interactive templates (prompts), and actionable functions (tools) are exposed by an MCP serve...". So as ADK currenlty gives me the ability to use the tools exposed by my MCP server, I was looking for a way to get and use the prompts exposed by the MCP server.

amedeorizzo avatar May 13 '25 08:05 amedeorizzo

Agent.instruction could take an async function in the upcoming release (currently already in repo head). In the callback, you could request the prompt from an MCP server and construct the final instruction for the agent.

Jacksunwei avatar May 13 '25 23:05 Jacksunwei

so far , ADK only have built-in support for MCP tools.

seanzhou1023 avatar May 14 '25 03:05 seanzhou1023

Agent.instruction could take an async function in the upcoming release (currently already in repo head). In the callback, you could request the prompt from an MCP server and construct the final instruction for the agent.

Hi @Jacksunwei , do we have any timeline when we will have this feature?

deepakbatham572 avatar Sep 27 '25 14:09 deepakbatham572

Any updates on this please?

murtaza-motorwala avatar Oct 24 '25 12:10 murtaza-motorwala

Please use the main issue to track. Close this for now.

hangfei avatar Nov 08 '25 04:11 hangfei

Support for MCP prompts through the McpInstructionProvider class has been added and will be released next week

wukath avatar Nov 10 '25 18:11 wukath

Support for MCP prompts through the McpInstructionProvider class has been added and will be released next week

It's 3 week, when it will be released @wukath ?

deepakbatham572 avatar Dec 02 '25 14:12 deepakbatham572