@mcp-b/global 1.0.2 → 1.0.3

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/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
3
 
3
4
  /**
4
5
  * Initializes the global MCP server and exposes it on window.mcp.
@@ -15,7 +16,7 @@ declare function cleanupGlobalMCP(): void;
15
16
 
16
17
  declare global {
17
18
  interface Window {
18
- mcp: McpServer;
19
+ mcp?: McpServer;
19
20
  }
20
21
  }
21
22
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
3
 
3
4
  /**
4
5
  * Initializes the global MCP server and exposes it on window.mcp.
@@ -15,7 +16,7 @@ declare function cleanupGlobalMCP(): void;
15
16
 
16
17
  declare global {
17
18
  interface Window {
18
- mcp: McpServer;
19
+ mcp?: McpServer;
19
20
  }
20
21
  }
21
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/global",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Global bundle for MCP-B with window.mcp API for script tag usage",
5
5
  "license": "MIT",
6
6
  "author": "Alex Nahas",
@@ -55,8 +55,8 @@
55
55
  "check": "biome check --write ."
56
56
  },
57
57
  "dependencies": {
58
- "@mcp-b/transports": "workspace:*",
59
- "@modelcontextprotocol/sdk": "catalog:"
58
+ "@mcp-b/transports": "^1.0.0",
59
+ "@modelcontextprotocol/sdk": "1.15.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "catalog:",