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 /healthPOST /tools/run_storyPOST /tools/report_statusPOST /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 -
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 completioncommand: executesMCP_RUNNER_CMDwithtask_markdownpiped to stdincodex: built-in codex runner usingMCP_CODEX_CMD(orMCP_RUNNER_CMD, defaultcodex exec --json --full-auto -)
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
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 northstar_agent_bridge-0.1.1.tar.gz.
File metadata
- Download URL: northstar_agent_bridge-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4f1413aad8b78a879f06640dcec73efaf0fa757625d33533ec7d32380d8f87
|
|
| MD5 |
ad4524b5fe913d84b944254836052ef8
|
|
| BLAKE2b-256 |
5447a897e781ea1d549ec4dbc7bf15ee43565369db671cedc2f1c05fc7a7321a
|
Provenance
The following attestation bundles were made for northstar_agent_bridge-0.1.1.tar.gz:
Publisher:
northstar-agent-bridge-release.yml on kartiknat/northstar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
northstar_agent_bridge-0.1.1.tar.gz -
Subject digest:
ef4f1413aad8b78a879f06640dcec73efaf0fa757625d33533ec7d32380d8f87 - Sigstore transparency entry: 1305775446
- Sigstore integration time:
-
Permalink:
kartiknat/northstar@42632b933c7a491ab5480c04d69f767bf115151b -
Branch / Tag:
refs/tags/northstar-agent-bridge-v0.1.1 - Owner: https://github.com/kartiknat
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
northstar-agent-bridge-release.yml@42632b933c7a491ab5480c04d69f767bf115151b -
Trigger Event:
push
-
Statement type:
File details
Details for the file northstar_agent_bridge-0.1.1-py3-none-any.whl.
File metadata
- Download URL: northstar_agent_bridge-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d8bdbd261aceef62948fa7f796523c6783de9b4b572c38453dbc1b02f270ca1
|
|
| MD5 |
d96e16cb877c69013c03d249c5b317a3
|
|
| BLAKE2b-256 |
1fa60cb43b089109613b85cd6090ea8701097156dc70850a765aa08b8569fc90
|
Provenance
The following attestation bundles were made for northstar_agent_bridge-0.1.1-py3-none-any.whl:
Publisher:
northstar-agent-bridge-release.yml on kartiknat/northstar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
northstar_agent_bridge-0.1.1-py3-none-any.whl -
Subject digest:
1d8bdbd261aceef62948fa7f796523c6783de9b4b572c38453dbc1b02f270ca1 - Sigstore transparency entry: 1305775510
- Sigstore integration time:
-
Permalink:
kartiknat/northstar@42632b933c7a491ab5480c04d69f767bf115151b -
Branch / Tag:
refs/tags/northstar-agent-bridge-v0.1.1 - Owner: https://github.com/kartiknat
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
northstar-agent-bridge-release.yml@42632b933c7a491ab5480c04d69f767bf115151b -
Trigger Event:
push
-
Statement type: