fix: resolve MCP endpoint path for DNS-discovered agents (v0.12.1)#46
Merged
fix: resolve MCP endpoint path for DNS-discovered agents (v0.12.1)#46
Conversation
…nts (v0.12.1) DNS SVCB records provide host:port but not the sub-path where MCP handlers live. Adds resolve_mcp_endpoint() that discovers the correct path via /.well-known/agent.json with /mcp convention fallback. Also bumps default A2A timeout to 60s and improves tool descriptions. Signed-off-by: Igor Racic <iracic82@gmail.com>
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
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.
Summary
/mcp). Newresolve_mcp_endpoint()discovers the correct path via/.well-known/agent.json, with/mcpconvention fallback. Applied automatically incall_mcp_tool()andlist_mcp_tools().list_published_agentsnow clarifies it requires backend API credentials;discover_agents_via_dnsclarifies it works on any public domain with no credentials.Changes
src/dns_aid/core/invoke.pyresolve_mcp_endpoint()— 3-tier path resolution: explicit path →agent.jsonendpoints →/mcpconventioncall_mcp_tool()andlist_mcp_tools()callresolve_mcp_endpoint()before invokingsrc/dns_aid/mcp/server.pysend_a2a_messagedefault timeout: 30s → 60slist_published_agentsdocstring: clarifies credential requirementdiscover_agents_via_dnsdocstring: clarifies no credentials neededVersion bump
pyproject.toml,__init__.py,CITATION.cff: 0.12.0 → 0.12.1CHANGELOG.md: v0.12.1 entryTest plan
ruff check+ruff format --check)resolve_mcp_endpoint("https://booking.highvelocitynetworking.com:443")→ discovers/mcpfrom agent.jsonlist_mcp_toolsandcall_mcp_toolwith host:port-only endpoint now succeedsend_a2a_messageto security-analyzer succeeds with 60s default