sockeon / mcp
v0.1.0
2026-04-28 12:20 UTC
Requires
- mcp/sdk: dev-main
- symfony/finder: ^8.0
Requires (Dev)
- phpunit/phpunit: ^11.0
README
Sockeon MCP provides a modular application kernel with guided workflows and focused tool packs for Sockeon development.
Architecture
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.
Installation
cd mcp
composer install
Run the MCP server:
php public/server.php
MCP Capability Model
Tools (modular)
sockeon_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
Resources
sockeon://docs/quick-startsockeon://docs/controllerssockeon://docs/{category}/{topic}sockeon://stubs/{type}/{name}sockeon://validation/rules
Workflow Prompts
sockeon_workflow_scaffold_realtime_appsockeon_workflow_harden_production_server
Development
Tests
composer test
Add New Tool Pack
- 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.
Notes
- Documentation resources use a remote-first strategy with local fallback text for key pages.