Skip to content

Optimize Backend Access by Removing MCP Command Registration - #33

Open
cto-new[bot] wants to merge 1 commit into
mainfrom
perf/backend-access-optimization
Open

cto-new[bot] wants to merge 1 commit into
mainfrom
perf/backend-access-optimization

Conversation

@cto-new

@cto-new cto-new Bot commented Oct 30, 2025

Copy link
Copy Markdown

Summary

This PR optimizes backend access performance by removing the registration of the MCP command from the console configuration. This helps to reduce unnecessary overhead in backend CLI operations where the MCP feature is not needed.

Details

  • Removed the MCPServer command registration from config/console.php.
  • Prevents unnecessary autoloading of MCP-related dependencies during backend console initialization.
  • Results in faster and leaner backend administrative command execution.
  • No functional or user-visible features are impacted; MCP can still be enabled separately if needed.

…ration from console

Unregisters the MCP command from the console configuration to prevent unnecessary loading of the MCPServer on every backend console request. This change is aimed at reducing initialization overhead for all backend CLI operations, particularly benefitting projects that do not use the MCP feature.

This results in a faster and leaner backend command-line experience, with no user-visible impact for standard admin operations. Re-register MCPServer only if MCP functionality is needed.
@funadmin

funadmin commented Oct 30, 2025 via email

Copy link
Copy Markdown
Owner

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.

1 participant