feat: expose repository navigation queries
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a0230c-b06c-7641-808a-e191b6d1da49
This commit is contained in:
parent
283bbf048e
commit
e3e542f76c
9 changed files with 446 additions and 3 deletions
|
|
@ -30,6 +30,8 @@ def test_mcp_base_server_registers_orientation_doi_and_fos10_tools() -> None:
|
|||
"get_doi_summary",
|
||||
"get_risks",
|
||||
"get_alerts",
|
||||
"query_repository_navigation",
|
||||
"get_repository_navigation_facet",
|
||||
} <= names
|
||||
assert names == CORE_TOOL_NAMES
|
||||
|
||||
|
|
@ -49,3 +51,19 @@ def test_attach_to_host_mcp_respects_exclude() -> None:
|
|||
assert "send_message" not in names
|
||||
assert "get_domain_summary" in names
|
||||
assert len(names) == len(CORE_TOOL_NAMES) - 2
|
||||
|
||||
|
||||
def test_repository_navigation_mcp_tool_exposes_all_six_facets() -> None:
|
||||
server = HubCoreMCPServer(name="test-hub", api_base="http://127.0.0.1:9999")
|
||||
|
||||
tools = {tool.name: tool for tool in asyncio.run(server.mcp.list_tools())}
|
||||
schema = tools["query_repository_navigation"].parameters
|
||||
|
||||
assert {
|
||||
"primary_domain",
|
||||
"secondary_domain",
|
||||
"category",
|
||||
"capability_tag",
|
||||
"business_stake",
|
||||
"business_mechanic",
|
||||
} <= set(schema["properties"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue