Skip to main content

wingbox-http

Call the Wingbox code graph of a repository from another machine. wingbox-http serves the Wingbox MCP server over the Streamable HTTP transport of the Model Context Protocol: the same tools as wingbox mcp on stdio (analyze_impact, find_usages, build_graph and the rest), at one URL.

Use it when the repository and its graph live on a build server, a dev container or a remote workstation, and the coding agent runs somewhere else.

Install

pip install "wingbox[http]"          # or: pipx install wingbox && pipx inject wingbox wingbox-http

The transport is a package of its own on purpose: wingbox itself holds no listening code. wingbox-http uses the Python standard library only, listens and answers, and opens no connection of its own.

Run

On the machine that holds the repository:

export WINGBOX_HTTP_TOKEN="$(openssl rand -hex 32)"     # keep it; clients send it
wingbox mcp --http --root /path/to/project --host 0.0.0.0 --port 8765 \
  --tls-cert fullchain.pem --tls-key privkey.pem

wingbox-http ... is the same command. The server answers at https://<host>:8765/mcp.

Option Meaning
--root DIR Where the search for the code graph starts (default: the current directory): the project that holds DIR is served, and the first log line names it
--host ADDRESS Address to listen on (default 127.0.0.1). Any other address needs a token
--port N Port (default 8765)
--token-file FILE Read the token from the first line of FILE instead of WINGBOX_HTTP_TOKEN
--tls-cert FILE, --tls-key FILE Serve HTTPS with this certificate and key
--allow-origin ORIGIN Also accept browser requests from this origin and let its pages read the answers (the preflight is answered, the answers carry Access-Control-Allow-Origin); repeatable
--build-missing Build the code graph in the background when the repository has none

Without arguments the server listens on 127.0.0.1 only and asks for no token: that is for an SSH tunnel (ssh -L 8765:127.0.0.1:8765 host) or a reverse proxy that checks who calls.

Connect an agent

Claude Code:

claude mcp add --transport http wingbox https://host.example:8765/mcp \
  --header "Authorization: Bearer $WINGBOX_HTTP_TOKEN"

Codex:

codex mcp add wingbox --url https://host.example:8765/mcp --bearer-token-env-var WINGBOX_HTTP_TOKEN

Any other MCP client: the Streamable HTTP transport, URL https://host.example:8765/mcp, header Authorization: Bearer <token>.

What is exposed

Whoever holds the token can read the code graph of the repository (file names, symbols, dependencies) and the text of the source files that are in the graph (the tool read_source), search that text in every source file of the graph at once (the tool search_source), and rebuild the graph (the tool build_graph), which writes .wingbox/ in the repository. Searching is the same permission as reading, used faster: a secret that is committed in a source file is found by one search instead of file by file. Keep secrets out of source files, and give the token only to who may read the code. No tool reads a file that is not a source file of the graph, runs a command you give it, or deletes anything.

  • The token is a shared secret of at least 32 characters, compared in constant time. It is taken from the environment or a file, never from the command line, and is never logged: an option the command does not know is refused by its name, without repeating what was typed after it.
  • Listening on any address other than loopback is refused without a token.
  • Without --tls-cert and --tls-key the token travels unencrypted: use them, or put the port behind a TLS proxy or a private network.
  • A request with an Origin header that is not a loopback origin or one given with --allow-origin is answered 403, so a web page cannot call the server through the browser of someone on the same network. Only an origin given with --allow-origin gets the headers that let a page read an answer (Access-Control-Allow-Origin, the answer to the OPTIONS preflight). A loopback origin passes without the option and gets none of them: that is what keeps a page of another local site from reading a listener that asks for no token.
  • At most 64 connections are open and 16 calls run or wait at a time; beyond that the answer is 503. The header and the body of a request must arrive within 30 seconds in all. A call that still waits for its turn when its client closes the connection is not run; a running call cannot be interrupted.

Protocol

One endpoint, POST /mcp, for protocol revisions 2026-07-28 and 2025-11-25 down to 2024-11-05. Each request is answered with JSON; a tools/call that runs longer than a second is answered as an event stream, with a keep-alive line every ten seconds, when the client accepts one, so a long build of the graph is not cut by an idle timeout on the way. The server keeps no session and opens no stream of its own: GET and DELETE are answered 405. Calls run one after another, as on stdio.

License: MIT.

Metadata

Release files for wingbox-http 0.19.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wingbox-http 0.19.2
File Size Uploaded Provenance Actions
wingbox_http-0.19.2.tar.gz 14.3 kB Without provenance Details for wingbox_http-0.19.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wingbox-http 0.19.2
File Interpreter ABI Platform Actions
wingbox_http-0.19.2-py3-none-any.whl Python 3 none any Details for wingbox_http-0.19.2-py3-none-any.whl

Total release size: 31.7 kB

Release files / wingbox_http-0.19.2.tar.gz

Download URL wingbox_http-0.19.2.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb6763174c86001d2f4089cb1f0e67c7dc362df34ee7f4d7f66ec8d324618f1f
BLAKE2b-256 checksum
How to use checksums
147e381eca0012338116df58797cca191753fbc91799443a5123a058d3c7342e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release files / wingbox_http-0.19.2-py3-none-any.whl

Download URL wingbox_http-0.19.2-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
423a934d63a720a62a16a034bc05030850c1638957284484e446a0c25a3cccde
BLAKE2b-256 checksum
How to use checksums
53cc9d53209dd3a134c279b76e37447f24a1c0b715e77ade2543ed6cb12a552c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Security for wingbox-http 0.19.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page