@articul8/bivia-mcp 0.0.0-stage → 1.1.0
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.
- package/LICENSE +202 -0
- package/README.md +175 -2
- package/format.js +56 -0
- package/oauth.js +910 -0
- package/package.json +43 -4
- package/server.js +759 -0
- package/skills/bivia/SKILL.md +36 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bivia
|
|
3
|
+
description: Make calibrated, typed decisions with confidence scores, source evidence, and honest abstention using the Bivia MCP server. Use when triaging, classifying, scoring risk/severity, selecting actions, locating supporting text spans, grounding objects in images, or deciding over numeric signals.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Bivia Decision Engine
|
|
7
|
+
|
|
8
|
+
Use the `bivia` MCP tools whenever a task needs a **calibrated, structured decision** rather than an uncalibrated guess — especially for classification, triage, risk/severity scoring, compliance checks, routing, or evidence localization.
|
|
9
|
+
|
|
10
|
+
## Choosing the right tool
|
|
11
|
+
|
|
12
|
+
| Goal | Tool | Required inputs |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| Yes / no decision | `bivia_boolean` | `question`, `state?` |
|
|
15
|
+
| Pick one option from a list (routing, triage, next action) | `bivia_choice` | `question`, `choices[]`, `state?` |
|
|
16
|
+
| Numeric rating on a scale (risk, urgency, quality) | `bivia_score` | `question`, `range?: [min, max]`, `state?` |
|
|
17
|
+
| Multi-select: every option that applies (0, 1, or many) | `bivia_set` | `question`, `options[]`, `state?` |
|
|
18
|
+
| Quote exact supporting passages with character offsets | `bivia_span` | `question`, `state` |
|
|
19
|
+
| Auto-detect decision type when output shape isn't fixed | `bivia_decide` | `question`, `outcomes[]?`, `state?` |
|
|
20
|
+
| Locate objects in an image (`[0, 1000]` bounding boxes) | `bivia_ground` | `question`, `image: { url \| b64, mime }` |
|
|
21
|
+
| Decide over raw numeric / sensor signals | `bivia_ds` | `question`, `signals[]`, `options[]?`, `kind?` |
|
|
22
|
+
|
|
23
|
+
## Best practices
|
|
24
|
+
|
|
25
|
+
1. **Put facts in `state`, ask cleanly in `question`.**
|
|
26
|
+
Keep `state` as plain text containing the relevant facts/excerpt, and keep `question` focused on the single decision to make.
|
|
27
|
+
2. **Respect honest abstention (`status: "abstained"` / `"unsure"`).**
|
|
28
|
+
Abstention is a feature, not an error. Never override `"unsure"` by guessing:
|
|
29
|
+
- First, check if you can gather more context and re-ask with a richer `state`.
|
|
30
|
+
- If evidence is genuinely missing or conflicting, surface the abstention and probability distribution to the user.
|
|
31
|
+
3. **Use the full probability distribution for high-stakes calls.**
|
|
32
|
+
Inspect `probability` / `distribution` (or `probabilities` for `bivia_set`, `levels` for `bivia_score`) to apply thresholds appropriate to the risk level rather than treating a 0.55 pick the same as a 0.97 pick.
|
|
33
|
+
4. **Pair decisions with evidence when auditability matters.**
|
|
34
|
+
After `bivia_boolean` or `bivia_choice`, call `bivia_span` on the same `state` to return exact character offsets and quoted text supporting the answer.
|
|
35
|
+
5. **Handle authentication smoothly.**
|
|
36
|
+
If a tool fails due to missing or expired credentials, call `bivia_auth_status` to inspect state, and guide the user through `bivia_login` (or `bivia_signup` if they don't have an account yet).
|