Install via composer:
composer require boneframework/mcpEnable the package in your config/packages.php:
<?php
return [
'packages' => [
Bone\BoneDoctrine\BoneDoctrinePackage::class,
App\AppPackage::class,
Bone\MCP\MCPPackage::class,
],
];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.',
],
];The MCP server is now available at /mcp endpoint in your application.
- GET
/mcp- Health check / connection test - POST
/mcp- Send JSON-RPC requests to the MCP server
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
}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
vendor/bin/codecept runContributions are welcome! Please feel free to submit a Pull Request.
- Derek McLean - @delboy1978uk
MIT License. See the LICENSE file for details.


