agent-host-mcp 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agent-host-mcp might be problematic. Click here for more details.
- agent_host_mcp-0.2.2/.gitignore +16 -0
- agent_host_mcp-0.2.2/.python-version +1 -0
- agent_host_mcp-0.2.2/CHANGELOG.md +83 -0
- agent_host_mcp-0.2.2/Makefile +76 -0
- agent_host_mcp-0.2.2/PKG-INFO +737 -0
- agent_host_mcp-0.2.2/README.md +725 -0
- agent_host_mcp-0.2.2/REFERENCE.md +1404 -0
- agent_host_mcp-0.2.2/deploy/agent-host-mcp.service +23 -0
- agent_host_mcp-0.2.2/deploy/config.example.toml +5 -0
- agent_host_mcp-0.2.2/hatch_build.py +32 -0
- agent_host_mcp-0.2.2/package-lock.json +4460 -0
- agent_host_mcp-0.2.2/package.json +12 -0
- agent_host_mcp-0.2.2/pyproject.toml +57 -0
- agent_host_mcp-0.2.2/scripts/agent-host-mcp +6 -0
- agent_host_mcp-0.2.2/scripts/install-local.sh +79 -0
- agent_host_mcp-0.2.2/scripts/test_mcp.py +138 -0
- agent_host_mcp-0.2.2/src/agent_mcp/__init__.py +1 -0
- agent_host_mcp-0.2.2/src/agent_mcp/actions.py +194 -0
- agent_host_mcp-0.2.2/src/agent_mcp/agent_fleet.py +708 -0
- agent_host_mcp-0.2.2/src/agent_mcp/auth.py +148 -0
- agent_host_mcp-0.2.2/src/agent_mcp/catalog.py +56 -0
- agent_host_mcp-0.2.2/src/agent_mcp/cell_worker.py +107 -0
- agent_host_mcp-0.2.2/src/agent_mcp/cli_config.py +34 -0
- agent_host_mcp-0.2.2/src/agent_mcp/codex_exec.py +93 -0
- agent_host_mcp-0.2.2/src/agent_mcp/codex_process.py +64 -0
- agent_host_mcp-0.2.2/src/agent_mcp/codex_rpc.py +91 -0
- agent_host_mcp-0.2.2/src/agent_mcp/database.py +56 -0
- agent_host_mcp-0.2.2/src/agent_mcp/event_reader.py +45 -0
- agent_host_mcp-0.2.2/src/agent_mcp/event_routes.py +79 -0
- agent_host_mcp-0.2.2/src/agent_mcp/execute_queue.py +443 -0
- agent_host_mcp-0.2.2/src/agent_mcp/execute_worker.py +11 -0
- agent_host_mcp-0.2.2/src/agent_mcp/execution.py +101 -0
- agent_host_mcp-0.2.2/src/agent_mcp/extraction_policy.py +47 -0
- agent_host_mcp-0.2.2/src/agent_mcp/file_routes.py +71 -0
- agent_host_mcp-0.2.2/src/agent_mcp/file_shares.py +172 -0
- agent_host_mcp-0.2.2/src/agent_mcp/internal_auth.py +44 -0
- agent_host_mcp-0.2.2/src/agent_mcp/knowledge.py +185 -0
- agent_host_mcp-0.2.2/src/agent_mcp/knowledge_cli.py +91 -0
- agent_host_mcp-0.2.2/src/agent_mcp/knowledge_store.py +142 -0
- agent_host_mcp-0.2.2/src/agent_mcp/landing.html +127 -0
- agent_host_mcp-0.2.2/src/agent_mcp/make_job.py +34 -0
- agent_host_mcp-0.2.2/src/agent_mcp/models.py +25 -0
- agent_host_mcp-0.2.2/src/agent_mcp/oauth_origin.py +70 -0
- agent_host_mcp-0.2.2/src/agent_mcp/oauth_provider.py +212 -0
- agent_host_mcp-0.2.2/src/agent_mcp/oauth_routes.py +278 -0
- agent_host_mcp-0.2.2/src/agent_mcp/oauth_store.py +59 -0
- agent_host_mcp-0.2.2/src/agent_mcp/openwiki_export.mjs +5 -0
- agent_host_mcp-0.2.2/src/agent_mcp/openwiki_ingest.mjs +54 -0
- agent_host_mcp-0.2.2/src/agent_mcp/openwiki_retrieve.mjs +10 -0
- agent_host_mcp-0.2.2/src/agent_mcp/openwiki_runtime.py +69 -0
- agent_host_mcp-0.2.2/src/agent_mcp/paths.py +23 -0
- agent_host_mcp-0.2.2/src/agent_mcp/process_guard.py +52 -0
- agent_host_mcp-0.2.2/src/agent_mcp/project_tools.py +592 -0
- agent_host_mcp-0.2.2/src/agent_mcp/runner.py +151 -0
- agent_host_mcp-0.2.2/src/agent_mcp/runtime_events.py +104 -0
- agent_host_mcp-0.2.2/src/agent_mcp/runtime_transport.py +71 -0
- agent_host_mcp-0.2.2/src/agent_mcp/scheduler.py +127 -0
- agent_host_mcp-0.2.2/src/agent_mcp/screen_job.py +58 -0
- agent_host_mcp-0.2.2/src/agent_mcp/screen_pool.py +91 -0
- agent_host_mcp-0.2.2/src/agent_mcp/screen_runtime.py +953 -0
- agent_host_mcp-0.2.2/src/agent_mcp/server.py +926 -0
- agent_host_mcp-0.2.2/src/agent_mcp/session_delete.py +82 -0
- agent_host_mcp-0.2.2/src/agent_mcp/session_metadata.py +54 -0
- agent_host_mcp-0.2.2/src/agent_mcp/sessions.py +164 -0
- agent_host_mcp-0.2.2/src/agent_mcp/share_routes.py +75 -0
- agent_host_mcp-0.2.2/src/agent_mcp/shared_skills.py +304 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/AGENT_HOST_MCP_SKILL.md +154 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/SKILL.md +23 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/markdown/SKILL.md +24 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/step-review/SKILL.md +68 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/step-review/agents/openai.yaml +4 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/tool-description-optimizer/SKILL.md +105 -0
- agent_host_mcp-0.2.2/src/agent_mcp/skills/upload-files/SKILL.md +92 -0
- agent_host_mcp-0.2.2/src/agent_mcp/tokens.py +120 -0
- agent_host_mcp-0.2.2/src/agent_mcp/tool_output.py +266 -0
- agent_host_mcp-0.2.2/src/agent_mcp/upload_routes.py +73 -0
- agent_host_mcp-0.2.2/src/agent_mcp/upload_skill.py +21 -0
- agent_host_mcp-0.2.2/src/agent_mcp/uploads.py +98 -0
- agent_host_mcp-0.2.2/src/agent_mcp/version.py +39 -0
- agent_host_mcp-0.2.2/src/agent_mcp/wiki.py +179 -0
- agent_host_mcp-0.2.2/src/agent_mcp/wiki_ingest.py +125 -0
- agent_host_mcp-0.2.2/src/agent_mcp/wiki_routes.py +102 -0
- agent_host_mcp-0.2.2/src/agent_mcp/wiki_tools.py +144 -0
- agent_host_mcp-0.2.2/tests/cli_fixtures.py +40 -0
- agent_host_mcp-0.2.2/tests/conftest.py +11 -0
- agent_host_mcp-0.2.2/tests/output_fixtures.py +20 -0
- agent_host_mcp-0.2.2/tests/test_action_http.py +153 -0
- agent_host_mcp-0.2.2/tests/test_actions.py +177 -0
- agent_host_mcp-0.2.2/tests/test_agent_fleet.py +336 -0
- agent_host_mcp-0.2.2/tests/test_auth.py +74 -0
- agent_host_mcp-0.2.2/tests/test_catalog.py +249 -0
- agent_host_mcp-0.2.2/tests/test_cli_config.py +75 -0
- agent_host_mcp-0.2.2/tests/test_cli_integration.py +79 -0
- agent_host_mcp-0.2.2/tests/test_codex_process.py +36 -0
- agent_host_mcp-0.2.2/tests/test_curl_auth.py +52 -0
- agent_host_mcp-0.2.2/tests/test_execute_queue.py +190 -0
- agent_host_mcp-0.2.2/tests/test_execution.py +249 -0
- agent_host_mcp-0.2.2/tests/test_extraction_policy.py +18 -0
- agent_host_mcp-0.2.2/tests/test_file_events_internal.py +134 -0
- agent_host_mcp-0.2.2/tests/test_file_shares.py +151 -0
- agent_host_mcp-0.2.2/tests/test_install_local.py +182 -0
- agent_host_mcp-0.2.2/tests/test_knowledge.py +258 -0
- agent_host_mcp-0.2.2/tests/test_knowledge_cli.py +67 -0
- agent_host_mcp-0.2.2/tests/test_knowledge_store.py +76 -0
- agent_host_mcp-0.2.2/tests/test_landing_version.py +50 -0
- agent_host_mcp-0.2.2/tests/test_models.py +15 -0
- agent_host_mcp-0.2.2/tests/test_oauth.py +583 -0
- agent_host_mcp-0.2.2/tests/test_oauth_browser.py +151 -0
- agent_host_mcp-0.2.2/tests/test_openwiki_runtime.py +55 -0
- agent_host_mcp-0.2.2/tests/test_packaged_skills.py +59 -0
- agent_host_mcp-0.2.2/tests/test_paths.py +50 -0
- agent_host_mcp-0.2.2/tests/test_project_tools.py +364 -0
- agent_host_mcp-0.2.2/tests/test_runner.py +155 -0
- agent_host_mcp-0.2.2/tests/test_runtime_events.py +158 -0
- agent_host_mcp-0.2.2/tests/test_runtime_poll_window.py +126 -0
- agent_host_mcp-0.2.2/tests/test_scheduler.py +83 -0
- agent_host_mcp-0.2.2/tests/test_scheduler_lifecycle.py +86 -0
- agent_host_mcp-0.2.2/tests/test_screen_runtime.py +632 -0
- agent_host_mcp-0.2.2/tests/test_server.py +204 -0
- agent_host_mcp-0.2.2/tests/test_session_delete.py +103 -0
- agent_host_mcp-0.2.2/tests/test_session_metadata.py +70 -0
- agent_host_mcp-0.2.2/tests/test_session_paging.py +51 -0
- agent_host_mcp-0.2.2/tests/test_sessions.py +76 -0
- agent_host_mcp-0.2.2/tests/test_shared_skills.py +220 -0
- agent_host_mcp-0.2.2/tests/test_tokens.py +94 -0
- agent_host_mcp-0.2.2/tests/test_tool_output.py +263 -0
- agent_host_mcp-0.2.2/tests/test_upload_routes.py +109 -0
- agent_host_mcp-0.2.2/tests/test_upload_skill.py +84 -0
- agent_host_mcp-0.2.2/tests/test_uploads.py +89 -0
- agent_host_mcp-0.2.2/tests/test_version.py +52 -0
- agent_host_mcp-0.2.2/tests/test_wiki.py +133 -0
- agent_host_mcp-0.2.2/tests/test_wiki_routes.py +127 -0
- agent_host_mcp-0.2.2/tests/test_wiki_tools.py +64 -0
- agent_host_mcp-0.2.2/uv.lock +1030 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- Configure Agent Fleet model and reasoning depth, and update role settings and Markdown documents without changing agent identity or saved session.
|
|
6
|
+
- Replay original Codex JSON events through `poll_runtime` with durable cursors, bounded pages, and explicit retention-gap reporting.
|
|
7
|
+
- Add shared skills with `add_skill` and queued Git/Codex integration through `add_skill_url`, using a progressive discovery index across projects and agent roles.
|
|
8
|
+
- Discover Agent Fleet roles with `list_agents`, including active/retired filters and paginated results.
|
|
9
|
+
|
|
10
|
+
## 0.2.1 — 2026-11-17
|
|
11
|
+
|
|
12
|
+
- Make installation, upgrades, polling, and agent workspace guidance clearer in the README and PyPI description.
|
|
13
|
+
- Keep public usage documentation focused on users, without package build details or host-specific deployment instructions.
|
|
14
|
+
|
|
15
|
+
## 0.2.0 — 2026-11-17
|
|
16
|
+
|
|
17
|
+
- Reuse a bounded pool of inspectable Codex Screens, keeping completed terminals available until their idle slots are reassigned while preserving durable per-run output.
|
|
18
|
+
- Accept multiple queued runs for one saved Codex session and serialize them automatically while keeping different sessions parallel.
|
|
19
|
+
- Add architecture, numbered roadmap, and task-oriented coding tools backed by `.agents/ARCHITECTURE.md`, `.agents/roadmaps`, and `.agents/tasks`.
|
|
20
|
+
- Keep `run` generic while `coding` plans and executes one complete roadmap with checklists, tests, regression, architecture/roadmap review, and a repair loop in one runtime lane.
|
|
21
|
+
- Include top-level `tool` and `runtime_id` identity in long-running results;
|
|
22
|
+
execute jobs also retain their distinct `task_id`.
|
|
23
|
+
- Group all 28 tools into five classes: System, Work, Coding, Knowledge and wiki, and Agent fleet, with descriptions for progressive client discovery.
|
|
24
|
+
- Clarify structured project workflows with the `architecture_design` and `build_roadmap` tool names.
|
|
25
|
+
- Add private Agent Fleet workspaces with create, retire, and restore lifecycle tools.
|
|
26
|
+
- Let `run` and `coding` optionally use a persistent agent role and saved session
|
|
27
|
+
across projects while serializing all work for that agent.
|
|
28
|
+
|
|
29
|
+
- Preserve new session identity through failed or interrupted turns so retries continue the saved conversation.
|
|
30
|
+
- Protect incoming runtime dependencies from retention eviction and remove coordinator records when coding admission is rejected.
|
|
31
|
+
- Guide status checks through `poll_runtime` and `poll_execution`, including actionable busy-agent responses.
|
|
32
|
+
- Include a host layout and state guide in new agent workspaces; show tools in the landing body and build identity in its footer.
|
|
33
|
+
|
|
34
|
+
## 0.1.18 — 2026-11-14
|
|
35
|
+
|
|
36
|
+
- Rename direct execution management tools to `list_executions`, `poll_execution`, and `cancel_execution` while keeping `task_id` as the execution identifier.
|
|
37
|
+
- Queue Codex runs when active capacity is full, support runtime dependencies, retry failed/interrupted prerequisites under the same ID with `resume_run`, and protect dependency graphs with default-safe or explicit forced cascade cancellation.
|
|
38
|
+
- Simplify all MCP tool descriptions into distinct progressive workflows while keeping build identity in tool metadata rather than agent-facing prose.
|
|
39
|
+
- Package a tool-description optimizer skill for catalog-wide module, overlap, and terminology reviews.
|
|
40
|
+
|
|
41
|
+
## 0.1.17 — 2026-11-13
|
|
42
|
+
|
|
43
|
+
- Install local builds into the systemd service's existing uv tool with guarded restart and version checks.
|
|
44
|
+
- Run Codex work in temporary GNU Screen sessions identified by UUIDv4 run IDs, with capacity controls, SSE output polling, retained results, and exact saved-session resume.
|
|
45
|
+
- Serialize Python and shell tasks through one persistent Screen with task polling, queue inspection, and explicit queued or running cancellation.
|
|
46
|
+
- Read or update Makefiles safely, run one reconnectable Make target, and read or append project roadmaps.
|
|
47
|
+
- Guide every Codex run through packaged step-coding and review instructions, ROADMAP alignment, and Makefile-based workflows while preserving the client's original prompt.
|
|
48
|
+
- Package progressive root, step-coding, step-review, Markdown, and authenticated upload skills for connected agents.
|
|
49
|
+
- Keep run, task, session, and reconnectable action identifiers distinct in the 21-tool MCP catalog.
|
|
50
|
+
|
|
51
|
+
## 0.1.16 — 2026-11-13
|
|
52
|
+
|
|
53
|
+
- Return session lists as one JSON response with smaller pages and a continuation offset to avoid cut-off results.
|
|
54
|
+
|
|
55
|
+
## 0.1.15 — 2026-11-12
|
|
56
|
+
|
|
57
|
+
- Enable OAuth sign-in by default without additional server settings.
|
|
58
|
+
- Keep client credentials isolated for each connection hostname.
|
|
59
|
+
- Simplify the browser sign-in page to a token box and sign-in or cancel buttons.
|
|
60
|
+
- Fix browser sign-in and return to the client after approval or cancellation.
|
|
61
|
+
- Revoke credentials when a redeemed authorization code is reused with valid proof.
|
|
62
|
+
- Reject malformed sign-in proofs and ambiguous client authentication.
|
|
63
|
+
|
|
64
|
+
## 0.1.3 — 2026-11-12
|
|
65
|
+
|
|
66
|
+
- Connect MCP clients with browser sign-in and separate, renewable OAuth credentials.
|
|
67
|
+
- Reuse your installed Codex CLI, reducing package installation size.
|
|
68
|
+
- Run tasks non-interactively with reconnectable execution monitoring.
|
|
69
|
+
- Handle malformed OAuth registration requests safely.
|
|
70
|
+
- Protect knowledge sign-in cookies when HTTPS terminates at a gateway.
|
|
71
|
+
- Keep knowledge builds from using connected tools or running host commands.
|
|
72
|
+
- Keep source sessions when extraction safety checks cannot be verified.
|
|
73
|
+
|
|
74
|
+
## 0.1.2 — 2026-11-11
|
|
75
|
+
|
|
76
|
+
- Knowledge builds now turn session notes into linked wiki pages before retiring sessions.
|
|
77
|
+
- Failed wiki builds keep affected sessions; retrying reuses saved notes.
|
|
78
|
+
- Interrupted wiki builds can resume, and incomplete saved pages are rebuilt.
|
|
79
|
+
|
|
80
|
+
## 0.1.1 — 2026-11-11
|
|
81
|
+
|
|
82
|
+
- Start the server with host, port and access-token flags, or a configuration file.
|
|
83
|
+
- Install and run the `agent-host-mcp` package and command.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
.DEFAULT_GOAL := build
|
|
2
|
+
|
|
3
|
+
UV ?= uv
|
|
4
|
+
NPM ?= npm
|
|
5
|
+
PYTHON_VERSION := $(shell cat .python-version)
|
|
6
|
+
PROJECT_VERSION := $(shell sed -n 's/^version = "\([^"]*\)"/\1/p' pyproject.toml | head -n 1)
|
|
7
|
+
PUBLISH_WHEELS := build/agent_host_mcp-$(PROJECT_VERSION)-*.whl
|
|
8
|
+
UV_DIR := $(CURDIR)/.uv
|
|
9
|
+
export UV_CACHE_DIR := $(UV_DIR)/cache
|
|
10
|
+
export UV_PYTHON_INSTALL_DIR := $(UV_DIR)/python
|
|
11
|
+
export UV_PROJECT_ENVIRONMENT := $(UV_DIR)/dev
|
|
12
|
+
export UV_MANAGED_PYTHON := true
|
|
13
|
+
export npm_config_cache := $(CURDIR)/.tools/npm-cache
|
|
14
|
+
unexport VIRTUAL_ENV
|
|
15
|
+
|
|
16
|
+
PORT ?= 7081
|
|
17
|
+
HOST ?= 0.0.0.0
|
|
18
|
+
TEST_HOST ?= 127.0.0.1
|
|
19
|
+
PYTEST_ARGS ?=
|
|
20
|
+
SERVICE ?= agent-host-mcp.service
|
|
21
|
+
INSTALL_EXECUTABLE ?= $(HOME)/.local/bin/agent-host-mcp
|
|
22
|
+
SUDO ?= sudo
|
|
23
|
+
SYSTEMCTL ?= systemctl
|
|
24
|
+
|
|
25
|
+
.PHONY: python wiki-deps build install publish run test check check-focus
|
|
26
|
+
|
|
27
|
+
python:
|
|
28
|
+
$(UV) python install --no-bin $(PYTHON_VERSION)
|
|
29
|
+
$(UV) python find --managed-python --system $(PYTHON_VERSION) > .uv/python-path
|
|
30
|
+
@case "$$(cat .uv/python-path)" in "$(UV_PYTHON_INSTALL_DIR)"/*) ;; *) echo "Expected a project-local Python under .uv/python" >&2; exit 1 ;; esac
|
|
31
|
+
|
|
32
|
+
wiki-deps: node_modules/.package-lock.json
|
|
33
|
+
|
|
34
|
+
node_modules/.package-lock.json: package.json package-lock.json
|
|
35
|
+
$(NPM) ci --no-audit --no-fund
|
|
36
|
+
|
|
37
|
+
build: python wiki-deps
|
|
38
|
+
$(UV) build --python "$$(cat .uv/python-path)" --out-dir build
|
|
39
|
+
$(UV) export --frozen --no-dev --no-emit-project --output-file build/requirements.txt
|
|
40
|
+
$(UV) venv --allow-existing --python "$$(cat .uv/python-path)" .uv/venv
|
|
41
|
+
$(UV) pip uninstall --python .uv/venv/bin/python agent-mcp openai-codex openai-codex-cli-bin
|
|
42
|
+
$(UV) pip install --python .uv/venv/bin/python --reinstall-package agent-host-mcp -r build/requirements.txt $$(ls -t build/agent_host_mcp-*.whl | head -n 1)
|
|
43
|
+
cp scripts/agent-host-mcp build/agent-host-mcp
|
|
44
|
+
chmod +x build/agent-host-mcp
|
|
45
|
+
./.uv/venv/bin/python -m agent_mcp.catalog build/tool-catalog.json
|
|
46
|
+
|
|
47
|
+
install: build
|
|
48
|
+
@wheel="$$(ls -t "$(CURDIR)"/build/agent_host_mcp-*.whl | head -n 1)"; \
|
|
49
|
+
BUILD_EXECUTABLE="$(CURDIR)/build/agent-host-mcp" \
|
|
50
|
+
INSTALL_EXECUTABLE="$(INSTALL_EXECUTABLE)" \
|
|
51
|
+
REQUIREMENTS="$(CURDIR)/build/requirements.txt" \
|
|
52
|
+
SERVICE="$(SERVICE)" SUDO="$(SUDO)" SYSTEMCTL="$(SYSTEMCTL)" UV="$(UV)" \
|
|
53
|
+
"$(CURDIR)/scripts/install-local.sh" "$$wheel"
|
|
54
|
+
|
|
55
|
+
publish:
|
|
56
|
+
@set -- $(PUBLISH_WHEELS); \
|
|
57
|
+
if [ ! -f "$$1" ]; then \
|
|
58
|
+
echo "No matching wheel found: $(PUBLISH_WHEELS)" >&2; \
|
|
59
|
+
exit 1; \
|
|
60
|
+
fi; \
|
|
61
|
+
for artifact; do test -f "$$artifact" || exit 1; done; \
|
|
62
|
+
$(UV) publish --check-url https://pypi.org/simple/ "$$@"
|
|
63
|
+
|
|
64
|
+
run: build
|
|
65
|
+
./build/agent-host-mcp --port $(PORT) --host $(HOST)
|
|
66
|
+
|
|
67
|
+
test:
|
|
68
|
+
./.uv/venv/bin/python scripts/test_mcp.py http://$(TEST_HOST):$(PORT)/mcp
|
|
69
|
+
|
|
70
|
+
check: python wiki-deps
|
|
71
|
+
$(UV) run --exact --frozen --python "$$(cat .uv/python-path)" pytest -q --ignore=tests/test_server.py
|
|
72
|
+
$(UV) run --exact --frozen --python "$$(cat .uv/python-path)" pytest -q tests/test_server.py
|
|
73
|
+
|
|
74
|
+
check-focus: python wiki-deps
|
|
75
|
+
$(UV) run --exact --frozen --python "$$(cat .uv/python-path)" pytest -q $(PYTEST_ARGS)
|
|
76
|
+
|