connect DEV to live MCP configuration and verify tool conformance

This commit is contained in:
2026-09-29 10:36:50 +01:00
parent 20bbbd26bd
commit 9592c9b274
16 changed files with 417 additions and 18 deletions
@@ -0,0 +1,21 @@
package p.studio.api.automation;
import p.studio.api.operation.OperationSubscription;
import java.nio.file.Path;
import java.util.Optional;
/** Connection assistance only. Copying credentials never grants project authority. */
public interface AgentConnectionGuide {
Optional<String> endpoint();
/** Explicit secret-bearing export for the clipboard; never persist or log this string. */
String configuration(Path openProjectRoot);
OperationSubscription subscribe(Runnable changed);
static AgentConnectionGuide unavailable() {
return new AgentConnectionGuide() {
public Optional<String> endpoint() { return Optional.empty(); }
public String configuration(Path root) { throw new IllegalStateException("Connection unavailable"); }
public OperationSubscription subscribe(Runnable changed) { changed.run(); return () -> {}; }
};
}
}