@frontmcp/react 1.8.7 → 1.9.1-rc.1

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.
@@ -1,14 +1,15 @@
1
1
  /**
2
- * createWrappedServer — wraps a DirectMcpServer with a DynamicRegistry overlay.
2
+ * createWrappedServer — wraps a DirectMcpServer with a DynamicRegistry resource overlay.
3
3
  *
4
- * Intercepts listTools/callTool/listResources/readResource to merge
5
- * dynamically registered entries. All other methods delegate directly.
4
+ * Intercepts listResources/readResource to merge dynamically registered resources. Dynamic tools
5
+ * are not overlaid: `bindDynamicTools` registers them with the server as real tools, so tool
6
+ * listing and calls go straight to the server's flows. All other methods delegate directly.
6
7
  */
7
8
  import type { DirectMcpServer } from '@frontmcp/sdk';
8
9
  import type { DynamicRegistry } from './DynamicRegistry';
9
10
  /**
10
- * Create a wrapped DirectMcpServer that overlays dynamic tools and resources.
11
- * Dynamic entries take precedence over base server entries with the same name/uri.
11
+ * Create a wrapped DirectMcpServer that overlays dynamic resources.
12
+ * Dynamic resources take precedence over base server resources with the same uri.
12
13
  */
13
14
  export declare function createWrappedServer(base: DirectMcpServer, dynamicRegistry: DynamicRegistry): DirectMcpServer;
14
15
  //# sourceMappingURL=createWrappedServer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWrappedServer.d.ts","sourceRoot":"","sources":["../../src/registry/createWrappedServer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAGV,eAAe,EAGhB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA8DzD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,GAAG,eAAe,CA4H5G"}
