On this page
MCPService
- Package
- libtmux-swift
- Source
- Sources/LibTmuxMCP/Serve.swift
- struct MCPService : struct MCPService
- Bases:
Serves MCP over a stream of request lines.
Every request runs in a task of its own, which is the whole point: a wait that blocks for thirty seconds must not stop
ping, a second wait, or the cancellation that would end it. Serving them one at a time makes the server's slowest tool its latency for everything.
2 declared, 0 inherited
Members
- init(handler:) method
- serve(_:write:) method Reads requests from
linesand writes each answer throughwrite.