Progressive Discovery ahh

This commit is contained in:
lda
2026-05-18 16:01:14 +07:00 Verified
parent 2141f79ca3
commit 6dcc0fff59
14 changed files with 193 additions and 27 deletions
+14 -3
View File
@@ -82,10 +82,21 @@ def register_service_admin_tools(
@server.tool(
name=name("list_sources"),
title="List Sources",
description="List configured capability sources and what each source owns.",
description="List compact configured capability source summaries.",
)
async def list_sources() -> list[dict[str, Any]]:
return handlers.list_sources()
async def list_sources(
cursor: str | None = None,
limit: int = 50,
) -> dict[str, Any]:
return handlers.list_sources(cursor=cursor, limit=limit)
@server.tool(
name=name("inspect_source"),
title="Inspect Source",
description="Return the full inventory for one configured capability source.",
)
async def inspect_source(source_id: str) -> dict[str, Any]:
return handlers.inspect_source(source_id)
@server.tool(
name=name("read_resource"),