Skip to content

API design #15

@bwalderman

Description

@bwalderman

Opening this issue to discuss the web platform API design for WebMCP. There are a couple approaches out there at the moment:

  1. An object with registerTool(options) and unregisterTool(name) methods such as the AutomationDelegate from the original Script Tools API proposal, or the window.mcp object that MiguelsPizza/WebMCP provides
  2. A single provideContext method which takes a collection of tools in a single call. The set of available tools can be updated by calling provideContext again with a different tool collection. See the current proposal here

Both of the above agree on the info needed for a tool registration: name, description, input schema, and optional annotations. They also all allow for dynamic enabling/disabling of tools but go about this in different ways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions