Skip to main content

northstar-agent-bridge

Reference MCP bridge implementation for Northstar.

It exposes the endpoints Northstar calls:

  • GET /health
  • POST /tools/run_story
  • POST /tools/report_status
  • POST /tools/submit_result

Install

pip install northstar-agent-bridge

Or for local dev in this repo:

pip install -e packages/northstar-agent-bridge

Initialize backend MCP config (recommended):

python -m northstar_agent_bridge init --backend-env backend/.env --runner-mode codex

Store PAT once:

python -m northstar_agent_bridge login --api-key <ns_pat_...>

Configuration

Set these env vars:

MCP_PROVIDER_NAME=codex-local-bridge
MCP_BRIDGE_HOST=127.0.0.1
MCP_BRIDGE_PORT=8787

# Optional runtime mode
MCP_RUNNER_MODE=mock
MCP_MOCK_DELAY_SECONDS=8
MCP_RUNNER_CMD=codex
MCP_CODEX_CMD=codex exec --json --full-auto --skip-git-repo-check -
MCP_RUNNER_TIMEOUT_SECONDS=1800
MCP_BACKEND_BASE_URL=http://127.0.0.1:8000
MCP_PAT_VALIDATE_URL=http://127.0.0.1:8000/api/v1/spec-cli/auth/pat/validate
MCP_PAT_CACHE_TTL_SECONDS=300

MCP_RUNNER_MODE:

  • mock: in-memory simulated completion
  • command: executes MCP_RUNNER_CMD with task_markdown piped to stdin
  • codex: built-in codex runner using MCP_CODEX_CMD (or MCP_RUNNER_CMD, default codex exec --json --full-auto --skip-git-repo-check -)

Run

northstar-agent-bridge

or:

python -m northstar_agent_bridge

This now starts the bridge in the background (daemon mode) and returns your shell immediately.

Useful commands:

northstar-agent-bridge status   # check daemon state
northstar-agent-bridge stop     # stop daemon
northstar-agent-bridge serve    # run foreground (debug mode)

Metadata

Release files for northstar-agent-bridge 0.1.3

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

Source distribution (sdist)

Source distribution for northstar-agent-bridge 0.1.3
File Size Uploaded Provenance
northstar_agent_bridge-0.1.3.tar.gz 16.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for northstar-agent-bridge 0.1.3
File Interpreter ABI Platform
northstar_agent_bridge-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / northstar_agent_bridge-0.1.3.tar.gz

Download URL northstar_agent_bridge-0.1.3.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
892e42f3fcefbd285769b975b7960b779cd8051b934e2eb4da2ebe6e7cfc5ea1
BLAKE2b-256 checksum
How to use checksums
2cf821ee21d8ffc85e581e46b9d262b4772ce10591a732a4647869f880dee1eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release files / northstar_agent_bridge-0.1.3-py3-none-any.whl

Download URL northstar_agent_bridge-0.1.3-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96eeb0fbabf1d87ee2d539a5ac793230d2212e5ad8316162db1fcfd89dae92c2
BLAKE2b-256 checksum
How to use checksums
a018a84e60a049dd661607a3e1599a2a83e1e98c9a609e236480149a03dad85a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Security for northstar-agent-bridge 0.1.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for northstar_agent_bridge-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

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