@solvapay/mcp 0.2.6 → 0.2.7-preview-e89fa52f99b6d0c7bf9834fcf2d1403141051fa0

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.
@@ -142,6 +142,26 @@ function registerDocsResource(server, docs) {
142
142
  })
143
143
  );
144
144
  }
145
+ function registerBootstrapResource(server, bootstrap) {
146
+ server.registerResource(
147
+ bootstrap.name,
148
+ bootstrap.uri,
149
+ {
150
+ ...bootstrap.title !== void 0 ? { title: bootstrap.title } : {},
151
+ description: bootstrap.description,
152
+ mimeType: bootstrap.mimeType
153
+ },
154
+ async (_uri, extra) => ({
155
+ contents: [
156
+ {
157
+ uri: bootstrap.uri,
158
+ mimeType: bootstrap.mimeType,
159
+ text: JSON.stringify(await bootstrap.readPayload(extra))
160
+ }
161
+ ]
162
+ })
163
+ );
164
+ }
145
165
  function buildSolvaPayMcpServer(options) {
146
166
  const {
147
167
  registerPrompts = true,
@@ -171,6 +191,7 @@ function buildSolvaPayMcpServer(options) {
171
191
  registerDocsResource(server, docs);
172
192
  }
173
193
  }
194
+ registerBootstrapResource(server, descriptors.bootstrapResource);
174
195
  const resource = descriptors.resource;
175
196
  registerAppResource(
176
197
  server,
@@ -584,6 +584,26 @@ function registerDocsResource(server, docs) {
584
584
  })
585
585
  );
586
586
  }
587
+ function registerBootstrapResource(server, bootstrap) {
588
+ server.registerResource(
589
+ bootstrap.name,
590
+ bootstrap.uri,
591
+ {
592
+ ...bootstrap.title !== void 0 ? { title: bootstrap.title } : {},
593
+ description: bootstrap.description,
594
+ mimeType: bootstrap.mimeType
595
+ },
596
+ async (_uri, extra) => ({
597
+ contents: [
598
+ {
599
+ uri: bootstrap.uri,
600
+ mimeType: bootstrap.mimeType,
601
+ text: JSON.stringify(await bootstrap.readPayload(extra))
602
+ }
603
+ ]
604
+ })
605
+ );
606
+ }
587
607
  function buildSolvaPayMcpServer(options) {
588
608
  const {
589
609
  registerPrompts = true,
@@ -613,6 +633,7 @@ function buildSolvaPayMcpServer(options) {
613
633
  registerDocsResource(server, docs);
614
634
  }
615
635
  }
636
+ registerBootstrapResource(server, descriptors.bootstrapResource);
616
637
  const resource = descriptors.resource;
617
638
  (0, import_server.registerAppResource)(
618
639
  server,
@@ -3,7 +3,7 @@ import {
3
3
  buildSolvaPayMcpServer,
4
4
  normaliseHideToolsByAudience,
5
5
  registerPayableTool
6
- } from "../chunk-RWJ6GBM5.js";
6
+ } from "../chunk-HDMZ3Q53.js";
7
7
  import {
8
8
  toOAuthErrorBody
9
9
  } from "../chunk-R3OMC7S2.js";
package/dist/index.cjs CHANGED
@@ -95,6 +95,26 @@ function registerDocsResource(server, docs) {
95
95
  })
96
96
  );
97
97
  }
98
+ function registerBootstrapResource(server, bootstrap) {
99
+ server.registerResource(
100
+ bootstrap.name,
101
+ bootstrap.uri,
102
+ {
103
+ ...bootstrap.title !== void 0 ? { title: bootstrap.title } : {},
104
+ description: bootstrap.description,
105
+ mimeType: bootstrap.mimeType
106
+ },
107
+ async (_uri, extra) => ({
108
+ contents: [
109
+ {
110
+ uri: bootstrap.uri,
111
+ mimeType: bootstrap.mimeType,
112
+ text: JSON.stringify(await bootstrap.readPayload(extra))
113
+ }
114
+ ]
115
+ })
116
+ );
117
+ }
98
118
  function buildSolvaPayMcpServer(options) {
99
119
  const {
100
120
  registerPrompts = true,
@@ -124,6 +144,7 @@ function buildSolvaPayMcpServer(options) {
124
144
  registerDocsResource(server, docs);
125
145
  }
126
146
  }
147
+ registerBootstrapResource(server, descriptors.bootstrapResource);
127
148
  const resource = descriptors.resource;
128
149
  (0, import_server.registerAppResource)(
129
150
  server,
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  buildSolvaPayMcpServer,
4
4
  normaliseHideToolsByAudience,
5
5
  registerPayableTool
6
- } from "./chunk-RWJ6GBM5.js";
6
+ } from "./chunk-HDMZ3Q53.js";
7
7
 
8
8
  // src/server.ts
9
9
  function createSolvaPayMcpServer(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solvapay/mcp",
3
- "version": "0.2.6",
3
+ "version": "0.2.7-preview-e89fa52f99b6d0c7bf9834fcf2d1403141051fa0",
4
4
  "description": "Official @modelcontextprotocol/sdk + @modelcontextprotocol/ext-apps adapter for the SolvaPay MCP toolbox (createSolvaPayMcpServer, registerPayableTool) with ./fetch + ./express subpath exports for runtime-specific OAuth bridges.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -43,8 +43,8 @@
43
43
  "@modelcontextprotocol/ext-apps": "^1.7.1",
44
44
  "@modelcontextprotocol/sdk": "^1.28.0",
45
45
  "zod": "^3.25.0 || ^4.0.0",
46
- "@solvapay/server": "^1.2.0",
47
- "@solvapay/mcp-core": "0.2.5"
46
+ "@solvapay/mcp-core": "^0.2.6-preview-e89fa52f99b6d0c7bf9834fcf2d1403141051fa0",
47
+ "@solvapay/server": "^1.2.1-preview-e89fa52f99b6d0c7bf9834fcf2d1403141051fa0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "zod": {
@@ -58,9 +58,9 @@
58
58
  "typescript": "^5.9.3",
59
59
  "vitest": "^4.1.2",
60
60
  "zod": "^4.3.6",
61
- "@solvapay/mcp-core": "0.2.5",
62
- "@solvapay/test-utils": "^0.0.0",
63
- "@solvapay/server": "1.2.0"
61
+ "@solvapay/mcp-core": "0.2.6-preview-e89fa52f99b6d0c7bf9834fcf2d1403141051fa0",
62
+ "@solvapay/server": "1.2.1-preview-e89fa52f99b6d0c7bf9834fcf2d1403141051fa0",
63
+ "@solvapay/test-utils": "^0.0.0"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsup",