|
44 | 44 | '.git',
|
45 | 45 | ],
|
46 | 46 | 'definitions_file' => base_path('routes/mcp.php'),
|
47 |
| - 'auto_discover' => env('MCP_AUTO_DISCOVER', true), |
48 |
| - 'save_to_cache' => env('MCP_DISCOVERY_SAVE_TO_CACHE', true), |
| 47 | + 'auto_discover' => (bool) env('MCP_AUTO_DISCOVER', true), |
| 48 | + 'save_to_cache' => (bool) env('MCP_DISCOVERY_SAVE_TO_CACHE', true), |
49 | 49 | ],
|
50 | 50 |
|
51 | 51 | /*
|
|
75 | 75 | */
|
76 | 76 | 'transports' => [
|
77 | 77 | 'stdio' => [
|
78 |
| - 'enabled' => env('MCP_STDIO_ENABLED', true), |
| 78 | + 'enabled' => (bool) env('MCP_STDIO_ENABLED', true), |
79 | 79 | ],
|
80 | 80 |
|
81 | 81 | 'http_dedicated' => [
|
82 |
| - 'enabled' => env('MCP_HTTP_DEDICATED_ENABLED', true), |
| 82 | + 'enabled' => (bool) env('MCP_HTTP_DEDICATED_ENABLED', true), |
83 | 83 | 'host' => env('MCP_HTTP_DEDICATED_HOST', '127.0.0.1'),
|
84 | 84 | 'port' => (int) env('MCP_HTTP_DEDICATED_PORT', 8090),
|
85 | 85 | 'path_prefix' => env('MCP_HTTP_DEDICATED_PATH_PREFIX', 'mcp'),
|
86 | 86 | 'ssl_context_options' => [],
|
87 | 87 | ],
|
88 | 88 |
|
89 | 89 | 'http_integrated' => [
|
90 |
| - 'enabled' => env('MCP_HTTP_INTEGRATED_ENABLED', true), |
| 90 | + 'enabled' => (bool) env('MCP_HTTP_INTEGRATED_ENABLED', true), |
91 | 91 | 'route_prefix' => env('MCP_HTTP_INTEGRATED_ROUTE_PREFIX', 'mcp'),
|
92 | 92 | 'middleware' => explode(',', env('MCP_HTTP_INTEGRATED_MIDDLEWARE', 'web')),
|
93 | 93 | 'domain' => env('MCP_HTTP_INTEGRATED_DOMAIN'),
|
|
118 | 118 | */
|
119 | 119 | 'capabilities' => [
|
120 | 120 | 'tools' => [
|
121 |
| - 'enabled' => env('MCP_CAP_TOOLS_ENABLED', true), |
122 |
| - 'listChanged' => env('MCP_CAP_TOOLS_LIST_CHANGED', true), |
| 121 | + 'enabled' => (bool) env('MCP_CAP_TOOLS_ENABLED', true), |
| 122 | + 'listChanged' => (bool) env('MCP_CAP_TOOLS_LIST_CHANGED', true), |
123 | 123 | ],
|
124 | 124 |
|
125 | 125 | 'resources' => [
|
126 |
| - 'enabled' => env('MCP_CAP_RESOURCES_ENABLED', true), |
127 |
| - 'subscribe' => env('MCP_CAP_RESOURCES_SUBSCRIBE', true), |
128 |
| - 'listChanged' => env('MCP_CAP_RESOURCES_LIST_CHANGED', true), |
| 126 | + 'enabled' => (bool) env('MCP_CAP_RESOURCES_ENABLED', true), |
| 127 | + 'subscribe' => (bool) env('MCP_CAP_RESOURCES_SUBSCRIBE', true), |
| 128 | + 'listChanged' => (bool) env('MCP_CAP_RESOURCES_LIST_CHANGED', true), |
129 | 129 | ],
|
130 | 130 |
|
131 | 131 | 'prompts' => [
|
132 |
| - 'enabled' => env('MCP_CAP_PROMPTS_ENABLED', true), |
133 |
| - 'listChanged' => env('MCP_CAP_PROMPTS_LIST_CHANGED', true), |
| 132 | + 'enabled' => (bool) env('MCP_CAP_PROMPTS_ENABLED', true), |
| 133 | + 'listChanged' => (bool) env('MCP_CAP_PROMPTS_LIST_CHANGED', true), |
134 | 134 | ],
|
135 | 135 |
|
136 | 136 | 'logging' => [
|
137 |
| - 'enabled' => env('MCP_CAP_LOGGING_ENABLED', true), |
138 |
| - 'setLevel' => env('MCP_CAP_LOGGING_SET_LEVEL', false), |
| 137 | + 'enabled' => (bool) env('MCP_CAP_LOGGING_ENABLED', true), |
| 138 | + 'setLevel' => (bool) env('MCP_CAP_LOGGING_SET_LEVEL', false), |
139 | 139 | ],
|
140 | 140 | ],
|
141 | 141 |
|
|
0 commit comments