MCP Agent starting point within agent-api

Hi,

I deployed agent-api (GitHub - agno-agi/agent-api: A minimal, open-source setup for serving Agents using FastAPI and Postgres. Built for speed, clarity, and dev happiness.) and got it to work with the playground ui within (https://app.agno.com/). A couple of questions to really get us started in POC:

-What files do I have to update to initialize a new agent? I see the debug logs citing web_agent, agno_assist, finance_agent. I edited the selector file when introducing a new.py agent but I don’t see it mentioned in the logs and playground isn’t able to recognize the agent. Is there another file to update?

-Is there a starter agent file that uses MCP sse path I can reference? I have a working Snowflake MCP server as a sse url which responds with available tools in the /message path. But not sure how Agno agent interacts with a MCP sse.

Hey @generalya
thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.
If it’s urgent, please let us know. We appreciate your patience!

Hey @generalya!

  • You would need to add the new agent to /agents and update the agents/selector.py file as you seem to have done already. Then you will also need to update api/routes/playground.py, the file where the Playground app is initialized, to pass the new agents to the Playground app.
  • You can find some examples on using our MCP integration, including SSE connections, in the cookbooks in our main repo. This simple one is focused on showing how to connect using SSE: agno/cookbook/tools/mcp/sse_transport/client.py at main · agno-agi/agno · GitHub

I hope this helps, let me know if you need anything else. And thanks for using Agno!