Skip to content

@xstate/webmcp@0.1.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Dec 18:21
b40d5a7

Minor Changes

  • 374005a: The toolName option now receives the event schema as its second argument, so a tool name can depend on the schema.

    createWebMCP(todoStore, {
      events: ['todo.*'],
      toolName: (eventType, schema) =>
        schema === todoStore.schemas?.events?.['todo.add']
          ? 'add_todo'
          : toToolName(eventType)
    });