@lousy-agents/mcp 5.22.12 → 5.22.13

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.
Files changed (2) hide show
  1. package/dist/mcp-server.js +10 -0
  2. package/package.json +2 -2
@@ -27513,6 +27513,16 @@ class McpServer {
27513
27513
  this._promptHandlersInitialized = false;
27514
27514
  this.server = new Server(serverInfo, options);
27515
27515
  this._maxToolInputElements = resolveMaxToolInputElements(options?.maxToolInputElements);
27516
+ // A capability declared in the options gets its handlers now, so registering after connect() works.
27517
+ if (options?.capabilities?.tools) {
27518
+ this.setToolRequestHandlers();
27519
+ }
27520
+ if (options?.capabilities?.resources) {
27521
+ this.setResourceRequestHandlers();
27522
+ }
27523
+ if (options?.capabilities?.prompts) {
27524
+ this.setPromptRequestHandlers();
27525
+ }
27516
27526
  }
27517
27527
  /**
27518
27528
  * Access experimental features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/mcp",
3
- "version": "5.22.12",
3
+ "version": "5.22.13",
4
4
  "description": "MCP server for lousy-agents - provides AI coding assistant tools via the Model Context Protocol",
5
5
  "type": "module",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "typecheck": "tsc --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@modelcontextprotocol/sdk": "1.32.1",
40
+ "@modelcontextprotocol/sdk": "1.32.2",
41
41
  "yaml": "2.9.1",
42
42
  "zod": "4.5.2"
43
43
  },