mcp-server-bundle

A Symfony Bundle to create MCP servers

GitHub Stars

48

User Rating

Not Rated

Favorites

0

Views

28

Forks

3

Issues

4

Installation
Difficulty
Advanced
Estimated Time
20-45 minutes

Installation

The MCP Server Bundle provides a structured way to create and manage tools that can be used by clients via JSON-RPC requests. It includes features for MCP tool management, and JSON-RPC method handling. This bundle is designed to be flexible and extensible, allowing developers to create custom tool handlers and method handlers as needed. MethodHandlers and ToolHandlers are registered and autowired using attributes, making it easy to define and manage your own tools.
1Install the MCP Server Bundle via Composer:
bash
composer require ecourty/mcp-server-bundle
2Add the bundle to your config/bundles.php (if not using Symfony Flex):
php
return [
    // ...
    Ecourty\McpServerBundle\McpServerBundle::class => ['all' => true],
];
3Configure the routes in config/routes/mcp.yaml:
```yaml mcp_controller: path: /mcp controller: mcp_server.entrypoint_controller

Additional Resources