-
Notifications
You must be signed in to change notification settings - Fork 31
Adds MCP agent example, first with Envoy AI Gateway #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Adrian Cole <[email protected]>
Signed-off-by: Adrian Cole <[email protected]>
anuraaga
approved these changes
Oct 7, 2025
| "url": mcp_url, | ||
| "timeout": 30.0, | ||
| }, | ||
| cache_tools_list=True, |
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a yolo comment since I didn't check it at all, but it wouldn't surprise me if this enables the background polling you saw
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah will try!
mathetake
pushed a commit
to envoyproxy/ai-gateway
that referenced
this pull request
Oct 7, 2025
**Description** Adds an example Python agent that is fully instrumented to easily showcase how tracing works. This PR borrows the agent code from: elastic/observability-examples#90 **Related Issues/PRs (if applicable)** N/A **Special notes for reviewers (if applicable)** N/A --------- Signed-off-by: Ignasi Barrera <[email protected]>
nutanix-Hrushikesh
pushed a commit
to nutanix-Hrushikesh/ai-gateway
that referenced
this pull request
Oct 16, 2025
**Description** Adds an example Python agent that is fully instrumented to easily showcase how tracing works. This PR borrows the agent code from: elastic/observability-examples#90 **Related Issues/PRs (if applicable)** N/A **Special notes for reviewers (if applicable)** N/A --------- Signed-off-by: Ignasi Barrera <[email protected]> Signed-off-by: Hrushikesh Patil <[email protected]>
nutanix-Hrushikesh
pushed a commit
to nutanix-Hrushikesh/ai-gateway
that referenced
this pull request
Oct 16, 2025
**Description** Adds an example Python agent that is fully instrumented to easily showcase how tracing works. This PR borrows the agent code from: elastic/observability-examples#90 **Related Issues/PRs (if applicable)** N/A **Special notes for reviewers (if applicable)** N/A --------- Signed-off-by: Ignasi Barrera <[email protected]> Signed-off-by: Hrushikesh Patil <[email protected]>
nutanix-Hrushikesh
pushed a commit
to nutanix-Hrushikesh/ai-gateway
that referenced
this pull request
Oct 16, 2025
**Description** Adds an example Python agent that is fully instrumented to easily showcase how tracing works. This PR borrows the agent code from: elastic/observability-examples#90 **Related Issues/PRs (if applicable)** N/A **Special notes for reviewers (if applicable)** N/A --------- Signed-off-by: Ignasi Barrera <[email protected]> Signed-off-by: Hrushikesh Patil <[email protected]>
missBerg
pushed a commit
to missBerg/ai-gateway
that referenced
this pull request
Dec 20, 2025
**Description** Adds an example Python agent that is fully instrumented to easily showcase how tracing works. This PR borrows the agent code from: elastic/observability-examples#90 **Related Issues/PRs (if applicable)** N/A **Special notes for reviewers (if applicable)** N/A --------- Signed-off-by: Ignasi Barrera <[email protected]> Signed-off-by: Erica Hughberg <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds an agent (MCP + LLM) example for Envoy AI Gateway, by proxying the anonymous Kiwi MCP server.
This uses the openai-agents python SDK, for parity with the existing chat example, which is openai (normal) python SDK. I tested it with
qwen3:1.7bwhich is the smallest model likely to succeed.The main difference here between the normal chat, is you'll notice server-side MCP spans. These are generated by Envoy AI gateway and connect to the trace due to metadata propagation implemented on the client, via OpenInference.