Skip to content

Document async loading sub-parameters (--async-min-servers, --async-timeout, --async-batch-notifications) #393

Description

@RCrushMe

Summary

The async loading sub-parameters are accepted by the CLI and listed in 1mcp serve --help, but none of them appear in any of the 78 documentation pages under docs/en/ (or docs/zh/). Only the parent flag --enable-async-loading is documented (in fast-startup.md, configuration.md, and serve.md).

Undocumented parameters

Parameter In --help? In docs? Recommended value documented?
--async-min-servers <n> Yes No No
--async-timeout <ms> Yes No No
--async-batch-notifications Yes No No
--async-batch-delay <ms> Yes No No
--async-notify-on-ready Yes No No

Why it matters

  • fast-startup.md promotes async loading as a key feature but only shows --enable-async-loading with no tuning guidance.
  • configuration.md lists --enable-config-reload and --config-reload-debounce with example values (1000, 2000), but the async family gets no equivalent treatment.
  • Users running 20+ upstream servers need --async-min-servers and --async-timeout to control the readiness gate, but there is no documentation explaining what these values do or how to choose them.
  • --async-batch-notifications is critical for preventing notification spam when many servers come online concurrently, yet its behavior is only discoverable by reading source code.

Suggested fix

Add a section to docs/en/guide/advanced/fast-startup.md (and the zh equivalent) covering:

  1. What each sub-parameter controls
  2. Recommended values for small (1-5 servers) vs large (20+ servers) deployments
  3. How --async-min-servers interacts with the readiness gate and /health/ready
  4. How --async-batch-notifications and --async-batch-delay reduce listChanged notification volume
  5. A production example combining the full async family

Environment

  • @1mcp/agent v0.34.4
  • Verified against 1mcp serve --help output and full-text search of all 78 files in docs/en/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions