tiny-http-mcp-server 0.1.12 → 0.1.14

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/README.md CHANGED
@@ -436,7 +436,7 @@ Returned `HttpServer` instances support:
436
436
  | `maxStreamBufferBytes` | `number` | `1048576` | End a GET SSE stream before a live write when its buffered bytes exceed this limit. |
437
437
  | `maxSseEventHistory` | `number` | `100` | Number of server-sent events retained for `Last-Event-ID` replay. |
438
438
  | `sseKeepAliveMs` | `number` | `30000` | GET SSE keepalive interval in milliseconds. Set to `0` to disable keepalive comments. |
439
- | `maxConcurrentToolCalls` | `number` | unlimited | Maximum concurrent tool calls across sessions. |
439
+ | `maxConcurrentToolCalls` | `number` | `4` | Maximum concurrent tool calls across sessions. |
440
440
  | `sessionStore` | `SessionStore` | in-memory store | Pluggable session-record storage; SSE streams and replay history remain instance-local. |
441
441
  | `requestIdGenerator` | `() => string` | incrementing ids | Generates request ids when `X-Request-Id` is absent. |
442
442
  | `observability` | `HttpObservabilityOptions` | none | Emits request, auth, session, stream, and tool lifecycle events. |
@@ -622,7 +622,7 @@ tiny-http-mcp-server [options]
622
622
  | `--max-stream-buffer-bytes <bytes>` | `1048576` | End a GET SSE stream before a live notification or keepalive write when buffered bytes exceed this limit. |
623
623
  | `--max-sse-event-history <count>` | `100` | Number of SSE events retained for `Last-Event-ID` replay. |
624
624
  | `--sse-keep-alive-ms <ms>` | `30000` | GET SSE keepalive interval in milliseconds. Set to `0` to disable keepalive comments. |
625
- | `--max-concurrent-tool-calls <count>` | unlimited | Maximum concurrent tool calls across sessions. |
625
+ | `--max-concurrent-tool-calls <count>` | `4` | Maximum concurrent tool calls across sessions. |
626
626
  | `--trusted-proxy` | off | Trust `X-Forwarded-Proto` and `X-Forwarded-Host` for metadata challenge URLs. |
627
627
  | `--request-timeout-ms <ms>` | Node default | Node HTTP request timeout. |
628
628
  | `--headers-timeout-ms <ms>` | Node default | Node HTTP headers timeout. |
package/dist/cli.js CHANGED
@@ -44,7 +44,9 @@ const HELP_TEXT = [
44
44
  " --sse-keep-alive-ms <ms>",
45
45
  " GET SSE keepalive interval (default: 30000; 0 disables)",
46
46
  " --max-concurrent-tool-calls <count>",
47
- " Maximum concurrent tool calls across sessions",
47
+ " Maximum concurrent tool calls across sessions (default: 4)",
48
+ " --max-queued-tool-calls <count>",
49
+ " Maximum waiting tool calls (default: 64; 0 disables waiting)",
48
50
  " --trusted-proxy Trust X-Forwarded-Proto and X-Forwarded-Host",
49
51
  " --request-timeout-ms <ms>",
50
52
  " Node HTTP request timeout",
@@ -201,6 +203,7 @@ function parseCliOptions(args) {
201
203
  "max-sse-event-history": { type: "string" },
202
204
  "sse-keep-alive-ms": { type: "string" },
203
205
  "max-concurrent-tool-calls": { type: "string" },
206
+ "max-queued-tool-calls": { type: "string" },
204
207
  "trusted-proxy": { type: "boolean" },
205
208
  "request-timeout-ms": { type: "string" },
206
209
  "headers-timeout-ms": { type: "string" },
@@ -227,6 +230,7 @@ function parseCliOptions(args) {
227
230
  const maxSseEventHistory = parseOptionalInteger(values["max-sse-event-history"], "--max-sse-event-history", 0);
228
231
  const sseKeepAliveMs = parseOptionalInteger(values["sse-keep-alive-ms"], "--sse-keep-alive-ms", 0);
229
232
  const maxConcurrentToolCalls = parseOptionalInteger(values["max-concurrent-tool-calls"], "--max-concurrent-tool-calls", 1);
233
+ const maxQueuedToolCalls = parseOptionalInteger(values["max-queued-tool-calls"], "--max-queued-tool-calls", 0);
230
234
  const requestTimeoutMs = parseOptionalInteger(values["request-timeout-ms"], "--request-timeout-ms", 0);
231
235
  const headersTimeoutMs = parseOptionalInteger(values["headers-timeout-ms"], "--headers-timeout-ms", 0);
232
236
  const keepAliveTimeoutMs = parseOptionalInteger(values["keep-alive-timeout-ms"], "--keep-alive-timeout-ms", 0);
@@ -257,6 +261,7 @@ function parseCliOptions(args) {
257
261
  ...(maxSseEventHistory === undefined ? {} : { maxSseEventHistory }),
258
262
  ...(sseKeepAliveMs === undefined ? {} : { sseKeepAliveMs }),
259
263
  ...(maxConcurrentToolCalls === undefined ? {} : { maxConcurrentToolCalls }),
264
+ ...(maxQueuedToolCalls === undefined ? {} : { maxQueuedToolCalls }),
260
265
  trustedProxy: values["trusted-proxy"] ?? false,
261
266
  ...(requestTimeoutMs === undefined ? {} : { requestTimeoutMs }),
262
267
  ...(headersTimeoutMs === undefined ? {} : { headersTimeoutMs }),
@@ -412,6 +417,7 @@ export async function runCli(args = process.argv.slice(2), dependencies = {}) {
412
417
  ...(options.maxConcurrentToolCalls === undefined
413
418
  ? {}
414
419
  : { maxConcurrentToolCalls: options.maxConcurrentToolCalls }),
420
+ ...(options.maxQueuedToolCalls === undefined ? {} : { maxQueuedToolCalls: options.maxQueuedToolCalls }),
415
421
  ...(options.trustedProxy ? { trustedProxy: true } : {}),
416
422
  ...(oauth === undefined ? {} : { oauth })
417
423
  });
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "name": "tiny-http-mcp-server",
21
- "version": "0.1.12",
21
+ "version": "0.1.14",
22
22
  "license": "MIT"
23
23
  },
24
24
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-http-mcp-server",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",