mcp.server.serverFromEnvironment
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
The tmux server this process was pointed at.
An MCP client launches this with an environment and a command line, and nothing else, so the environment is the only place a socket can come from. The library itself never reads these — a library that picks up ambient configuration is a library that surprises its caller — which is why the reading happens out here, at the edge that has a process to belong to.
Discussed in TypeScript MCP API