Files
agent-framework/python/samples/04-hosting/foundry-hosted-agents/responses/03_remote_mcp
T
9e3983e547 ยท 2026-04-15 11:33:15 -07:00
History
..
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00
2026-04-15 11:33:15 -07:00

Basic example of hosting an agent with the responses API and a remote MCP

This agent is equipped with a GitHub MCP server and a Foundry Toolbox, which are both remote MCPs.

Note that there are other ways to interact with Foundry toolboxes. Using it as a MCP is just one of the options.

Interacting with the agent

Send a POST request to the server with a JSON body containing a "message" field to interact with the agent. For example:

curl -X POST http://localhost:8088/responses -H "Content-Type: application/json" -d '{"input": "List all the repositories I own on GitHub."}'

Invoke with azd:

azd ai agent invoke --local "List all the repositories I own on GitHub."