expose manifest-driven project knowledge through MCP
This commit is contained in:
@@ -27,6 +27,9 @@ public final class McpToolRegistry {
|
||||
if (handler == null) throw new IllegalArgumentException("Unknown or unavailable tool");
|
||||
catalog.validateArguments(name, arguments);
|
||||
try { return handler.apply(arguments); }
|
||||
catch (p.studio.api.automation.AutomationException failure) {
|
||||
return McpToolResult.failure(mapper, failure.failure());
|
||||
}
|
||||
catch (ControlDeniedException denied) {
|
||||
var code = switch (denied.status()) {
|
||||
case INVALID_TASK -> AutomationFailure.Code.INVALID_TASK;
|
||||
|
||||
Reference in New Issue
Block a user