@casys/mcp-server 0.16.0 → 0.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casys/mcp-server",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Production-ready MCP server framework with concurrency control, auth, and observability",
5
5
  "type": "module",
6
6
  "main": "mod.ts",
@@ -35,10 +35,14 @@ const VALID_PROVIDERS: AuthProviderName[] = [
35
35
  * - `"github"` / `"google"`: base only
36
36
  * - `"auth0"`: base + required `domain`
37
37
  * - `"oidc"`: base + required `issuer`, optional `jwksUri`
38
- * This lifts the current runtime checks in `loadAuthConfig()` (lines 157-168)
38
+ * This lifts the current runtime checks in `loadAuthConfig()` (lines ~167-178)
39
39
  * to the type level, matching what 0.16.0 did for `JwtAuthProviderOptions`.
40
- * See `CHANGELOG.md` [Unreleased] section and
41
- * `memory/project_mcp_server_016_deferred.md` for the deferred-work anchor.
40
+ *
41
+ * Tracked in:
42
+ * - GitHub issue: https://github.com/Casys-AI/mcp-server/issues/11 (primary)
43
+ * - `CHANGELOG.md` [Unreleased] section
44
+ * Hard trigger: do this refactor the next time a new provider preset is added
45
+ * (per 0.16.0 type-design review recommendation — don't let it slip past 0.17.0).
42
46
  */
43
47
  export interface AuthConfig {
44
48
  provider: AuthProviderName;
package/src/mcp-app.ts CHANGED
@@ -189,6 +189,16 @@ async function readBodyWithLimit(
189
189
  * ```
190
190
  */
191
191
  export class McpApp {
192
+ /**
193
+ * Server name — the identifier reported to MCP clients in `InitializeResult.serverInfo.name`.
194
+ *
195
+ * Exposed as a public readonly field (0.16.1) so consumers can use it for
196
+ * log prefixes, tracing context, or any UI that wants to echo the server
197
+ * identity without having to thread `options.name` through their code.
198
+ * Immutable after construction, same value that appears in the MCP
199
+ * `initialize` response.
200
+ */
201
+ public readonly name: string;
192
202
  private mcpServer: McpServer;
193
203
  private requestQueue: RequestQueue;
194
204
  private rateLimiter: RateLimiter | null = null;
@@ -232,6 +242,7 @@ export class McpApp {
232
242
 
233
243
  constructor(options: McpAppOptions) {
234
244
  this.options = options;
245
+ this.name = options.name;
235
246
 
236
247
  // Create SDK MCP server
237
248
  this.mcpServer = new McpServer(