diff --git a/.changeset/mcp-public-introspection-helpers.md b/.changeset/mcp-public-introspection-helpers.md deleted file mode 100644 index 1c35de0..0000000 --- a/.changeset/mcp-public-introspection-helpers.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@gemstack/mcp": minor ---- - -Promote MCP-authoring utilities to the public API so inspectors and tooling no longer need internal access. - -- `McpServer.introspect()`: a public introspection surface returning the registered tool / resource / prompt classes (constructors, not instances) without starting a session. The supported alternative to the internal `_tools()` / `_resources()` / `_prompts()` accessors, which stay `@internal`. -- `zodToJsonSchema(schema)`: convert a Zod schema to the JSON Schema MCP advertises (exported from the package entry). -- `matchUriTemplate(template, uri)`: match a URI against a `resource://{template}` pattern and extract params. -- New `McpServerIntrospection` and `ZodLikeObject` types exported alongside. - -This lets a thin framework binding (e.g. `@rudderjs/mcp`) build a server inspector against the published surface instead of re-declaring internal shapes or carrying local copies of the helpers. diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index cdd1bfd..9fc511b 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -1,5 +1,18 @@ # @gemstack/mcp +## 0.2.0 + +### Minor Changes + +- f7c7a45: Promote MCP-authoring utilities to the public API so inspectors and tooling no longer need internal access. + + - `McpServer.introspect()`: a public introspection surface returning the registered tool / resource / prompt classes (constructors, not instances) without starting a session. The supported alternative to the internal `_tools()` / `_resources()` / `_prompts()` accessors, which stay `@internal`. + - `zodToJsonSchema(schema)`: convert a Zod schema to the JSON Schema MCP advertises (exported from the package entry). + - `matchUriTemplate(template, uri)`: match a URI against a `resource://{template}` pattern and extract params. + - New `McpServerIntrospection` and `ZodLikeObject` types exported alongside. + + This lets a thin framework binding (e.g. `@rudderjs/mcp`) build a server inspector against the published surface instead of re-declaring internal shapes or carrying local copies of the helpers. + ## 0.1.0 ### Minor Changes diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 63b4703..e2c624e 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@gemstack/mcp", - "version": "0.1.0", + "version": "0.2.0", "description": "Agent-agnostic framework for authoring Model Context Protocol (MCP) servers: tools, resources, prompts, decorators, OAuth 2.1, a framework-neutral HTTP handler, and a test client. The graduation of @rudderjs/mcp.", "keywords": [ "mcp",