sockeon/mcp
最新稳定版本:v0.1.0
Composer 安装命令:
composer require sockeon/mcp
包简介
README 文档
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.
sockeon/mcp 适用场景与选型建议
sockeon/mcp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 2, 最近一次更新时间为 2026 年 04 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sockeon/mcp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sockeon/mcp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-28