# get_server_info

Source: https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/

> Inspect tmux metadata; accepts no client-supplied executable input. The tmux server this process drives: its socket, version, daemon pid, and totals. Check the version before using a feature that needs a recent tmux.

tool MCPlatest

MCP concept example

A working example of the core library. It can change without notice.

[What concept means](https://libtmux.org/en/meta/support/#concept-and-alpha)

* **get_server_info**()

  tool \[[source](https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/mcp/src/tools/discovery.ts#L216)][¶](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info)

  Inspect tmux metadata; accepts no client-supplied executable input. The tmux server this process drives: its socket, version, daemon pid, and totals. Check the version before using a feature that needs a recent tmux.

  * MCP request method

    `tools/call` Send `get_server_info` as the tool name, with the arguments below.

  ## Arguments[#](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.parameters)

  No named arguments.

  ## Result[#](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.result)

  Returns [object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")

  * **[`panes`](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fpanes)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    * minimum

      `-9007199254740991`

    * maximum

      `9007199254740991`

  * **[`pid`](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fpid)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

  * **[`sessions`](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fsessions)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    * minimum

      `-9007199254740991`

    * maximum

      `9007199254740991`

  * **[`socketPath`](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2FsocketPath)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)") | [null](https://json-schema.org/understanding-json-schema/reference/null "null (JSON Schema)"))

  * **[`version`](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fversion)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

  * **[`windows`](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.output%2Fproperties%2Fwindows)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    * minimum

      `-9007199254740991`

    * maximum

      `9007199254740991`

  No other properties are accepted.

  ## Annotations[#](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.annotations)

  * [`destructiveHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#destructiveHint)

    `true`

  * [`idempotentHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#idempotentHint)

    `false`

  * [`openWorldHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#openWorldHint)

    `true`

  * [`readOnlyHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#readOnlyHint)

    `false`

  ## Protocol data[#](https://libtmux.org/en/ts/latest/mcp/tools/get_server_info/#mcp.tool.get_server_info.schemas)

  Use the complete advertised contract for validation and client integration.

  Input schema

  ```json
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {},
    "type": "object"
  }
  ```

  Output schema

  ```json
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "panes": {
        "maximum": 9007199254740991,
        "minimum": -9007199254740991,
        "type": "integer"
      },
      "pid": {
        "type": [
          "string",
          "null"
        ]
      },
      "sessions": {
        "maximum": 9007199254740991,
        "minimum": -9007199254740991,
        "type": "integer"
      },
      "socketPath": {
        "type": [
          "string",
          "null"
        ]
      },
      "version": {
        "type": "string"
      },
      "windows": {
        "maximum": 9007199254740991,
        "minimum": -9007199254740991,
        "type": "integer"
      }
    },
    "required": [
      "panes",
      "pid",
      "sessions",
      "socketPath",
      "version",
      "windows"
    ],
    "type": "object"
  }
  ```
