comfyui-mcp 0.9.4 → 0.9.5

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/CHANGELOG.md CHANGED
@@ -6,8 +6,27 @@ All notable changes to this project are documented here. This project adheres to
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ### Added
10
+
11
+ - **MIT `LICENSE` file** at the repo root — `package.json` and the npm registry
12
+ have always declared MIT, but the file itself was absent and downstream
13
+ paperwork checks flagged it. Reported by
14
+ [@ductiletoaster](https://github.com/ductiletoaster) in
15
+ [#27](https://github.com/artokun/comfyui-mcp/issues/27).
16
+
9
17
  ### Fixed
10
18
 
19
+ - **Federation timeouts on `resources/list` / `prompts/list`** — federating
20
+ clients (LiteLLM, etc.) probe every standard list endpoint on `initialize`
21
+ fan-out regardless of advertised capabilities. We don't expose resources or
22
+ prompts today, so those calls hit the SDK's default "Method not found" path
23
+ and each downstream paid a per-server timeout (~30 s default). We now
24
+ declare both capabilities and answer with empty lists from
25
+ `resources/list`, `resources/templates/list`, and `prompts/list`. No
26
+ behavioral change for clients that only use `tools/*`. Reported by
27
+ [@ductiletoaster](https://github.com/ductiletoaster) in
28
+ [#29](https://github.com/artokun/comfyui-mcp/issues/29).
29
+
11
30
  - **TS2742 portability error on pnpm builds (e.g. Glama)** — `tsc` previously
12
31
  failed to emit `dist/experimental/provider-registry.d.ts` under pnpm because
13
32
  the inferred return type of `getRegistry()` referenced a transitive type from
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Arthur R. Longbottom (artokun)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import { ListPromptsRequestSchema, ListResourcesRequestSchema, ListResourceTemplatesRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
4
5
  import { registerAllTools } from "./tools/index.js";
5
6
  import { logger } from "./utils/logger.js";
6
7
  import { JobWatcher } from "./services/job-watcher.js";
@@ -11,9 +12,23 @@ async function createConfiguredServer() {
11
12
  name: "comfyui-mcp",
12
13
  version: "0.1.0",
13
14
  }, {
14
- capabilities: { tools: {} },
15
+ // We declare `resources` and `prompts` (with noop list handlers below)
16
+ // so federating clients like LiteLLM's MCP gateway, which probe every
17
+ // standard list endpoint on initialize fan-out, get a fast empty list
18
+ // instead of a per-server timeout from "Method not found". We don't
19
+ // expose resources or prompts today; advertising them is spec-correct
20
+ // when paired with a list handler that returns the empty set.
21
+ // Reported by @ductiletoaster in #29.
22
+ capabilities: { tools: {}, resources: {}, prompts: {} },
15
23
  });
16
24
  await registerAllTools(server);
25
+ server.server.setRequestHandler(ListResourcesRequestSchema, async () => ({
26
+ resources: [],
27
+ }));
28
+ server.server.setRequestHandler(ListResourceTemplatesRequestSchema, async () => ({ resourceTemplates: [] }));
29
+ server.server.setRequestHandler(ListPromptsRequestSchema, async () => ({
30
+ prompts: [],
31
+ }));
17
32
  return server;
18
33
  }
19
34
  async function main() {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,KAAK,UAAU,sBAAsB;IACnC,MAAM,MAAM,GAAG,IAAI,SAAS,CAC1B;QACE,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,OAAO;KACjB,EACD;QACE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;KAC5B,CACF,CAAC;IACF,MAAM,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,UAAU,CAAC,eAAe,EAAE,CAAC;IAEnC,IAAI,GAAG,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;QAC7B,MAAM,eAAe,CAAC;YACpB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,YAAY,EAAE,sBAAsB;SACrC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,wCAAw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M,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;IACrD,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comfyui-mcp",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "mcpName": "io.github.artokun/comfyui-mcp",
5
5
  "description": "MCP server for ComfyUI — workflow execution, visualization, composition, registry, and skill generation",
6
6
  "homepage": "https://comfyui-mcp.artokun.io/docs",