generated from host-uk/core-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Issue
The McpApiController at src/Mcp/Controllers/McpApiController.php has a namespace mismatch - it declares namespace Mod\Api\Controllers; but resides in the Core package structure.
File
src/Mcp/Controllers/McpApiController.php (Line 5)
Current Code
namespace Mod\Api\Controllers;Expected
namespace Core\Mcp\Controllers;Additional Issues in This File
- Missing rate limiting: The
callToolmethod has no rate limiting beyond quota checks - Potential command injection (Line 227-236): The artisan command execution uses
proc_openwith user-supplied server ID from config, but the config lookup ($commandMap[$server]) could potentially be exploited if the config is modified - Missing input sanitization: The
$validated['server']and$validated['tool']values are passed directly to processes
Severity
Medium - Namespace issue will cause autoloading failure
Reactions are currently unavailable