add MCP tool contracts and authenticated local HTTP transport
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package p.studio.api.automation;
|
||||
|
||||
/** Exactly one lookup key, always scoped to a separately validated project/task identity. */
|
||||
public record OperationLookup(String operationId, String clientRequestId) {
|
||||
public OperationLookup {
|
||||
if ((operationId == null) == (clientRequestId == null)
|
||||
|| (operationId != null && operationId.isBlank())
|
||||
|| (clientRequestId != null && clientRequestId.isBlank()))
|
||||
throw new IllegalArgumentException("Supply exactly one nonblank operationId or clientRequestId");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user