1
+ {"version":3,"file":"createWrappedServer.d.ts","sourceRoot":"","sources":["../../src/registry/createWrappedServer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAIV,eAAe,EAEhB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAmDzD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,GAAG,eAAe,CAyG5G"}
package/state/index.js CHANGED
@@ -96,16 +96,16 @@ var DynamicRegistry = class {
96
96
  * suitable for useEffect cleanup.
97
97
  *
98
98
  * Multiple registrations of the same name are ref-counted:
99
- * subsequent registrations update the definition but the tool
100
- * is only removed when every registrant has unregistered.
99
+ * subsequent registrations replace the definition (and notify, so
100
+ * the server registration follows the new description, schema or
101
+ * availability) but the tool is only removed when every registrant
102
+ * has unregistered.
101
103
  */
102
104
  registerTool(def) {
103
105
  const existing = this.toolRefCounts.get(def.name) ?? 0;
104
106
  this.toolRefCounts.set(def.name, existing + 1);
105
107
  this.tools.set(def.name, def);
106
- if (existing === 0) {
107
- this.notify();
108
- }
108
+ this.notify();
109
109
  let called = false;
110
110
  return () => {
111
111
  if (called) return;
@@ -245,117 +245,110 @@ var FrontMcpContext = getOrCreateContext();
245
245
 
246
246
  // libs/react/src/state/useStoreResource.ts
247
247
  var VALID_NAME_RE = /^[a-zA-Z0-9_-]+$/;
248
+ function keysOf(map, kind) {
249
+ if (!map) return "[]";
250
+ const keys = Object.keys(map);
251
+ if (kind === "selector") {
252
+ for (const key of keys) {
253
+ if (!key || !VALID_NAME_RE.test(key)) {
254
+ throw new Error(`useStoreResource: invalid selector key "${key}". Keys must match ${VALID_NAME_RE}.`);
255
+ }
256
+ }
257
+ }
258
+ return JSON.stringify(keys.sort());
259
+ }
260
+ function parseKeys(keys) {
261
+ return JSON.parse(keys);
262
+ }
263
+ function jsonResource(uri, value) {
264
+ return { contents: [{ uri, mimeType: "application/json", text: JSON.stringify(value ?? null) }] };
265
+ }
248
266
  function useStoreResource(options) {
249
- const { name, getState, subscribe, selectors, actions } = options;
267
+ const { name, subscribe } = options;
250
268
  const { getDynamicRegistry } = (0, import_react2.useContext)(FrontMcpContext);
251
269
  const dynamicRegistry = getDynamicRegistry(options.server);
252
270
  if (!name || !VALID_NAME_RE.test(name)) {
253
271
  throw new Error(`useStoreResource: invalid store name "${name}". Names must match ${VALID_NAME_RE}.`);
254
272
  }
255
- const getStateRef = (0, import_react2.useRef)(getState);
256
- getStateRef.current = getState;
257
- const readState = (0, import_react2.useCallback)(
258
- async () => ({
259
- contents: [
260
- {
261
- uri: `state://${name}`,
262
- mimeType: "application/json",
263
- text: JSON.stringify(getStateRef.current() ?? null)
264
- }
265
- ]
266
- }),
267
- [name]
268
- );
269
- (0, import_react2.useEffect)(() => {
270
- const unregister = dynamicRegistry.registerResource({
271
- uri: `state://${name}`,
273
+ const selectorKeys = keysOf(options.selectors, "selector");
274
+ const actionKeys = keysOf(options.actions, "action");
275
+ const getStateRef = (0, import_react2.useRef)(options.getState);
276
+ getStateRef.current = options.getState;
277
+ const selectorsRef = (0, import_react2.useRef)(options.selectors);
278
+ selectorsRef.current = options.selectors;
279
+ const actionsRef = (0, import_react2.useRef)(options.actions);
280
+ actionsRef.current = options.actions;
281
+ const stateUri = `state://${name}`;
282
+ (0, import_react2.useEffect)(
283
+ () => dynamicRegistry.registerResource({
284
+ uri: stateUri,
272
285
  name: `${name}-state`,
273
286
  description: `Full state of ${name} store`,
274
287
  mimeType: "application/json",
275
- read: readState
276
- });
277
- const unsubscribe = subscribe(() => {
278
- dynamicRegistry.updateResourceRead(`state://${name}`, readState);
279
- });
280
- return () => {
281
- unregister();
282
- unsubscribe();
283
- };
284
- }, [dynamicRegistry, name, subscribe, readState]);
288
+ read: async () => jsonResource(stateUri, getStateRef.current())
289
+ }),
290
+ [dynamicRegistry, name, stateUri]
291
+ );
285
292
  (0, import_react2.useEffect)(() => {
286
- if (!selectors) return;
287
- const cleanups = [];
288
- const selectorUris = [];
289
- for (const [key, selector] of Object.entries(selectors)) {
290
- if (!key || !VALID_NAME_RE.test(key)) {
291
- throw new Error(`useStoreResource: invalid selector key "${key}". Keys must match ${VALID_NAME_RE}.`);
292
- }
293
- const uri = `state://${name}/${key}`;
294
- const selectorRef = { current: selector };
295
- const readSelector = async () => ({
296
- contents: [
297
- {
298
- uri,
299
- mimeType: "application/json",
300
- text: JSON.stringify(selectorRef.current(getStateRef.current()) ?? null)
301
- }
302
- ]
293
+ const cleanups = parseKeys(selectorKeys).map((key) => {
294
+ const uri = `${stateUri}/${key}`;
295
+ return dynamicRegistry.registerResource({
296
+ uri,
297
+ name: `${name}-${key}`,
298
+ description: `Selector "${key}" from ${name} store`,
299
+ mimeType: "application/json",
300
+ read: async () => {
301
+ const selector = selectorsRef.current?.[key];
302
+ return jsonResource(uri, selector ? selector(getStateRef.current()) : void 0);
303
+ }
303
304
  });
304
- selectorUris.push({ uri, readSelector });
305
- cleanups.push(
306
- dynamicRegistry.registerResource({
307
- uri,
308
- name: `${name}-${key}`,
309
- description: `Selector "${key}" from ${name} store`,
310
- mimeType: "application/json",
311
- read: readSelector
312
- })
313
- );
314
- }
315
- const unsubscribe = subscribe(() => {
316
- for (const { uri, readSelector } of selectorUris) {
317
- dynamicRegistry.updateResourceRead(uri, readSelector);
318
- }
319
305
  });
320
- cleanups.push(unsubscribe);
321
306
  return () => {
322
307
  cleanups.forEach((fn) => {
323
308
  fn();
324
309
  });
325
310
  };
326
- }, [dynamicRegistry, name, selectors, subscribe]);
311
+ }, [dynamicRegistry, name, stateUri, selectorKeys]);
312
+ (0, import_react2.useEffect)(() => {
313
+ const uris = [stateUri, ...parseKeys(selectorKeys).map((key) => `${stateUri}/${key}`)];
314
+ return subscribe(() => {
315
+ for (const uri of uris) {
316
+ const resource = dynamicRegistry.findResource(uri);
317
+ if (resource) dynamicRegistry.updateResourceRead(uri, resource.read);
318
+ }
319
+ });
320
+ }, [dynamicRegistry, stateUri, selectorKeys, subscribe]);
327
321
  (0, import_react2.useEffect)(() => {
328
- if (!actions) return;
329
- const cleanups = [];
330
- for (const [key, action] of Object.entries(actions)) {
331
- const toolName = `${name}_${key}`;
322
+ const cleanups = parseKeys(actionKeys).map((key) => {
332
323
  const execute = async (args) => {
324
+ const action = actionsRef.current?.[key];
325
+ if (!action) {
326
+ return { isError: true, content: [{ type: "text", text: `Action "${key}" is no longer available` }] };
327
+ }
333
328
  const argsArray = args["args"];
334
329
  const result = await (Array.isArray(argsArray) ? action(...argsArray) : action(args));
335
330
  return {
336
331
  content: [{ type: "text", text: JSON.stringify({ success: true, result }) }]
337
332
  };
338
333
  };
339
- cleanups.push(
340
- dynamicRegistry.registerTool({
341
- name: toolName,
342
- description: `Action "${key}" on ${name} store`,
343
- inputSchema: {
344
- type: "object",
345
- properties: {
346
- args: { type: "array", description: "Arguments to pass to the action" }
347
- }
348
- },
349
- execute
350
- })
351
- );
352
- }
334
+ return dynamicRegistry.registerTool({
335
+ name: `${name}_${key}`,
336
+ description: `Action "${key}" on ${name} store`,
337
+ inputSchema: {
338
+ type: "object",
339
+ properties: {
340
+ args: { type: "array", description: "Arguments to pass to the action" }
341
+ }
342
+ },
343
+ execute
344
+ });
345
+ });
353
346
  return () => {
354
347
  cleanups.forEach((fn) => {
355
348
  fn();
356
349
  });
357
350
  };
358
- }, [dynamicRegistry, name, actions]);
351
+ }, [dynamicRegistry, name, actionKeys]);
359
352
  }
360
353
 
361
354
  // libs/react/src/state/useReduxResource.ts
@@ -373,10 +366,12 @@ function useReduxResource(options) {
373
366
  }
374
367
  return wrapped;
375
368
  }, [actions, store]);
369
+ const getState = (0, import_react3.useMemo)(() => store.getState.bind(store), [store]);
370
+ const subscribe = (0, import_react3.useMemo)(() => store.subscribe.bind(store), [store]);
376
371
  useStoreResource({
377
372
  name,
378
- getState: store.getState.bind(store),
379
- subscribe: store.subscribe.bind(store),
373
+ getState,
374
+ subscribe,
380
375
  selectors,
381
376
  actions: wrappedActions,
382
377
  server
@@ -1 +1 @@
1
- {"version":3,"file":"useReduxResource.d.ts","sourceRoot":"","sources":["../../src/state/useReduxResource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAwBpE"}
1
+ {"version":3,"file":"useReduxResource.d.ts","sourceRoot":"","sources":["../../src/state/useReduxResource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CA4BpE"}
@@ -4,6 +4,12 @@
4
4
  *
5
5
  * This is the core hook; useReduxResource and useValtioResource are
6
6
  * thin wrappers around it.
7
+ *
8
+ * Options may be written inline: `getState`, `selectors` and `actions` are read
9
+ * through refs, so a new function or object on every render does not register the
10
+ * resources and tools again. They are registered again only when the store `name`,
11
+ * the target server, or the set of selector / action names changes. A new
12
+ * `subscribe` function re-subscribes to the store, which touches no registry.
7
13
  */
8
14
  import type { StoreResourceOptions } from './state.types';
9
15
  export declare function useStoreResource(options: StoreResourceOptions): void;
@@ -1 +1 @@
1
- {"version":3,"file":"useStoreResource.d.ts","sourceRoot":"","sources":["../../src/state/useStoreResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI1D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CA0IpE"}
1
+ {"version":3,"file":"useStoreResource.d.ts","sourceRoot":"","sources":["../../src/state/useStoreResource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AA0B1D,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAqGpE"}
package/types.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Core types for @frontmcp/react
3
3
  */
4
4
  import type React from 'react';
5
- import type { DirectMcpServer, DirectClient, CallToolResult, ReadResourceResult } from '@frontmcp/sdk';
5
+ import type { CallToolResult, DirectClient, DirectMcpServer, ReadResourceResult, RuntimeToolDefinition } from '@frontmcp/sdk';
6
6
  import type { ComponentRegistry } from './components/ComponentRegistry';
7
7
  import type { DynamicRegistry } from './registry/DynamicRegistry';
8
8
  export interface ToolInfo {
@@ -44,6 +44,15 @@ export interface DynamicToolDef {
44
44
  description: string;
45
45
  inputSchema: Record<string, unknown>;
46
46
  execute: (args: Record<string, unknown>) => Promise<CallToolResult>;
47
+ /** MCP behavioral hints (`readOnlyHint`, `destructiveHint`, ...). */
48
+ annotations?: RuntimeToolDefinition['annotations'];
49
+ /** Where the tool is offered, e.g. `{ surface: ['webmcp'] }` for in-browser agents only. */
50
+ availableWhen?: RuntimeToolDefinition['availableWhen'];
51
+ /**
52
+ * Id of the server app the tool joins (its plugins' hooks apply to the tool). Needed only for a
53
+ * server with more than one local app; defaults to the provider's `dynamicToolApps` entry.
54
+ */
55
+ app?: RuntimeToolDefinition['app'];
47
56
  }
48
57
  export interface DynamicResourceDef {
49
58
  uri: string;
package/types.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM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