Sockeon MCP provides a modular application kernel with guided workflows and focused tool packs for Sockeon development.
The new server is split by responsibility:
src/Foundation: app boot, logger, container, and server factory.src/Domain: reusable services (CodeGenerator,TemplateRenderer,DocsRepository,ValidationRulesCatalog).src/Capabilities/Tools: domain tools (Scaffold,Config,Realtime,Security,Observability).src/Capabilities/Resources: docs, stubs, and validation resources.src/Capabilities/Prompts: workflow-oriented guided prompts.src/Workflows: orchestration primitives for high-level guided flows.
Only src/Capabilities is discovered by MCP runtime.
cd mcp
composer installRun the MCP server:
php public/server.phpsockeon_scaffold_serversockeon_scaffold_controllersockeon_scaffold_examplesockeon_config_serversockeon_config_rate_limitsockeon_config_corssockeon_config_reverse_proxysockeon_realtime_websocket_handlersockeon_realtime_http_routesockeon_realtime_room_managementsockeon_realtime_namespace_managementsockeon_security_validation_rulessockeon_security_middlewaresockeon_security_authenticationsockeon_observability_error_handlersockeon_observability_logging_setup
sockeon://docs/quick-startsockeon://docs/controllerssockeon://docs/{category}/{topic}sockeon://stubs/{type}/{name}sockeon://validation/rules
sockeon_workflow_scaffold_realtime_appsockeon_workflow_harden_production_server
composer test- Create a class under
src/Capabilities/Tools/<Domain>/. - Annotate methods with
#[McpTool(...)]. - Keep generation/business logic in
src/Domainservices (CodeGeneratorfirst, then focused helpers). - Add unit tests in
tests/Unit.
- Documentation resources use a remote-first strategy with local fallback text for key pages.