Skip to main content Switch to mobile version becda-mcp 0.1.1 Official MCP server for Becda decision memory & Decision Rules: AI reads, Becda learns how you decide.
pip install becda-mcp==0.1.1 Copy PIP instructions
A read-only MCP server for Becda decision memory. AI reads. Becda learns how you decide.
An AI agent can ask Becda what code a record should get, how sure Becda is, and whether it is safe to process the record automatically. The agent cannot teach, change or delete anything.
pip install becda-mcp # or run without installing: uvx becda-mcp Python 3.10 or newer. The only dependency is the official mcp SDK. The server talks to the Becda API over HTTPS with the Python standard library.
Configuration (environment variables only)
If the key does not start with becda_ro_, the server prints a warning to stderr and still works. Examples for Claude Desktop and Cursor are in becda_mcp/ornekler/.
Read-only tools (all work with a becda_ro_... read-only key):
becda_predict(fields, text?, item_id?): one record. Runs through the tenant's active Decision Rules (pre-rules and post-rules) and decision memory, returning the structured result (code, confidence, auto_approved, reason, plus rule_* fields when a rule applies) and normalized_fields.
becda_predict_batch(records): up to 100 records. Same shape per record.
becda_status(): observation counts, cold start flag, alarm, closed codes, and active rule version (when rules are enabled).
becda_explain(result): turns a becda_predict result (including rule-triggered outcomes) into a few plain sentences. Runs locally; no server call.
becda_rules_summary(): reads the tenant's active company/policy decision rules (pre-rules and post-rules) together with plain-English summaries. Uses no quota.
becda_rules_simulate(fields, text?, pre_rules?, post_rules?): dry-runs current or proposed rules against this tenant's real memory with zero quota cost and zero side effects.
becda_rules_telemetry(limit?): reads ZDR-safe live decision rule hit counts and recent events (never contains invoice text, supplier names, or amounts). Uses no quota.
becda_rules_templates(template_id?): lists Becda's tested rule templates (12 categories, a basic and an advanced one each) and the tenant's own templates saved in the Portal; with template_id it returns one template with its JDM table, required fields, example record and plain-language summary. Agents should start from a template and adapt thresholds instead of writing rules from scratch. Uses no quota.
Draft-only staging tool (requires a full write key; returns 403 read_only_key with becda_ro_...):
becda_rules_save_draft(pre_rules?, post_rules?, enabled?): validates a JDM decision table (blocking arbitrary code nodes) and saves it as a DRAFT only. Live traffic is never changed automatically—a person reviews the plain-language summary and publishes it in the Becda Portal (Karar Kuralları). Drafts saved through MCP are labelled "written by an agent" there, and publishing them asks for an extra confirmation.
There are no learn, rollback, forget, close-code, or live rule-publish tools.
Schema file (becda-sema.json)
{ "fields": { "
An unknown field name returns a tool error that lists the allowed names. Nothing is sent and nothing is dropped silently. Without a schema file, fields pass through with only whitespace stripped, at most 50 fields and 200 characters per value.
An example is in becda_mcp/ornekler/becda-sema.json.
With "hash": true, the cleaned value is replaced by "h:" plus the first 16 hex characters of HMAC-SHA256 with BECDA_HASH_SALT as key and the value as message (UTF-8). If the schema asks for a hash and no salt is set, the call fails with a clear error.
The ERP side must use the same salt and the same format when it teaches Becda. If the salts or cleaning rules differ, Becda will not recognise the supplier.
The server runs on your machine over stdio. There is no hosted MCP service.
The tenant and key come only from the environment. An agent cannot ask about another tenant.
Use a read-only key. The Becda API answers 403 read_only_key for any write with it.
Tool descriptions say only what a tool does. Tool output is structured JSON and does not echo document text beyond the normalized fields.
The API key never appears in output or logs. Each call has a 15 second timeout.
Why there are no write tools
A write tool would let text inside a document (an invoice, an email) steer the agent into teaching Becda wrong decisions. That is memory poisoning through prompt injection. Becda therefore learns only from decisions a person confirmed in the ERP, using a full-access key that the agent never holds. A design note for an optional, human-approved write path will follow.
Released: Nov 28, 2026
Both files in this release have provenance metadata.
View provenance details
mcp becda accounting erp e-invoice decision-engine
Release files for becda-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 28.9 kB
Release files / becda_mcp-0.1.1.tar.gz
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Release files / becda_mcp-0.1.1-py3-none-any.whl
Security for becda-mcp 0.1.1
Both files in this release have been uploaded with provenance metadata.
With provenance becda_mcp-0.1.1.tar.gz Nov 28, 2026
With provenance becda_mcp-0.1.1-py3-none-any.whl Nov 28, 2026
Attestation for becda_mcp-0.1.1.tar.gz
Attestation for becda_mcp-0.1.1-py3-none-any.whl
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.
Release history Release notifications | RSS feed
Nov 28, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











