Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Universal Agent Middleware (UAM) v0.5.1rc1

Public Preview RC1 — read-only MCP observation for local codebases

UAM is a vendor-neutral, local-first middleware that lets any reasoning client (ChatGPT, Claude, Cursor, future agents) observe your local project workspaces in real time through a secure read-only interface — with project-level reality coverage, lifecycle tracking, and observation-based diagnostics.

What it does

Reasoning client (new session, no history needed)
       │
       ▼
  UAM MCP App (19 read-only tools)
       │
       ▼
  Optional secure MCP tunnel (outbound-only)
       │
       ▼
  Your local machine
       │
       ▼
  Registered workspaces + project reality
  (my-app, api-service, etc.)

A new conversation can read live repository state — HEAD, branch, files, diffs, search, project reality coverage — without copy-paste and without granting write access.

Quick start

# Install
python -m venv .venv && source .venv/bin/activate
pip install -e ".[mcp]"

# Register workspaces
cp config/workspaces.example.json config/workspaces.json
# Edit workspace roots to match your machine

# Optional: root scope registry for autonomous discovery
cp examples/root_scopes.example.json config/root_scopes.json

# Local MCP smoke test
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2026-07-28","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' | \
  uam mcp-sdk-stdio --profile session-read \
    --registry config/workspaces.json \
    --state-dir ~/.local/share/uam

For remote clients, configure an outbound MCP tunnel using your platform credentials. See docs/adapters/MCP.md.

Available MCP tools

Tool Description
uam_list_workspaces List registered workspaces, capabilities, and project grouping
uam_workspace_snapshot HEAD, branch, head_state, dirty count
uam_session_bootstrap Full reasoning context in one call (project-aware, v2 schema)
uam_tree Directory listing
uam_read_file Read text files (relative paths only)
uam_search_text Search across workspace files
uam_git_status Git HEAD, branch, working tree changes
uam_git_diff Git diff (optionally scoped)
uam_git_log Recent commit history
uam_verify_audit Hash-chain audit log integrity
uam_project_reality Multi-instance project reality snapshot with coverage diagnostics
uam_list_project_instances List workspace instances and discovered worktrees for a project
uam_list_scopes List authorized RootScopes (standing trust zones)
uam_discover_projects Autonomously discover all projects within a scope
uam_scope_inventory Cached project inventory for a scope
uam_search_scope Cross-project text search across entire scope
uam_explain_coverage Per-project coverage gap analysis
uam_what_am_i_missing Aggregate missing reality across active projects
uam_explore Intent-driven exploration with ranking, graph, and retrieval plan

All session-read tools expose readOnlyHint=true, destructiveHint=false. No write, exec, merge, deploy, or credential tools are part of the Public Preview contract.

Security model

  • Read-only remote surface — no mutation tools exposed in session-read profile
  • Path containment.env, .git/**, ../ traversal all denied
  • Prompt injection defense — security is middleware-enforced, not model-dependent
  • No credentials in repo — tunnel credentials via environment only
  • Outbound-only tunnel — no public inbound listener required (optional adapter)
  • Secret firewall — credential-like files denied even under broad scope authority

Architecture

Reasoning clients / humans
ChatGPT · Claude · Gemini · Cursor · Copilot · future agents
                    │
          northbound adapters
   HTTP/OpenAPI · MCP (official SDK) · Agent Plugins
                    │
                    ▼
┌────────────────────────────────────────────────┐
│ Universal Agent Middleware Core                 │
│ workspace registry → policy → observation      │
│ project registry → coverage diagnostics        │
│ audit → execution contract → result review     │
└──────────────────┬─────────────────────────────┘
                   │                     │
             READ ONLY                 .state/
                   │              contracts/results/audit
                   ▼
       registered project workspaces
       my-app · api-service · others

Core invariants

  • Vendor-neutral core: no OpenAI/Anthropic/Cursor/GitHub dependency
  • Project sovereignty: target project SSOT remains authoritative
  • Read-only boundary: session-read profile grants no write, shell, commit, push, merge, or deploy
  • Observation ≠ Authority: UAM reports reality; project governance decides actions
  • Separate state: UAM state is physically disjoint from target workspaces
  • Evidence-bound execution: (v0.2+ contracts; legacy LocalExecutor is experimental)

Project reality model (v0.3.1+)

UAM tracks multi-instance projects with orthogonal dimensions:

  • role — structural function: canonical-main, candidate, review-carrier
  • lifecycle — temporal state: active, landed, stale, superseded
  • coverage — observation completeness per truth surface

Coverage states: observed, externally_verified, not_applicable, not_observed, not_registered

Project-specific observation profiles in config/project-observation-profiles/ (local-only, gitignored) define per-project requirements without embedding project semantics into UAM core.

Documentation

  • docs/REALITY_PREAMBLE.md — Reality Preamble protocol
  • docs/BACKLOG.md — Roadmap and hardening priorities
  • docs/adapters/MCP.md — MCP adapter setup
  • docs/oss/public-profile-contract.md — Public Preview supported surface
  • CHANGELOG.md — Version history
  • SECURITY.md — Vulnerability reporting
  • CONTRIBUTING.md — Contribution guidelines

Status

v0.5.1rc1 — Public Preview RC1

Gate Status
Source implementation PASS (19 read-only MCP tools)
RootScope foundation PASS
Git repository discovery PASS
Project grouping PASS
CoverageGap MVP PASS
Audit v2 integrity PASS
Scope search enforcement PASS (OSS-SEC-001 pre-read boundary)
Portable test suite PASS (199 tests, 1 skipped; synthetic fixtures)
Python/OS matrix (3.11–3.14) PASS — 8/8 public CI (run 33954828455)
Public release gates (O0–O9) PASS — live public repo; see docs/oss/launch-packet.md
GitHub Release v0.5.1rc1 PASS — wheel + sdist attached
PyPI distribution Configured — OIDC trusted publishing via release.yml (manual Pending Publisher step on pypi.org)

Public Preview supports SDK stdio session-read profile only. Legacy HTTP adapter and LocalExecutor are experimental and not part of the Preview contract. See docs/oss/public-profile-contract.md.

Deferred: forge/runtime observation, write-capable remote tools, autonomous execution, production OAuth.

Download files

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

Source Distribution

universal_agent_middleware-0.5.1rc1.tar.gz (101.0 kB view details)

Uploaded Source

Built Distribution

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

universal_agent_middleware-0.5.1rc1-py3-none-any.whl (80.7 kB view details)

Uploaded Python 3

File details

Details for the file universal_agent_middleware-0.5.1rc1.tar.gz.

File metadata

File hashes

Hashes for universal_agent_middleware-0.5.1rc1.tar.gz
Algorithm Hash digest
SHA256 6a9c2dbfd1728d117440229f396dea1d11f685a6fbe5932c6f4d473578b7079b
MD5 d4fbde27c6dd692d4eb48e9ad4e65843
BLAKE2b-256 e19d37fae320f52c5fe47ae5653bde6177c68966cb5c24c62ea9985b565377d4

See more details on using hashes here.

File details

Details for the file universal_agent_middleware-0.5.1rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for universal_agent_middleware-0.5.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 e33c5d219746adb0cc63ca83bf879a9cafbb84e9194e1627b339f50e31df1701
MD5 1fecc6d8f2d7b47efc803b35b1d41084
BLAKE2b-256 8b3acb0506c03284abbc9611e97f6f899d2db2b62d0a7efc1e53b3d6ec9d0ca3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.1rc1 This release

2 files

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