Skip to content

Commit 633f286

Browse files
committed
docs: soften the code wording and put Breaking first in the changelog
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UJfs8sWB5EK8dXXjDU7Mv3
1 parent 97ae7a4 commit 633f286

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ Releases before 0.7.0 are described in [GitHub Releases](https://github.com/code
1111
- `http.allowedOrigins` validates the `Origin` header on the `/mcp` endpoints, as the MCP spec requires. A request with an `Origin` outside the list gets `403`; requests without an `Origin` header are always allowed. When `cors` is on, only the listed origins get CORS access. Not set by default, so existing deployments behave as before.
1212
- **Migration:** none needed. To turn it on, pass `http: { allowedOrigins: ["https://app.example.com"] }`.
1313

14-
### Fixed
15-
16-
- A STATIC client whose startup toolsets fail to load now gets a JSON-RPC error (`-32603`, HTTP 500) on `initialize` instead of connecting with only some of its tools. The failed bundle is dropped, so the client's next `initialize` retries the load.
17-
1814
### Breaking
1915

2016
- `ServerOrchestrator.isReady()` now returns `false`, and `ensureReady()` throws, when registering a startup toolset's tools fails (for example a duplicate tool name, within a toolset or across toolsets when `namespaceToolsWithSetKey` is off). It used to report ready. As a result `createMcpServer` rejects at startup for such a catalog in STATIC mode, where it used to start with the partial toolset. Fix the catalog (rename or remove the duplicate tool) before upgrading. `enableToolset` results (and the `enable_toolset` meta-tool output) gain an optional `code` on that failure. Toolsets refused before registration (exposure policy, duplicate names in `startup.toolsets`) and module loader errors do not count as failures.
2117

18+
### Fixed
19+
20+
- A STATIC client whose startup toolsets fail to load now gets a JSON-RPC error (`-32603`, HTTP 500) on `initialize` instead of connecting with only some of its tools. The failed bundle is dropped, so the client's next `initialize` retries the load.
21+
2222
## [0.7.0]
2323

2424
### Breaking

‎src/core/AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Central orchestration layer. Manages toolset lifecycle, tool registration, and s
1919
5. **Toolset added to activeToolsets AFTER registration** — All tools must register successfully before toolset is marked active. Partial failures leave the toolset inactive but orphaned tools remain registered (MCP limitation).
2020
6. **`enableToolsets()` batches notifications** — Calls `enableToolset(name, skipNotification=true)` per toolset, sends one `tools/list_changed` notification at the end.
2121
7. **JSON Schema `inputSchema` uses `registerTool` with a passthrough object** — The SDK rejects plain JSON Schema as a tool schema. Zod raw shapes and schemas are passed to `registerTool` as is. Clients see an open object schema for JSON Schema tools, not the declared one.
22-
8. **Failed tool registration at startup makes the orchestrator not ready** — `enableToolsets()` reports failures in its result and never throws. A failure that carries a `code` (set when registering the toolset's tools failed, e.g. a tool name collision) becomes `initError`, so `isReady()` is `false` and `ensureReady()` throws. Refusals made before any registration (invalid name, already enabled, exposure policy) carry no code and are ignored. Module loader errors are also ignored: `ModuleResolver` logs them and continues.
22+
8. **Failed tool registration at startup makes the orchestrator not ready** — `enableToolsets()` reports failures in its result and never throws. A failure that carries a `code` (set when enabling threw, normally while registering the toolset's tools, e.g. a tool name collision) becomes `initError`, so `isReady()` is `false` and `ensureReady()` throws. Refusals made before any registration (invalid name, already enabled, exposure policy) carry no code and are ignored. Module loader errors are also ignored: `ModuleResolver` logs them and continues.
2323

2424
## Enable Toolset Flow
2525

‎src/core/DynamicToolManager.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class DynamicToolManager {
7878
* Enables a single toolset by name.
7979
* @param toolsetName - The name of the toolset to enable
8080
* @param skipNotification - If true, skips the tool list change notification
81-
* @returns Result object with success status and message; `code` is set only when registering the toolset's tools failed
81+
* @returns Result object with success status and message; `code` is set only when enabling threw, normally while registering the toolset's tools
8282
*/
8383
public async enableToolset(
8484
toolsetName: string,
@@ -117,7 +117,7 @@ export class DynamicToolManager {
117117
message: `Failed to enable toolset '${sanitized}': ${
118118
error instanceof Error ? error.message : "Unknown error"
119119
}`,
120-
// Only this path sets a code; ServerOrchestrator treats it as "failed while registering"
120+
// Only this path sets a code; ServerOrchestrator treats it as "enabling threw"
121121
code: error instanceof ToolingError ? error.code : "E_INTERNAL",
122122
};
123123
}

0 commit comments

Comments
 (0)