Skip to main content

Reference MCP bridge service for Northstar story execution

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

northstar_agent_bridge-0.1.3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

northstar_agent_bridge-0.1.3-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file northstar_agent_bridge-0.1.3.tar.gz.

File metadata

  • Download URL: northstar_agent_bridge-0.1.3.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for northstar_agent_bridge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 892e42f3fcefbd285769b975b7960b779cd8051b934e2eb4da2ebe6e7cfc5ea1
MD5 93ee2bbc02ee9dc1787054e66a0ea55f
BLAKE2b-256 2cf821ee21d8ffc85e581e46b9d262b4772ce10591a732a4647869f880dee1eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for northstar_agent_bridge-0.1.3.tar.gz:

Publisher: northstar-agent-bridge-release.yml on kartiknat/northstar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file northstar_agent_bridge-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for northstar_agent_bridge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 96eeb0fbabf1d87ee2d539a5ac793230d2212e5ad8316162db1fcfd89dae92c2
MD5 d2d3c1a4bb1504dedda5b58fe59971a9
BLAKE2b-256 a018a84e60a049dd661607a3e1599a2a83e1e98c9a609e236480149a03dad85a

See more details on using hashes here.

Provenance

The following attestation bundles were made for northstar_agent_bridge-0.1.3-py3-none-any.whl:

Publisher: northstar-agent-bridge-release.yml on kartiknat/northstar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page