JumpServer 443-only MCP bridge for coding agents
Project description
mcp-jumpserver-gui-sucks
CAUTION: Operate production machines with extreme care. This MCP assumes no responsibility for production incidents caused by unsafe or incompetent model behavior.
A JumpServer 443-only MCP bridge for coding agents such as Codex and Claude. The project exposes a CLI-first, MFA-compatible, audit-preserving path into JumpServer assets without depending on port 2222 or any GUI-driven workflow in normal use.
Current Status
The main CLI and MCP chain is working against a real JumpServer instance:
- CLI-first login with terminal-entered MFA
- persisted durable
access_keyauth for REST discovery - persisted authenticated web-session cookies for KoKo terminal flows
- asset, node, connect-method, and asset-access discovery
- KoKo 443 WebSocket probing
- one-shot remote command execution through KoKo
- managed multi-turn terminal sessions for MCP-driven shell interaction
- process-local terminal idle reaping and session-cap enforcement
- explicit cookie-session refresh probing before terminal work
- a line-oriented CLI shell for non-MCP interactive terminal use
The current implementation is usable, but it is not feature-complete yet. The most important known limitation is:
- terminal access still depends on a valid cookie-backed web session, so a fully expired terminal session still requires a fresh
loginrun with MFA
Terminal-oriented entry points now accept either the concrete JumpServer account ID/alias required by the API or a user-facing account reference such as root, test-root, or the account username. The MCP resolves that reference to the concrete per-asset account ID before opening terminal sessions or creating connection tokens.
The project does not currently aim to provide file-manager or SFTP coverage.
Tracked Project Docs
- docs/live-instance-recon.md
- docs/web-terminal-flow.md
- docs/auth-state-format.md
- docs/cli-login-flow.md
Upstream Reference Repositories
The repository keeps several untracked upstream JumpServer codebases under extern/ for protocol and behavior reference only. They are not runtime dependencies of this package.
extern/jumpserver: backend API, authentication, and permission-model referenceextern/koko: KoKo terminal gateway and WebSocket behavior referenceextern/luna: legacy web-terminal frontend flow reference, especially around browser-driven terminal bootstrap behaviorextern/lina: newer web UI and API usage-pattern referenceextern/client: official client-side implementation reference for adjacent access workflows
Authentication Model
The runtime intentionally uses two auth layers:
access_keyfor durable REST access- authenticated web-session cookies for KoKo terminal access
Do not put live session secrets, cookies, or MFA values into MCP client config files. The intended flow is:
- Run the CLI login command once.
- Complete MFA in the terminal.
- Let the tool persist auth state into the user-scoped application state directory.
- Start the MCP server from Codex or Claude.
When the live JumpServer deployment enables a login captcha challenge, the CLI login command saves the captcha image under /private/tmp/ and opens it with the system image viewer before prompting for the captcha value in the terminal.
By default, persisted auth state lives under the platform-specific user application state directory:
- macOS example:
~/Library/Application Support/mcp-jumpserver-gui-sucks/auth-state.json
Advanced users can override the location with:
MCP_JUMPSERVER_GUI_SUCKS_STATE_DIRMCP_JUMPSERVER_GUI_SUCKS_STATE_FILE
Install
Use the published package directly:
uvx mcp-jumpserver-gui-sucks --help
Login Before Starting MCP
uvx mcp-jumpserver-gui-sucks login \
--base-url https://jumpserver.example.com \
--username alice
Useful verification commands:
uvx mcp-jumpserver-gui-sucks doctor
uvx mcp-jumpserver-gui-sucks refresh-session --force
The login command persists state outside the repository. MCP client config should only describe how to find that state, not embed the secrets themselves.
MCP Configuration
The MCP server entrypoint is:
uvx mcp-jumpserver-gui-sucks serve
serve defaults to stdio, which is the correct transport for Codex and Claude desktop-style MCP clients.
Codex (~/.codex/config.toml)
This matches the mcp_servers.* structure already used in your local ~/.codex/config.toml:
[mcp_servers.mcp-jumpserver-gui-sucks]
command = "uvx"
args = ["mcp-jumpserver-gui-sucks", "serve"]
startup_timeout_sec = 60.0
[mcp_servers.mcp-jumpserver-gui-sucks.env]
MCP_JUMPSERVER_GUI_SUCKS_BASE_URL = "https://jumpserver.example.com"
MCP_JUMPSERVER_GUI_SUCKS_VERIFY_TLS = "true"
MCP_JUMPSERVER_GUI_SUCKS_TERMINAL_IDLE_TIMEOUT_SECONDS = "900"
MCP_JUMPSERVER_GUI_SUCKS_TERMINAL_REAP_INTERVAL_SECONDS = "30"
MCP_JUMPSERVER_GUI_SUCKS_MAX_TERMINAL_SESSIONS = "8"
# Optional when the default state directory is not desired.
# MCP_JUMPSERVER_GUI_SUCKS_STATE_DIR = "/Users/alice/Library/Application Support/mcp-jumpserver-gui-sucks"
# MCP_JUMPSERVER_GUI_SUCKS_STATE_FILE = "/Users/alice/Library/Application Support/mcp-jumpserver-gui-sucks/auth-state.json"
# MCP_JUMPSERVER_GUI_SUCKS_ORG_ID = "00000000-0000-0000-0000-000000000002"
Claude (~/.claude.json)
This matches the mcpServers JSON shape already present in your local ~/.claude.json:
{
"mcpServers": {
"mcp-jumpserver-gui-sucks": {
"command": "uvx",
"args": ["mcp-jumpserver-gui-sucks", "serve"],
"env": {
"MCP_JUMPSERVER_GUI_SUCKS_BASE_URL": "https://jumpserver.example.com",
"MCP_JUMPSERVER_GUI_SUCKS_VERIFY_TLS": "true",
"MCP_JUMPSERVER_GUI_SUCKS_TERMINAL_IDLE_TIMEOUT_SECONDS": "900",
"MCP_JUMPSERVER_GUI_SUCKS_TERMINAL_REAP_INTERVAL_SECONDS": "30",
"MCP_JUMPSERVER_GUI_SUCKS_MAX_TERMINAL_SESSIONS": "8"
}
}
}
}
Supported Environment Variables
The current runtime reads these environment variables:
MCP_JUMPSERVER_GUI_SUCKS_BASE_URLMCP_JUMPSERVER_GUI_SUCKS_ORG_IDMCP_JUMPSERVER_GUI_SUCKS_STATE_DIRMCP_JUMPSERVER_GUI_SUCKS_STATE_FILEMCP_JUMPSERVER_GUI_SUCKS_VERIFY_TLSMCP_JUMPSERVER_GUI_SUCKS_LOG_LEVELMCP_JUMPSERVER_GUI_SUCKS_REQUEST_TIMEOUT_SECONDSMCP_JUMPSERVER_GUI_SUCKS_TERMINAL_IDLE_TIMEOUT_SECONDSMCP_JUMPSERVER_GUI_SUCKS_TERMINAL_REAP_INTERVAL_SECONDSMCP_JUMPSERVER_GUI_SUCKS_MAX_TERMINAL_SESSIONS
The recommended minimum MCP config is usually:
MCP_JUMPSERVER_GUI_SUCKS_BASE_URL- optionally
MCP_JUMPSERVER_GUI_SUCKS_STATE_DIRorMCP_JUMPSERVER_GUI_SUCKS_STATE_FILE
PyPI Release Automation
The repository now includes publish-pypi.yml.
Its behavior is intentionally:
- every push to
maininspectspyproject.toml - if the package version changed and that version does not already exist on PyPI, GitHub Actions builds and publishes it
- if the version did not change, the workflow skips publishing
- if the version already exists on PyPI, the workflow skips publishing
workflow_dispatchcan be used to publish the current version manually when it is not yet on PyPI
The publish job uses PyPI Trusted Publishing through GitHub OIDC. Configure PyPI to trust this repository and workflow before expecting the publish step to succeed.
Recommended PyPI trusted publisher settings:
- owner:
ArtiPyHeart - repository:
mcp-jumpserver-gui-sucks - workflow file:
.github/workflows/publish-pypi.yml - environment name:
pypi
After Trusted Publishing is configured once, later pushes to main that bump project.version in pyproject.toml will publish automatically.
Current CLI Surface
mcp-jumpserver-gui-sucks loginmcp-jumpserver-gui-sucks pathsmcp-jumpserver-gui-sucks doctormcp-jumpserver-gui-sucks refresh-sessionmcp-jumpserver-gui-sucks resolve-targetmcp-jumpserver-gui-sucks koko-probemcp-jumpserver-gui-sucks terminal-execmcp-jumpserver-gui-sucks terminal-shellmcp-jumpserver-gui-sucks save-statemcp-jumpserver-gui-sucks clear-statemcp-jumpserver-gui-sucks serve
Current MCP Tools
jms_pathsjms_statusjms_profilejms_list_nodesjms_list_assetsjms_get_assetjms_list_connect_methodsjms_get_asset_accessjms_resolve_terminal_targetjms_list_connection_tokensjms_create_connection_tokenjms_expire_connection_tokenjms_refresh_terminal_authjms_probe_koko_terminaljms_execute_koko_commandjms_list_terminal_sessionsjms_open_terminal_sessionjms_write_terminal_sessionjms_read_terminal_sessionjms_resize_terminal_sessionjms_close_terminal_session
Operational Notes
- Managed terminal sessions are process-local and intended to live only for the MCP server process lifetime.
terminal-shellis line-oriented, not a full raw TTY emulator.- Terminal entrypoints preflight the cookie-backed web session before opening KoKo.
- If the cookie-backed session is already invalid, terminal calls fail early with an explicit re-login requirement instead of a low-level websocket failure.
- REST discovery can continue to work when the durable
access_keyremains valid, even if terminal access requires a fresh login.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_jumpserver_gui_sucks-0.1.2.tar.gz.
File metadata
- Download URL: mcp_jumpserver_gui_sucks-0.1.2.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5db001917665c4eb4865ad712049f02e03836a1b6342c7b99f15600a8c4fcf8
|
|
| MD5 |
b74c1146538780d4ab0f977a761f7a0c
|
|
| BLAKE2b-256 |
c1c5f93ff18824965625ae31cbc27f3a23b309b764bfe8bc7d9d4fec3358ffe8
|
Provenance
The following attestation bundles were made for mcp_jumpserver_gui_sucks-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on ArtiPyHeart/mcp-jumpserver-gui-sucks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_jumpserver_gui_sucks-0.1.2.tar.gz -
Subject digest:
a5db001917665c4eb4865ad712049f02e03836a1b6342c7b99f15600a8c4fcf8 - Sigstore transparency entry: 1114601287
- Sigstore integration time:
-
Permalink:
ArtiPyHeart/mcp-jumpserver-gui-sucks@52e06a6e539324d1b1044037e4e8407372c3a44a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ArtiPyHeart
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@52e06a6e539324d1b1044037e4e8407372c3a44a -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_jumpserver_gui_sucks-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_jumpserver_gui_sucks-0.1.2-py3-none-any.whl
- Upload date:
- Size: 46.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9ca8c34c6f1c598dfd0e66adf90fbc73adbb9cc678e0c92ccad141e7efeb48e
|
|
| MD5 |
536d769f56b92ef3010493fd29d438ec
|
|
| BLAKE2b-256 |
4b0c1803b11219d278847c09938c72058d80a8c6c617324d6789aa9a35ac3eae
|
Provenance
The following attestation bundles were made for mcp_jumpserver_gui_sucks-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on ArtiPyHeart/mcp-jumpserver-gui-sucks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_jumpserver_gui_sucks-0.1.2-py3-none-any.whl -
Subject digest:
d9ca8c34c6f1c598dfd0e66adf90fbc73adbb9cc678e0c92ccad141e7efeb48e - Sigstore transparency entry: 1114601291
- Sigstore integration time:
-
Permalink:
ArtiPyHeart/mcp-jumpserver-gui-sucks@52e06a6e539324d1b1044037e4e8407372c3a44a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ArtiPyHeart
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@52e06a6e539324d1b1044037e4e8407372c3a44a -
Trigger Event:
push
-
Statement type: