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:
- real environment variables in the launching shell, then
- an explicit env file at
$BA_AGENT_ENV_FILE, then ~/.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 |
Screenshots for a question, anchored to the pages that answer it (empty when those pages are text-only); returns the image URL, description, and page(s). |
sadocs_screenshots |
The same page-anchored screenshots as displayable image blocks (rendered inline by the client); no source URL unless include_source=true. |
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.
Metadata
Release files for ba-agent-mcp 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ba_agent_mcp-0.3.2.tar.gz | 191.5 kB | Without provenance | Details for ba_agent_mcp-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ba_agent_mcp-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for ba_agent_mcp-0.3.2-py3-none-any.whl |
Total release size: 419.6 kB
Release files / ba_agent_mcp-0.3.2.tar.gz
| Download URL | ba_agent_mcp-0.3.2.tar.gz |
|---|---|
| Size | 191.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69a91cb4e169c3f820c5e5f70664bcd3d1909ed6d6f62214e91ebb41eb96b838
|
|
BLAKE2b-256 checksum How to use checksums |
89622e7acc6a08179bffa0601caabf325677b5a7fe14a227b48e02852d014950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / ba_agent_mcp-0.3.2-py3-none-any.whl
| Download URL | ba_agent_mcp-0.3.2-py3-none-any.whl |
|---|---|
| Size | 228.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d74b52a31d8e4e712a80f3ec9d872b56e0a40ae51990634fc789c2ede376e71a
|
|
BLAKE2b-256 checksum How to use checksums |
14c33ece2a01d305db0a3afa453c009eba66f33b5af1d22d89d93a81491e946f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for ba-agent-mcp 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.