Skip to content

Commit 3e37cd6

Browse files
chelojimenezclaude
andauthored
mcpjam-agent: explicitly advertise io.modelcontextprotocol/ui capability (#2637)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b2e8501 commit 3e37cd6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

mcpjam-inspector/server/routes/web/mcpjam-agent.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
*/
2121
import { Hono } from "hono";
2222
import { z } from "zod";
23-
import { MCPClientManager, type HttpServerConfig } from "@mcpjam/sdk";
23+
import {
24+
MCPClientManager,
25+
type HttpServerConfig,
26+
MCP_UI_EXTENSION_ID,
27+
MCP_UI_RESOURCE_MIME_TYPE,
28+
} from "@mcpjam/sdk";
2429
import { isMCPAuthError } from "@mcpjam/sdk";
2530
import { WEB_STREAM_TIMEOUT_MS } from "../../config.js";
2631
import { INSPECTOR_MCP_RETRY_POLICY } from "../../utils/mcp-retry-policy.js";
@@ -88,6 +93,13 @@ mcpjamAgent.post("/", async (c) => {
8893
const docsConfig: HttpServerConfig = {
8994
url: docsUrl,
9095
timeout: 30_000,
96+
clientCapabilities: {
97+
extensions: {
98+
[MCP_UI_EXTENSION_ID]: {
99+
mimeTypes: [MCP_UI_RESOURCE_MIME_TYPE],
100+
},
101+
},
102+
},
91103
};
92104

93105
manager = new MCPClientManager(

0 commit comments

Comments
 (0)