Skip to content

Commit 95bc253

Browse files
author
Scion Agent
committed
fix: correct registry URL, MCP media type, and broken links
- Default registry URL: evalstate-hf-discover.hf.space is dead (404), replaced with huggingface-hf-discover.hf.space (the official HF Discover space, confirmed working via /health and /search endpoints). - MCP media type: the canonical type used by hf-discover is application/mcp-server-card+json (application/mcp-server+json is a legacy alias). Updated the README table and test assertions to match the code which already used the correct canonical type. - Broken GitHub links in References sections: - nichochar/ard-spec -> ards-project/ard-spec (repo moved) - nichochar/ai-catalog removed (repo no longer exists) - a2aproject/a2a-spec -> google/A2A (repo moved/renamed) - Added agenticresourcediscovery.org as the official ARD docs link in both READMEs, per the ARD project's current home.
1 parent 7a3d534 commit 95bc253

6 files changed

Lines changed: 15 additions & 14 deletions

File tree

contributing/samples/ardhf/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Overview
44

55
ARDHF wraps [HuggingFace Discover](https://github.com/huggingface/hf-discover)
6-
(ARD — Agentic Resource Discovery) as an ADK `BaseToolset`. It gives any ADK
6+
([ARD](https://agenticresourcediscovery.org) — Agentic Resource Discovery) as an ADK `BaseToolset`. It gives any ADK
77
agent the ability to **discover, inspect, and connect to** agents, skills,
88
MCP servers, HuggingFace Spaces, and other agentic resources at runtime.
99

@@ -50,7 +50,7 @@ tools automatically.
5050
| `search_ards` | Search ARD registries across all artifact types (agents, skills, MCP servers, Spaces) |
5151
| `search_agents` | Search filtered to A2A agents (`application/a2a-agent-card+json`) |
5252
| `search_skills` | Search filtered to skills (`application/ai-skill`) |
53-
| `search_tools` | Search filtered to MCP servers (`application/mcp-server+json`) |
53+
| `search_tools` | Search filtered to MCP servers (`application/mcp-server-card+json`) |
5454
| `search_spaces` | Search filtered to HuggingFace Spaces (`application/vnd.huggingface.space+json`) |
5555
| `get_agent_card` | Fetch a specific artifact (agent card, skill markdown, MCP descriptor) by URL |
5656
| `connect_agent` | Send a message to a remote A2A agent — may return an immediate response or start a long-running task with its own lifecycle |
@@ -241,7 +241,7 @@ Use multiple toolset instances to search different registries:
241241

242242
```python
243243
hf_toolset = AgentFinderToolset(
244-
registry_url="https://evalstate-hf-discover.hf.space",
244+
registry_url="https://huggingface-hf-discover.hf.space",
245245
tool_name_prefix="hf",
246246
)
247247
internal_toolset = AgentFinderToolset(
@@ -300,8 +300,8 @@ pytest tests/unittests/tools/ardhf/ -v
300300

301301
## References
302302

303-
- [ARD Specification](https://github.com/nichochar/ard-spec) — Agentic Resource Discovery specification
303+
- [ARD — Agentic Resource Discovery](https://agenticresourcediscovery.org) — Official ARD specification and documentation
304+
- [ARD Specification (GitHub)](https://github.com/ards-project/ard-spec) — ARD spec repository
304305
- [HuggingFace Discover](https://github.com/huggingface/hf-discover) — ARD reference implementation
305-
- [ai-catalog](https://github.com/nichochar/ai-catalog) — Curated agentic resource catalog
306306
- [ADK Documentation](https://google.github.io/adk-docs/) — Google Agent Development Kit
307-
- [A2A Protocol](https://github.com/a2aproject/a2a-spec) — Agent-to-Agent protocol specification
307+
- [A2A Protocol](https://github.com/google/A2A) — Agent-to-Agent protocol specification

contributing/samples/ardhf/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
_registry_url = os.environ.get(
4747
"ARDHF_REGISTRY_URL",
48-
"https://evalstate-hf-discover.hf.space",
48+
"https://huggingface-hf-discover.hf.space",
4949
)
5050
_local = os.environ.get("ARDHF_LOCAL", "").lower() in (
5151
"1",

contributing/samples/ardhf_dynamic_agents/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,6 @@ User
115115
## Related
116116

117117
- [ARDHF basic sample](../ardhf/) — Simpler sample focusing on discovery only.
118+
- [ARD — Agentic Resource Discovery](https://agenticresourcediscovery.org) — Official ARD specification and documentation.
118119
- [HuggingFace Discover](https://github.com/huggingface/hf-discover) — ARD reference implementation.
119-
- [A2A Protocol](https://github.com/a2aproject/a2a-spec) — Agent-to-Agent protocol specification.
120+
- [A2A Protocol](https://github.com/google/A2A) — Agent-to-Agent protocol specification.

contributing/samples/ardhf_dynamic_agents/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
_registry_url = os.environ.get(
5454
"ARDHF_REGISTRY_URL",
55-
"https://evalstate-hf-discover.hf.space",
55+
"https://huggingface-hf-discover.hf.space",
5656
)
5757
_token = os.environ.get("HF_TOKEN")
5858

src/google/adk_community/tools/ardhf/ardhf_toolset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
logger = logging.getLogger(__name__)
5959

6060
# Default hosted HuggingFace Discover registry.
61-
_DEFAULT_REGISTRY_URL = "https://evalstate-hf-discover.hf.space"
61+
_DEFAULT_REGISTRY_URL = "https://huggingface-hf-discover.hf.space"
6262

6363
# HTTP timeout for remote requests (seconds).
6464
_HTTP_TIMEOUT = 30

tests/unittests/tools/ardhf/test_ardhf_toolset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_skill_kind(self):
8686
def test_mcp_kind(self):
8787
assert (
8888
_artifact_type_for_kind("mcp")
89-
== "application/mcp-server+json"
89+
== "application/mcp-server-card+json"
9090
)
9191

9292
def test_space_kind(self):
@@ -655,12 +655,12 @@ def test_search_with_mcp_filter(self):
655655
response = _remote_search(
656656
CHALLENGE_URL,
657657
"find tools",
658-
artifact_type="application/mcp-server+json",
658+
artifact_type="application/mcp-server-card+json",
659659
limit=10,
660660
)
661661

662662
for result in response["results"]:
663-
assert result["type"] == "application/mcp-server+json"
663+
assert result["type"] == "application/mcp-server-card+json"
664664

665665
def test_search_with_skill_filter(self):
666666
"""Filtering by skill type returns only skill results."""
@@ -822,4 +822,4 @@ async def test_search_ards_with_kind_resolution(self):
822822

823823
assert "results" in result
824824
for entry in result["results"]:
825-
assert entry["type"] == "application/mcp-server+json"
825+
assert entry["type"] == "application/mcp-server-card+json"

0 commit comments

Comments
 (0)