fix: keep stdin open for STDIO servers + describe instance resolves server names

STDIO MCP servers read from stdin and exit on EOF. Docker containers close
stdin by default, causing all STDIO servers to crash immediately. Added
OpenStdin: true to container creation.

Describe instance now resolves server names (like logs command), preferring
RUNNING instances. Added 7 new describe tests covering server name resolution,
healthcheck display, events section, and template detail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michal
2026-02-23 00:26:28 +00:00
parent 4f010f2ae4
commit fe95dbaa27
3 changed files with 180 additions and 6 deletions

View File

@@ -80,6 +80,9 @@ export class DockerContainerManager implements McpOrchestrator {
Env: envArr,
ExposedPorts: exposedPorts,
Labels: labels,
// Keep stdin open for STDIO MCP servers (they read from stdin)
OpenStdin: true,
StdinOnce: false,
HostConfig: {
PortBindings: portBindings,
Memory: memoryLimit,