|
80 | 80 |
|
81 | 81 | 'http_dedicated' => [
|
82 | 82 | 'enabled' => (bool) env('MCP_HTTP_DEDICATED_ENABLED', true),
|
| 83 | + 'legacy' => (bool) env('MCP_HTTP_DEDICATED_LEGACY', false), |
83 | 84 | 'host' => env('MCP_HTTP_DEDICATED_HOST', '127.0.0.1'),
|
84 | 85 | 'port' => (int) env('MCP_HTTP_DEDICATED_PORT', 8090),
|
85 | 86 | 'path_prefix' => env('MCP_HTTP_DEDICATED_PATH_PREFIX', 'mcp'),
|
86 | 87 | 'ssl_context_options' => [],
|
| 88 | + 'enable_json_response' => (bool) env('MCP_HTTP_DEDICATED_JSON_RESPONSE', true), |
| 89 | + 'event_store' => env('MCP_HTTP_DEDICATED_EVENT_STORE'), // FQCN or null |
87 | 90 | ],
|
88 | 91 |
|
89 | 92 | 'http_integrated' => [
|
90 | 93 | 'enabled' => (bool) env('MCP_HTTP_INTEGRATED_ENABLED', true),
|
| 94 | + 'legacy' => (bool) env('MCP_HTTP_INTEGRATED_LEGACY', false), |
91 | 95 | 'route_prefix' => env('MCP_HTTP_INTEGRATED_ROUTE_PREFIX', 'mcp'),
|
92 | 96 | 'middleware' => explode(',', env('MCP_HTTP_INTEGRATED_MIDDLEWARE', 'web')),
|
93 | 97 | 'domain' => env('MCP_HTTP_INTEGRATED_DOMAIN'),
|
94 | 98 | 'sse_poll_interval' => (int) env('MCP_HTTP_INTEGRATED_SSE_POLL_SECONDS', 1),
|
| 99 | + 'cors_origin' => env('MCP_HTTP_INTEGRATED_CORS_ORIGIN', '*'), |
| 100 | + 'enable_json_response' => (bool) env('MCP_HTTP_INTEGRATED_JSON_RESPONSE', true), |
| 101 | + 'json_response_timeout' => (int) env('MCP_HTTP_INTEGRATED_JSON_TIMEOUT', 30), |
| 102 | + 'event_store' => env('MCP_HTTP_INTEGRATED_EVENT_STORE'), // FQCN or null |
95 | 103 | ],
|
96 | 104 | ],
|
97 | 105 |
|
| 106 | + /* |
| 107 | + |-------------------------------------------------------------------------- |
| 108 | + | Session Management Configuration |
| 109 | + |-------------------------------------------------------------------------- |
| 110 | + | |
| 111 | + | Configure how the MCP server manages client sessions. Sessions store |
| 112 | + | client state, message queues, and subscriptions. |
| 113 | + | |
| 114 | + */ |
| 115 | + 'session' => [ |
| 116 | + 'driver' => env('MCP_SESSION_DRIVER', 'cache'), // 'array' or 'cache' |
| 117 | + 'ttl' => (int) env('MCP_SESSION_TTL', 3600), // Session lifetime in seconds |
| 118 | + ], |
| 119 | + |
98 | 120 | /*
|
99 | 121 | |--------------------------------------------------------------------------
|
100 | 122 | | Pagination Limit
|
|
0 commit comments