Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

mcp.server.serverFromEnvironment

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

mcp.server.serverFromEnvironment ( environment : : Readonly<Record<string, string | undefined>> = process.env ) → Server
function [source]
function [source]
mcp.server.serverFromEnvironment

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

Esc

Type to search.