-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Labels
MCPMCP server (src/libtmux/mcp/)MCP server (src/libtmux/mcp/)
Description
Context
All 6 resource handlers in src/libtmux/mcp/resources/hierarchy.py call _get_server() with no arguments, while every tool function accepts socket_name: str | None = None. The server instructions at server.py:20 promise multi-server support via socket_name, creating a capability gap between tools and resources.
Problem
Resources always connect to the default socket (or LIBTMUX_SOCKET env var). There's no way to read resources from alternate tmux sockets.
Proposed Solution
Investigate whether FastMCP resource URI templates can accept query parameters (e.g., tmux://sessions?socket=foo) or if a separate approach is needed. This may require upstream FastMCP changes.
Files
src/libtmux/mcp/resources/hierarchy.py— all 6 resource handlers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
MCPMCP server (src/libtmux/mcp/)MCP server (src/libtmux/mcp/)