Skip to main content

ba-agent-mcp

An MCP server that exposes the Modern-Expo virtual Business Analyst Knowledge Base as a small set of read / derive tools. It never writes to SUPPA Docs or the Knowledge Base and is deliberately kept off the governed write path — authoring documents goes through the human-gated business-analyst skill, not this server.

Install

uvx ba-agent-mcp          # run on demand in an isolated environment (recommended)
# or
pip install ba-agent-mcp  # then run: ba-agent-mcp

Credentials — you supply your own

This package ships no credentials. Each user provides their own keys and their own SUPPA identity. Nothing is ever read from the MCP client JSON config; secrets are resolved from the environment, in this order:

  1. real environment variables in the launching shell, then
  2. an explicit env file at $BA_AGENT_ENV_FILE, then
  3. ~/.ba-agent/.env
# ~/.ba-agent/.env   (or export these in your shell)
SUPABASE_URL=https://<your-project>.supabase.co
SUPABASE_SERVICE_ROLE_KEY=...        # or SUPABASE_ANON_KEY for read-only
SUPPA_API_KEY=...                    # your own SUPPA identity (or SUPPA_TOKEN)
GEMINI_API_KEY=...                   # optional — enables hybrid (vector) search
FIGMA_TOKEN=...                      # optional — enables analyze_figma

Never put any secret in the MCP client JSON. A tool whose credentials are absent returns a clear, structured error instead of failing the server, so you can add capabilities incrementally.

Connect (any MCP client)

{
  "mcpServers": {
    "ba-agent": {
      "command": "uvx",
      "args": ["ba-agent-mcp"],
      "env": { "BA_AGENT_ENV_FILE": "/absolute/path/to/your/.env" }
    }
  }
}

Tools

Tool Returns
kb_search Ranked KB hits with provenance (title, breadcrumb, SUPPA anchor, data_class).
kb_assemble_context A cited grounding block for a question + coverage + strictest data_class.
kb_assemble_corpus The whole project corpus grouped by document, for cross-corpus analysis.
kb_list_docs Inventory of governed documents in a project (reads SUPPA under your own identity).
analyze_figma A structured design profile of a Figma file (requires FIGMA_TOKEN).
sadocs_search Full-text search over the SMART Business Central product documentation (uk-ua); filter by product site / toc section.
sadocs_search_images Search analyzed documentation screenshots (Gemini-vision description + Ukrainian OCR); returns the image URL and the pages it illustrates.

Data governance

The KB read tools connect with the Supabase service-role key, which bypasses row-level security, so they fail closed at the application layer: any chunk that is not explicitly data_class = 'internal' is excluded from results. Consequence — client-classed content is not readable over MCP. The append-only logs never contain document bodies, only ids, hashes, identity, and HTTP status.


Proprietary — Modern-Expo internal tooling. All rights reserved.

Download files

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

Source Distribution

ba_agent_mcp-0.3.1.tar.gz (190.4 kB view details)

Uploaded Source

Built Distribution

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

ba_agent_mcp-0.3.1-py3-none-any.whl (226.9 kB view details)

Uploaded Python 3

File details

Details for the file ba_agent_mcp-0.3.1.tar.gz.

File metadata

  • Download URL: ba_agent_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 190.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ba_agent_mcp-0.3.1.tar.gz
Algorithm Hash digest
SHA256 63b4a3e63a56dcdb14afa82494f716935c0dd1d61749333c803fa8c0ab5effeb
MD5 981344d6e9fbbf5d548bf37750e3457f
BLAKE2b-256 fb0f1a8d3c0e1d5004c1172f569de28555704c7782ca4864c7fa177a7920c448

See more details on using hashes here.

File details

Details for the file ba_agent_mcp-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: ba_agent_mcp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 226.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ba_agent_mcp-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67c03fd4e9069dd673e2da0158fe0b5c3ae20ec287ca966115a6cdfa704a7155
MD5 bbcb4ca1d2ce51fdd22f20f25862da1d
BLAKE2b-256 3e2cd7de1fff55220fbac67f8d9370fa8de27f1bacd0d08db71c7faef2d44b1e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

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