@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 +1 -1
- package/src/proxy-server.ts +2 -2
package/package.json
CHANGED
package/src/proxy-server.ts
CHANGED
|
@@ -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 {
|
|
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 =
|
|
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({
|