Discover what an MCP server offersYou inspect the negotiated catalog for tools, prompts, resources, templates, and capabilities. Your app uses server-owned identifiers instead of guessing them.javaacademyacademy/topics/mcp-catalogwebsite/content-src/academy/course.mjsacademyDiscover what an MCP server offers
You inspect the negotiated catalog for tools, prompts, resources, templates, and capabilities. Your app uses server-owned identifiers instead of guessing them.
inspectCatalog()7 focused minutesNot started
Unit example (nearest native match)
See the idea in context
AxMCPClient mcp = new AxMCPClient(new AxMCPStreamableHTTPTransport(endpoint), Map.of("namespace", "inventory"));
AxMCPClient.CatalogSnapshot catalog = mcp.inspectCatalog();
AxGen program = new AxGen(Ax.s("request:string -> answer:string"), Map.of("mcp", mcp));
mcp.close();