@mcp-html-bridge/proxy 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-html-bridge/proxy",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "MCP proxy that intercepts & enhances responses with HTML UI",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  // ── MCP Proxy Server: intercepts tool results and enhances with HTML ──
2
2
  import { spawn, type ChildProcess } from 'node:child_process';
3
- import { renderFromData } from '@mcp-html-bridge/ui-engine';
3
+ import { renderFromDataSync } from '@mcp-html-bridge/ui-engine';
4
4
 
5
5
  /**
6
6
  * MCP Proxy that sits between a client and a target MCP server.
@@ -111,7 +111,7 @@ export class MCPProxyServer {
111
111
  }
112
112
 
113
113
  // Generate HTML
114
- const html = renderFromData(data, { title: 'MCP Result' });
114
+ const html = renderFromDataSync(data, { title: 'MCP Result' });
115
115
 
116
116
  // Append HTML block to the response content
117
117
  msg.result.content.push({