Skip to content

feat(server): add McpServer.applyConfig() to reload configuration - #3051

Merged
Lightning00Blade merged 2 commits into
mainfrom
cd4a-config/4d-server-apply-config
Oct 19, 2026
Merged

Lightning00Blade merged 2 commits into
mainfrom
cd4a-config/4d-server-apply-config

Conversation

@Lightning00Blade

@Lightning00Blade Lightning00Blade commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Adds McpServer.applyConfig() to apply reloadable configuration changes to a running MCP server without restarting (McpServer.applyConfig() has no production caller yet; it will be called by the config watcher in the next PR in the stack).

  • Acquires the tool mutex, merges reloadable options onto the startup ServerConfig, and builds updated tool definitions before committing.
  • Commits the new ServerConfig atomically, updates ToolHandlers and MCP RegisteredTools in place (emitting at most one debounced notifications/tools/list_changed), refreshes combined filesystem roots, and runs McpContext.onConfigChanged().

Stack created with GitHub Stacks CLI • Give Feedback 💬

@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from a7b06f9 to e181ac0 Compare October 9, 2026 15:00
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from e181ac0 to 933ec0c Compare October 12, 2026 14:02
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from 933ec0c to 3a5824c Compare October 12, 2026 15:24
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from 3a5824c to d909593 Compare October 12, 2026 22:33
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from d909593 to d228ca3 Compare October 12, 2026 22:47
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch 2 times, most recently from 19d6423 to 659cfaf Compare October 14, 2026 13:17
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch 2 times, most recently from 62f3548 to cb1394f Compare October 15, 2026 13:28
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from cb1394f to 76aff6a Compare October 16, 2026 09:28
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from 76aff6a to f6789de Compare October 16, 2026 11:49
@Lightning00Blade
Lightning00Blade removed this pull request from stack #3052 October 16, 2026 12:12
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from f6789de to 70584ba Compare October 16, 2026 13:11
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from 70584ba to fcf80af Compare October 16, 2026 13:15
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from fcf80af to cac2807 Compare October 16, 2026 13:24
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch 2 times, most recently from afdb639 to ddb32c8 Compare October 19, 2026 11:32
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from ddb32c8 to 12696da Compare October 19, 2026 12:10
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch 2 times, most recently from 8ec5f38 to ae735ce Compare October 19, 2026 12:53
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from ae735ce to 2f2688c Compare October 19, 2026 13:06
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch 2 times, most recently from 6b40f5c to dbce8e6 Compare October 19, 2026 13:52
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch 2 times, most recently from 3967077 to 299b932 Compare October 19, 2026 14:56
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from 299b932 to e948f52 Compare October 19, 2026 16:05
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from e948f52 to 786c8f0 Compare October 19, 2026 16:16
Base automatically changed from cd4a-config/4c-tool-handler-update to main October 19, 2026 16:44
@Lightning00Blade
Lightning00Blade force-pushed the cd4a-config/4d-server-apply-config branch from 99d8fd6 to f83713f Compare October 19, 2026 16:44
@Lightning00Blade
Lightning00Blade marked this pull request as ready for review October 19, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants