prepublish-mcp 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/bridge.js +18 -1
  2. package/package.json +1 -1
package/dist/bridge.js CHANGED
@@ -29,7 +29,24 @@ await upstream.connect(new StreamableHTTPClientTransport(new URL(remoteUrl), {
29
29
  requestInit: token ? { headers: { authorization: `Bearer ${token}` } } : undefined,
30
30
  }));
31
31
  const { tools } = await upstream.listTools();
32
- const local = new Server({ name: 'prepublish', version: '1.0.0' }, { capabilities: { tools: { listChanged: false } } });
32
+ // The bridge is a pass-through, so it must present the upstream server's own
33
+ // identity rather than a stub of its own. Without this, a client installed
34
+ // through the bridge sees a server with no title, no description and no
35
+ // website, and a catalogue that scans it scores the metadata as missing.
36
+ // getServerVersion() returns the upstream Implementation object, which carries
37
+ // title, description, websiteUrl and icons on revision 2025-11-25.
38
+ const upstreamInfo = upstream.getServerVersion();
39
+ const local = new Server({
40
+ name: upstreamInfo?.name ?? 'prepublish',
41
+ version: upstreamInfo?.version ?? '1.0.0',
42
+ ...(upstreamInfo?.title ? { title: upstreamInfo.title } : {}),
43
+ ...(upstreamInfo?.description ? { description: upstreamInfo.description } : {}),
44
+ ...(upstreamInfo?.websiteUrl ? { websiteUrl: upstreamInfo.websiteUrl } : {}),
45
+ ...(upstreamInfo?.icons ? { icons: upstreamInfo.icons } : {}),
46
+ }, {
47
+ capabilities: { tools: { listChanged: false } },
48
+ ...(upstream.getInstructions() ? { instructions: upstream.getInstructions() } : {}),
49
+ });
33
50
  local.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));
34
51
  local.setRequestHandler(CallToolRequestSchema, async (request) => upstream.callTool({ name: request.params.name, arguments: request.params.arguments ?? {} }));
35
52
  process.stderr.write(`prepublish-mcp bridge ready: upstream=${remoteUrl} tools=${tools.length} auth=${token ? 'bearer' : 'anonymous'}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prepublish-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "stdio bridge to the hosted PrePublish MCP server: audit a YouTube script before recording from any MCP client",
5
5
  "keywords": [
6
6
  "mcp",