Skip to main content
Glama
mcp-server.php4.9 kB
<?php return [ /* |-------------------------------------------------------------------------- | MCP Server Activation |-------------------------------------------------------------------------- | | Enable or disable the MCP server functionality. When disabled, no routes | will be registered and the server will not respond to any requests. | */ 'enabled' => env('MCP_SERVER_ENABLED', true), /* |-------------------------------------------------------------------------- | Server Information |-------------------------------------------------------------------------- | | Configuration for the MCPServer instance. These values are used when | registering the MCPServer as a singleton in the service container. | */ 'server' => [ 'name' => 'OP.GG MCP Server', 'version' => '0.1.0', ], /* |-------------------------------------------------------------------------- | MCP Server | Specify the MCP path. | | GET /{default_path}/sse | POST /{default_path}/message (This endpoint requires `sessionId` from `/sse`) | |-------------------------------------------------------------------------- */ 'default_path' => 'mcp', /* |-------------------------------------------------------------------------- | SSE Route Middleware |-------------------------------------------------------------------------- | | Middleware to apply to the SSE route (/{default_path}/sse). Use this to protect | your SSE endpoint with authentication or other middleware as needed. | This will only be applied to the SSE endpoint, not to the message endpoint. | */ 'middlewares' => [ // 'auth:api' ], /* |-------------------------------------------------------------------------- | Server-Sent Events Provider |-------------------------------------------------------------------------- | | The type of server provider to use. Supported values are 'sse' and 'streamable_http'. | Use 'streamable_http' for the recommended HTTP transport (default). | Use 'sse' for legacy Server-Sent Events transport with real-time capabilities. | */ 'server_provider' => 'sse', /* |-------------------------------------------------------------------------- | SSE Adapters Configuration |-------------------------------------------------------------------------- | | Configuration for the different SSE adapters available in the MCP server. | Each adapter has its own configuration options. | | Adapters function as a pub/sub message broker between clients and the server. | When a client sends a message to the server endpoint, the server processes it | and publishes a response through the adapter. SSE connections subscribe to | these messages and deliver them to the client in real-time. | | The Redis adapter uses Redis lists as message queues, with each client having | its own queue identified by a unique client ID. This enables efficient and | scalable real-time communication in distributed environments. | | The InMemory adapter stores messages in memory for testing purposes. | */ 'sse_adapter' => 'redis', 'adapters' => [ 'redis' => [ 'prefix' => 'mcp_sse_', 'connection' => env('MCP_REDIS_CONNECTION', 'default'), // database.php redis 'ttl' => 100, ], 'memory' => [ 'max_messages_per_client' => 100, ], // Add more adapter configurations as needed ], /* |-------------------------------------------------------------------------- | Tools List | https://modelcontextprotocol.io/docs/concepts/tools |-------------------------------------------------------------------------- | | List of tools supported by the MCP server. These values are used when | generating the tool list for the client. | */ // Register your tools here 'tools' => [ \App\MCP\Tools\GetOrdersTool::class, \App\MCP\Tools\GetProductsTool::class, \App\MCP\Tools\GetCustomerStatsTool::class, \App\MCP\Tools\GetOrderAnalyticsTool::class, \App\MCP\Tools\SendExcelEmailTool::class, ], /* |-------------------------------------------------------------------------- | Prompts List | https://modelcontextprotocol.io/docs/concepts/prompts |-------------------------------------------------------------------------- */ 'prompts' => [ ], /* |-------------------------------------------------------------------------- | Resources List | https://modelcontextprotocol.io/docs/concepts/resources |-------------------------------------------------------------------------- */ 'resources' => [ ], ];

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/uberr2000/mcp_demo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server