定制 boneframework/mcp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boneframework/mcp

Composer 安装命令:

composer require boneframework/mcp

包简介

MCP for Bone Framework

README 文档

README

Build Status Code Coverage Scrutinizer Code Quality
MCP for Bone Framework

Installation

Install via composer:

composer require boneframework/mcp

Configuration

1. Register the Package

Enable the package in your config/packages.php:

<?php

return [
    'packages' => [
        Bone\BoneDoctrine\BoneDoctrinePackage::class,
        App\AppPackage::class,
        Bone\MCP\MCPPackage::class,
    ],
];

2. Configure MCP Server (Optional)

Create config/mcp.php to customize the MCP server:

<?php

return [
    'mcp' => [
        'server_name' => 'Your Application MCP',
        'server_version' => '1.0.0',
        'instructions' => 'MCP server for managing your application features.',
    ],
];

Usage

The MCP server is now available at /mcp endpoint in your application.

Access the MCP Endpoint

  • GET /mcp - Health check / connection test
  • POST /mcp - Send JSON-RPC requests to the MCP server

Example JSON-RPC Request

POST /mcp
Content-Type: application/json

{
    "jsonrpc": "2.0",
    "method": "initialize",
    "params": {
        "protocolVersion": "2024-11-05",
        "capabilities": {},
        "clientInfo": {
            "name": "MyClient",
            "version": "1.0.0"
        }
    },
    "id": 1
}

MCP Capabilities

The Bone Framework MCP package provides:

  • Tools - Executable functions that AI agents can call
  • Resources - Data sources that can be read
  • Prompts - Pre-defined templates for AI interactions
  • Server-initiated Communication - Elicitations, sampling, logging, progress notifications

Development

Running Tests

vendor/bin/codecept run

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Credits

License

MIT License. See the LICENSE file for details.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固