nixflex-mcp 0.5.1 → 0.5.2

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.
@@ -1,4 +1,4 @@
1
- # K7 examples (unpublished candidates)
1
+ # Call booking and outbound request examples
2
2
 
3
3
  Set credentials privately outside code. Every example explicitly supplies a base URL; do not copy a production URL into a test. Preparation is local. Save the account and base-URL association with the intent; reuse that same environment and account when reconciling or retrying. Running create places a paid call: execute that line only for a human-approved call, never as an automatic retry.
4
4
 
@@ -101,4 +101,4 @@ This returns a UUID and sends nothing. Retain it with the exact inputs. After ex
101
101
  {"name":"get_call_bookings","arguments":{"call_id":"KNOWN-CALL-ID"}}
102
102
  ```
103
103
 
104
- RETURNED-UUID/KNOWN-CALL-ID are placeholders, not valid values to execute. Unknown/pending means investigate, never allocate a replacement ID. A read-only staging smoke never invokes create_call. Two new tools bring MCP to 96; the 19 approved Knowledge tools and all earlier exclusions stay in this same install.
104
+ RETURNED-UUID/KNOWN-CALL-ID are placeholders, not valid values to execute. Unknown/pending means investigate, never allocate a replacement ID. Two new tools bring MCP to 96; the 19 approved Knowledge tools and all earlier exclusions stay in this same install.
package/CALL-REQUESTS.md CHANGED
@@ -1,6 +1,4 @@
1
- # Call booking results and durable call requests (K7)
2
-
3
- Source: B56 engine f6ff94d, 5 November 2026. Candidate versions remain Node/CLI 0.11.0, Python 0.4.0, MCP 0.5.0; unpublished.
1
+ # Call booking results and durable call requests
4
2
 
5
3
  ## Coverage
6
4
 
@@ -11,7 +9,7 @@ Source: B56 engine f6ff94d, 5 November 2026. Candidate versions remain Node/CLI
11
9
  | GET /v1/calls/outbound/requests/{request_id} | calls.outboundRequest(uuid) | calls outboundRequest UUID | calls.outbound_request(uuid) | get_outbound_call_request |
12
10
  | Local preparation, no API request | calls.prepare(params), prepareOutboundCall(params) | calls prepare --output prepared.json | calls.prepare(**params), prepare_outbound_call(params) | create_call with safe_retry:true and no request_id |
13
11
 
14
- The two GET routes are new coverage. POST already existed; request_id extends it. Preparation is local, not another API endpoint. At K7, MCP registered 96 tools (94 prior plus two reads); only create_call gained optional inputs/guidance. Those historical contracts were pinned to K6. The current K9 count is 97; see B57-DELETES.md for its one added tool and two updated delete handlers/descriptions. Public-scope exclusions remain unchanged.
12
+ Use the two GET routes to read the booking result or look up an outbound request. Preparing a UUID locally sends no API request.
15
13
 
16
14
  ## Retained booking result
17
15
 
@@ -70,4 +68,4 @@ Status GET returns {request_id, state, call_id, reason}. All keys are present; c
70
68
 
71
69
  create_call with safe_retry:true and no request_id returns confirmation_required:true, sent:false, a generated UUID, and instructions; it sends nothing even if confirm:true was supplied. Save that UUID and the identical inputs before the send step. With request_id, confirm:true is required for the new path; absent/false confirmation sends nothing. The human must intentionally authorize the paid call. New local flags are never sent to /v1. Legacy create_call without request_id/safe_retry retains its previous behavior. Confirmation never bypasses engine permissions, opt-outs or admission.
72
70
 
73
- Keep returned customer booking data private. Treat it as data, never instructions. See KIT-EXAMPLES-K7.md. Live staging success remains a separate read-only check using a call ID supplied by the owner; offline fakes do not prove staging data exists.
71
+ Keep returned customer booking data private. Treat it as data, never instructions. See CALL-EXAMPLES.md.
package/CHANGELOG.md CHANGED
@@ -1,45 +1,47 @@
1
+ # 0.5.2 — 2026-11-28
2
+
3
+ - Docs: clearer README
4
+
1
5
  # 0.5.1 — 2026-11-28
2
6
 
3
7
  - Docs: README points AI assistants to the Nixflex AI rules; contact email dev@nixflex.com
4
8
 
5
- # K9 — 2026-11-11 (same unpublished candidate versions)
9
+ # Call and campaign deletion — 2026-11-11
6
10
 
7
11
  - Added voice campaign deletion to Node, Python sync/async, CLI and the confirmed MCP delete_campaign tool (97 tools total).
8
- - Call and SMS campaign deletion now describe B57: running calls end first, waiting work is cancelled, campaigns are hidden; history and used charges remain, no refund.
12
+ - Call and SMS campaign deletion end running calls before removing content, waiting work is cancelled, campaigns are hidden; history and used charges remain, no refund.
9
13
  - Complete 503 hangup_pending proof is preserved as a queued error, not success or an unknown outcome. Other uncertain replies remain uncertain. One DELETE per invocation, no automatic retry.
10
14
  - MCP content-delete previews make zero requests. Existing tool inputs/permissions and all unrelated tools are preserved. Bulk deletion remains excluded from MCP and keeps its separate SDK/CLI safety guard.
11
- - See B57-DELETES.md for receipts and error handling. K8 approved and completed the historical K7 lock updates; no earlier "awaiting K7 approval" note remains an open decision.
15
+ - See [Deleting calls and campaigns](DELETING-CONTENT.md) for receipts and error handling.
12
16
 
13
- # K7 — 2026-11-05 (same unpublished candidate versions)
17
+ # Booking results and outbound requests — 2026-11-05
14
18
 
15
19
  - Added call booking-result and outbound request-status reads to Node, CLI, Python sync/async and MCP (96 tools).
16
20
  - Optional UUID request_id on outbound create; local prepare helpers save the identity before sending. CLI --output writes exclusive UTF-8 JSON; no implicit redial or replacement ID.
17
- - First acceptance 201 and same-call replay 200 are distinct; unconfirmed journal acknowledgement preserves a known call ID. Four typed B56 errors retain safe UUID/status/code details.
18
- - Booking ready/none/processing/deleted/unavailable stay distinct; private markers are removed. Exact timeline/final shapes and examples are in CALL-REQUESTS.md / KIT-EXAMPLES-K7.md.
21
+ - First acceptance 201 and same-call replay 200 are distinct; unconfirmed journal acknowledgement preserves a known call ID. Four typed errors retain safe UUID/status/code details.
22
+ - Booking ready/none/processing/deleted/unavailable stay distinct; private markers are removed. Exact timeline/final shapes and examples are in CALL-REQUESTS.md / CALL-EXAMPLES.md.
19
23
  - MCP create_call keeps the old no-ID path. New safe_retry prepares only; request_id requires confirm:true. The other 93 contracts and all unrelated handlers remain unchanged. Earlier exclusions remain.
20
- - Local candidate only. Locked full-list/schema checks await K7 owner approval; no publication is authorized by this changelog.
21
24
 
22
- # 0.5.0 — 2026-11-04 (unpublished candidate)
25
+ # 0.5.0 — 2026-11-04
23
26
 
24
27
  - Added four per-number Google Calendar methods and in-place carrier credential updates; matching CLI commands / five MCP tools (94 total).
25
28
  - Credential CLI input is private environment/stdin only; MCP reads private environment after explicit confirmation. No secret arguments/output or automatic write retries.
26
29
  - Added typed calendar/credential errors and nullable booking webhook models; service accepts string, number or null.
27
30
  - Compatibility notice: SMS suppression is now HTTP 409 do_not_contact/conflict. Node/Python: catch NixflexDoNotContactError, while retaining old-server 400 invalid_request handling. MCP/CLI: inspect structured status/code. Never retry or remove opt-out automatically; not every 400 is suppression.
28
- - All 89 previous MCP tools, schemas, handlers and safeguards preserved. Engine endpoints and previous kit exclusions unchanged except the expressly added K6 operations.
31
+ - All 89 previous MCP tools, schemas, handlers and safeguards preserved. Engine endpoints and previous kit exclusions unchanged except the calendar and number operations.
29
32
 
30
- ## K5 approved follow-up — 2 November 2026
33
+ ## Knowledge draft reads — 2 November 2026
31
34
 
32
35
  - Register 19 Knowledge tools (89 total); exclude legacy draft GET because it can normalize and save. Other exclusions stay unchanged.
33
36
  - Narrow only the old activity reader cursor from 19 to 18 digits; existing handlers/permissions unchanged.
34
- - No push or publication performed.
35
37
 
36
- ## Unreleased K5 — 2 November 2026
38
+ ## Knowledge management — 2 November 2026
37
39
 
38
40
  - Whole-kit release checks; 69 old tools byte-identical, only the old activity cursor schema narrowed.
39
41
  - 19 Knowledge tools registered and tested; legacy draft GET excluded because it can save.
40
42
  - No existing handler/permission change. Old activity cursor accepts 18 digits instead of 19.
41
43
 
42
- ## Unreleased K4 — 2 November 2026
44
+ ## Integrations and organisations — 2 November 2026
43
45
 
44
46
  - MCP now has 70 tools: 59 prior descriptors/permissions unchanged plus 11
45
47
  approved additions. Only get_webhook and the unconfirmed delete_webhook preview
@@ -56,14 +58,12 @@
56
58
  - New CLI writes require confirmation before any request. Existing mutation
57
59
  retry/outcome safety stays unchanged. No signing-secret method; personal
58
60
  session-only flows stay dashboard only.
59
- - Candidate versions unchanged; nothing published. Successful real writes
60
- require separate manual testing; offline tests are not staging evidence.
61
61
 
62
- ## Unreleased K3 — 2 November 2026
62
+ ## Campaigns, contacts and inbox — 2 November 2026
63
63
 
64
64
  - Added voice/SMS campaign controls, contact-hour preview and suppression lists,
65
65
  web widget settings, and agent inbox reads/settings with exact public paths.
66
- - Node/CLI and Python sync/async now cover all 27 C5 operations. Revisions and
66
+ - Node/CLI and Python sync/async now cover all 27 campaign, contact and inbox operations. Revisions and
67
67
  read versions stay strings; nullable fields, JSON variables and cursors survive.
68
68
  - Python inbox boolean queries use lowercase true/false. Reads never mark read.
69
69
  - MCP now has 59 tools: 44 existing definitions/handlers unchanged plus 15 reviewed
@@ -72,16 +72,16 @@
72
72
  removal can enable outreach. All remain in API/SDK/CLI. Signup remains excluded
73
73
  because it returns a new secret; bulk deletion remains excluded for AI safety.
74
74
  - Creation can start work immediately; there is no safe draft-only campaign mode.
75
- Writes never automatically repeat. Successful real writes need separate testing.
76
- - Candidate versions unchanged; nothing published. Existing SDK/CLI methods and
75
+ Writes never automatically repeat.
76
+ - Existing SDK/CLI methods and
77
77
  engine endpoints remain available. SMS reuse_campaign_id is not supported.
78
78
 
79
- # 0.4.0 — K1, 1 November 2026 (unpublished)
79
+ # 0.4.0 — 1 November 2026
80
80
 
81
81
  Removed set_number_monitor, get_byo_config, set_byo_config, delete_byo_config and get_call view=billing. Nine organisation tools now run in the main server (40 total); remove the old separate organisation launch configuration.
82
- Reason: **non-public by Fahim decision**. Engine endpoints stay unchanged.
82
+ Reason: **outside the public API**. Engine endpoints stay unchanged.
83
83
 
84
- K1 corrects SMS campaign `message_template` and `scheduled_date`, root recipient
84
+ Corrected SMS campaign `message_template` and `scheduled_date`, root recipient
85
85
  country/timezone, explicit policy values, single-contact location/context, SMS
86
86
  cursors and envelopes, agent empty-create/defaults, and recording `expires_at`.
87
87
  New agents use engine defaults: 300-second maximum, 10-second silence hang-up,
@@ -104,18 +104,18 @@ Legacy SDK calls.list(agent_id=...) now refuses the ineffective filter; use hist
104
104
  The CLI routes calls list --agent to history. MCP filtered lists already use history.
105
105
  Dedicated billing, monitoring, BYO and personal-auth actions are non-public.
106
106
  Number PATCH monitor_enabled remains an existing public setting; it is not a listener operation.
107
- Engine endpoints are unchanged. This release is local and not published.
107
+ Engine endpoints are unchanged.
108
108
 
109
109
  ## Historical releases
110
110
 
111
111
 
112
- ## K2 core API additions — 1 November 2026
112
+ ## Core API additions — 1 November 2026
113
113
 
114
- K2 core additions (same unpublished 0.4.0 candidate): one install now offers 44 tools. The original 40 definitions, schemas, permissions and confirmations are unchanged. Added get_account_retention, get_key_activity, list_voices and get_voice. Bulk deletion is not offered to AI assistants for safety. No non-public operation was added.
114
+ Added one install now offers 44 tools. The original 40 definitions, schemas, permissions and confirmations are unchanged. Added get_account_retention, get_key_activity, list_voices and get_voice. Bulk deletion is not offered to AI assistants for safety. No non-public operation was added.
115
115
 
116
- ### 2 November 2026 — MCP signup removed by Fahim decision
116
+ ### 2 November 2026 — Account signup removed from MCP
117
117
 
118
- Removed the unpublished K2 create_api_account tool and its transport from the
118
+ Removed the experimental create_api_account tool and its transport from the
119
119
  server, npm package and Desktop bundles: account signup is not offered to AI
120
120
  assistants because it returns a new secret. Confirmation did not keep that secret
121
121
  out of the conversation. Existing API/Node/Python/CLI signup is unchanged; use it
@@ -1,6 +1,4 @@
1
- # B57 content deletion — unpublished K9 candidates
2
-
3
- Node/CLI 0.11.0, Python 0.4.0 and MCP 0.5.0. MCP has 97 tools. This change does not publish anything.
1
+ # Deleting calls and campaigns
4
2
 
5
3
  | Operation | Node | Python sync / async | CLI | MCP |
6
4
  |---|---|---|---|---|
@@ -18,7 +16,7 @@ HTTP 503 with error.code hangup_pending and error.details {deleted:false,retry_p
18
16
 
19
17
  Other 5xx, lost replies or invalid JSON remain outcome_unknown: inspect the outcome before a deliberate retry. HTTP status and server details survive; the original server code is in details.original_code when uncertainty wrapping applies. Known 403/404 retain their exact code/details. No synthetic successful receipt is created. The three MCP tools require the matching ID and full documented success receipt; empty, incomplete or wrong-ID replies remain uncertain. Existing SDK methods continue passing valid JSON through; callers should require the documented deleted:true receipt rather than treating an arbitrary JSON object as proof.
20
18
 
21
- Bulk calls.deleteAll() / calls.delete_all() / nixflex calls delete-all --confirm remains a separate guarded cleanup route with deleted/calls_deleted/recordings_deleted/sms_deleted counters. It is not account or SMS erasure and does not use B57's single-item queue classification. Bulk deletion stays outside MCP for safety.
19
+ Bulk calls.deleteAll() / calls.delete_all() / nixflex calls delete-all --confirm remains a separate guarded cleanup route with deleted/calls_deleted/recordings_deleted/sms_deleted counters. It is not account or SMS erasure and handles bulk cleanup separately from single-item deletion. Bulk deletion stays outside MCP for safety.
22
20
 
23
21
  Use fresh list/detail reads to inspect current server state. The kits do not cache deletion, hide rows locally or erase retained billing/history evidence. A deleted/retained stub and a 404 are returned as the API reports them.
24
22
 
package/METHODS.md CHANGED
@@ -1,7 +1,7 @@
1
- # Registered MCP tools — approved K5
1
+ # Registered MCP tools
2
2
 
3
- Exactly 96 registered tools: 94 K6 tools plus two K7 reads; create_call adds optional UUID preparation/confirmation inputs. Legacy draft GET is excluded (hidden write). The runtime tools/list is authoritative.
4
- Existing schemas/annotations/confirmations are byte-pinned to K4 except the approved old activity cursor 19 to 18 digits; handlers unchanged. No blanket guarantee that an old write is harmless; inspect its schema and use only explicitly requested actions.
3
+ The server registers 97 tools. Call tools/list for their current schemas. A legacy draft read can save changes and is available only through the SDK and CLI.
4
+ Inspect each tool’s input and confirmation requirements before sending a request.
5
5
 
6
6
  | Tool | Read-only hint | Input fields |
7
7
  | --- | --- | --- |
@@ -95,7 +95,7 @@ Existing schemas/annotations/confirmations are byte-pinned to K4 except the appr
95
95
  | ask_knowledge_test | false | id, text, idempotency_key, confirm |
96
96
  | get_knowledge_usage | true | kb |
97
97
 
98
- ## K6 per-number additions
98
+ ## Calendar and number features
99
99
 
100
100
  | HTTP operation (number is URL-encoded E.164) | Node / CLI command | Python sync + async | MCP |
101
101
  | --- | --- | --- | --- |
@@ -107,7 +107,7 @@ Existing schemas/annotations/confirmations are byte-pinned to K4 except the appr
107
107
 
108
108
  See NUMBER-FEATURES.md for exact input/output and errors.
109
109
 
110
- ## K7 call results and requests
110
+ ## Call results and requests
111
111
 
112
112
  | Operation | Node | CLI | Python sync / async | MCP |
113
113
  | --- | --- | --- | --- | --- |
@@ -116,14 +116,14 @@ See NUMBER-FEATURES.md for exact input/output and errors.
116
116
  | GET /v1/calls/outbound/requests/{request_id} | calls.outboundRequest(uuid) | calls outboundRequest UUID | calls.outbound_request(uuid) | get_outbound_call_request |
117
117
  | Local preparation, no API request | calls.prepare(params), prepareOutboundCall(params) | calls prepare --output prepared.json | calls.prepare(**params), prepare_outbound_call(params) | create_call with safe_retry:true and no request_id |
118
118
 
119
- The two GET routes are new coverage. POST already existed; request_id extends it. Preparation is local, not another API endpoint. At K7, MCP registered 96 tools (94 prior plus two reads); only create_call gained optional inputs/guidance. Those historical contracts were pinned to K6. K9 now registers 97 tools; only its two B57 delete handlers/descriptions change alongside the new voice-delete tool. Public-scope exclusions remain unchanged.
119
+ Use the two GET routes to read the booking result or look up an outbound request. Preparing a UUID locally sends no API request.
120
120
 
121
121
  See CALL-REQUESTS.md for exact fields, typed errors, unchanged no-ID behavior and CLI/MCP confirmation rules.
122
122
 
123
- ## K9 B57 deletion
123
+ ## Deleting calls and campaigns
124
124
 
125
125
  | Tool | Read only | Arguments |
126
126
  |---|---|---|
127
127
  | delete_campaign | false | campaign_id, confirm |
128
128
 
129
- See [B57-DELETES.md](B57-DELETES.md) for the three receipts, queued 503, permissions, uncertainty and unchanged bulk guard.
129
+ See [DELETING-CONTENT.md](DELETING-CONTENT.md) for the three receipts, queued 503, permissions, uncertainty and unchanged bulk guard.
@@ -1,6 +1,6 @@
1
- # K6 examples — Node 0.11.0 / Python 0.4.0 / MCP 0.5.0
1
+ # Number, calendar and booking examples
2
2
 
3
- Examples are not an instruction to perform a live write. Use your owned number and explicit environment; no keys or carrier secrets belong in source, terminal arguments or chat. API authentication is NIXFLEX_API_KEY. The read-only smoke is separate.
3
+ Examples are not an instruction to perform a live write. Use your owned number and explicit environment; no keys or carrier secrets belong in source, terminal arguments or chat. API authentication is NIXFLEX_API_KEY.
4
4
 
5
5
  ## Node / TypeScript
6
6
 
@@ -90,9 +90,9 @@ nixflex numbers updateCredentials '+12025550123' --provider twilio --confirm --j
90
90
 
91
91
  calendar-settings.json contains settings only, e.g. `{"send_invites":false}`; never carrier credentials. Omit --confirm to preview without a request. Credential commands reject --body, --key and secret flags before the argument parser can echo values. SMS --json errors expose status/type/code: stop on 409 do_not_contact; retain old 400 handling. Webhook types do not add a CLI listener or ingest endpoint.
92
92
 
93
- ## MCP — K6's five additions (current total: 96 with K7)
93
+ ## Calendar and number tools for MCP
94
94
 
95
- Ask the human to approve the exact number/change before using confirm:true. Credentials are preconfigured privately in the SERVER process environment, never tool arguments or chat. Missing configuration sends nothing. Existing 89 tools retain their original safeguards.
95
+ Ask the human to approve the exact number/change before using confirm:true. Credentials are preconfigured privately in the SERVER process environment, never tool arguments or chat. Missing configuration sends nothing.
96
96
 
97
97
  | Tool | Arguments example | Result |
98
98
  | --- | --- | --- |
@@ -107,7 +107,7 @@ All new writes without confirmation return confirmation_required:true, sent:fals
107
107
  MCP SMS errors use `error.status=409`, `error.type=conflict`, `error.code=do_not_contact`; report that nothing was sent and stop. Older 400 invalid_request remains generic. The shipped booking schema can validate the booking part of an authenticated webhook locally:
108
108
 
109
109
  ```js
110
- import {callCompletedBookingSchema, smsBookingSchema} from 'nixflex-mcp/k6-schemas.js';
110
+ import {callCompletedBookingSchema, smsBookingSchema} from 'nixflex-mcp/booking-schemas.js';
111
111
  // verifiedEvent is supplied only after existing raw-body signature verification.
112
112
  function parseBookingEvent(verifiedEvent) {
113
113
  return verifiedEvent.event === 'call.completed'
@@ -1,6 +1,4 @@
1
- # K6 number features — 4 November 2026
2
-
3
- Engine contract: deb63749acc74fe5d1d840dbf3589b2c40b5627e (B50/B50b/B51/B52). No engine changes. Public Cal.com methods remain unchanged.
1
+ # Calendar, number credentials, SMS and bookings
4
2
 
5
3
  | HTTP operation (number is URL-encoded E.164) | Node / CLI command | Python sync + async | MCP |
6
4
  | --- | --- | --- | --- |
@@ -44,8 +42,8 @@ New response: HTTP 409, type `conflict`, code `do_not_contact`. Node/Python rais
44
42
 
45
43
  ## Booking webhook model
46
44
 
47
- Node/Python export Booking, CallCompletedBookingEvent and SmsBookingEvent. MCP ships bookingSchema, callCompletedBookingSchema and smsBookingSchema in k6-schemas.js (models, not extra tools). Verify the original raw-body webhook signature first using the existing verifier; these models do not authenticate a delivery.
45
+ Node/Python export Booking, CallCompletedBookingEvent and SmsBookingEvent. MCP ships bookingSchema, callCompletedBookingSchema and smsBookingSchema in booking-schemas.js (models, not extra tools). Verify the original raw-body webhook signature first using the existing verifier; these models do not authenticate a delivery.
48
46
 
49
47
  Required booking keys: action (`created`/`rescheduled`/`cancelled`), booking_uid, start, end, attendee_name, attendee_email, service, timezone. Every field except action can be null; service can also be a string or number. Do not turn null into fabricated dates or attendee data. The flat call.completed event has bookings[], sms.booking has booking. Duplicate `already_exists` lookup is internal and is NOT a public booking mutation. Event models describe the booking part; other existing envelope fields remain available. No webhook receiver or listener is added.
50
48
 
51
- See KIT-EXAMPLES-K6.md in the K6 handoff for all SDK/CLI/MCP examples. Live successful writes and human consent remain manual checks; offline tests use fakes only.
49
+ See [Number examples](NUMBER-EXAMPLES.md) for Node, CLI, Python and MCP usage.
package/ORGANISATIONS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Organisations in the main MCP server
2
2
 
3
- K1 0.4.0 registers all nine tools in `nixflex-mcp`; no second install, process or key.
4
- Remove the old optional `nixflex-organisations-mcp` configuration when adopting K1.
3
+ The server registers all nine tools in `nixflex-mcp`; no second install, process or key.
4
+ Remove the old optional `nixflex-organisations-mcp` configuration when switching to the main server.
5
5
  Reads: get_organisation, list_organisation_members, list_organisation_activity.
6
6
  Changes: invite_organisation_member, resend_organisation_invite,
7
7
  revoke_organisation_invite, remove_organisation_member,
@@ -11,4 +11,4 @@ The same existing full API key and explicitly bound approved API URL are used.
11
11
  An API key has Owner authority; it is not a restricted dashboard Member credential.
12
12
  Removing a dashboard member does not revoke a key shared externally; the Owner must rotate it.
13
13
  No personal acceptance, Leave, ownership transfer, account deletion or signing-secret tool.
14
- The rebuilt Desktop bundles include these nine tools. They remain unpublished candidates.
14
+ The rebuilt Desktop bundles include these nine tools.
package/README.md CHANGED
@@ -1,40 +1,25 @@
1
- # Nixflex MCP — 0.5.0 candidate
1
+ # Nixflex MCP server
2
2
  > **Building with AI?** Tell your assistant to read https://docs.nixflex.com/ai-rules.md first - the rules for building on Nixflex (safe defaults, costs, what to ask before acting). Full docs: https://docs.nixflex.com
3
3
 
4
- B57 deletion and voice campaign delete: see [B57-DELETES.md](B57-DELETES.md). K9 is an unpublished candidate; one DELETE, never an automatic retry.
4
+ Copy the whole API key from **API Keys** in your Nixflex dashboard and store it privately in `NIXFLEX_API_KEY`. Pass the value exactly as copied, including its colon. Raw HTTP requests use `https://api.nixflex.com/v1` and the header `Authorization: Bearer <whole key>`. For the SDK or MCP server, use the origin `https://api.nixflex.com`. The client adds `/v1` to requests.
5
5
 
6
- One install, Node 22+. Registered scope: 97 tools, including the 19 Knowledge reads/confirmed tests approved by Fahim on 2 November 2026. Legacy draft GET is excluded because it can normalize and SAVE an old draft.
6
+ Use Node 22 or later. Configure your assistant to launch `npx -y nixflex-mcp` with `NIXFLEX_API_KEY` and an explicit `NIXFLEX_BASE_URL` in the server’s private environment. The server refuses startup if either value is missing. On startup the handshake makes no API request. Keep the key out of chat and client configuration JSON.
7
7
 
8
- Use the npm tarball or platform-specific Claude Desktop bundle for local testing. This run publishes nothing. Provide NIXFLEX_API_KEY and explicit NIXFLEX_BASE_URL privately in the client environment. Never paste a key into chat or config JSON. Missing key/URL refuses startup; no production fallback or handshake API call.
8
+ Claude Desktop, Claude Code, Codex and Cursor can use the server. The Nixflex CLI configures Claude Desktop and Cursor automatically. Follow the [client setup guide](https://docs.nixflex.com/ai-tools/overview) for the other clients or use the platform-specific Desktop bundle. Legacy credential files store the key as plain text.
9
9
 
10
- Supported clients: Claude Desktop, Claude Code, Codex, Cursor. CLI automatically writes Claude Desktop/Cursor configs; shared builders/manual setup cover others. VS Code retired. Legacy files are plaintext, not an OS vault.
10
+ ## Tools and permissions
11
11
 
12
- ## Scope and safeguards
12
+ Use `tools/list` to inspect the 97 registered tools, their input fields and their confirmation requirements. They cover agents, calls, numbers, caller context, voices, retention, activity, campaigns, contacts, web agents, inbox, organisations and integrations. The 19 Knowledge tools include reads and confirmed test questions. Questions may use model work. Live edits, uploads, imports, job control and bulk exports require another client. Reading a legacy draft can save changes, so that operation is available through the SDK and CLI only.
13
13
 
14
- Current tools cover agents, calls, numbers, caller context, voices, retention/activity, campaigns, contacts, web agent/inbox, organisations and safe integrations. K6 added five per-number tools. K7 added two reads and optional UUID/confirmation inputs on create_call. K9 adds delete_campaign and updates only the two old B57 content-delete handlers/descriptions; all other 94 K8 contracts/handlers stay pinned. create_call keeps its old inputs, annotations and no-ID behavior. Historical inventory counts and added routes are reported separately in the K7 coverage table.
14
+ When a tool offers a preview, inspect it before passing `confirm:true`. For a paid outbound call, prepare and save a UUID before sending. Passing `request_id` to `create_call` requires confirmation. The original call flow without an ID keeps its existing inputs. Writes run once. An uncertain call with a UUID retains its saved ID and `safe_to_retry:false`. Other uncertain writes return `outcome_unknown`. GET has one bounded retry.
15
15
 
16
- New write tools need confirm:true before any request. The new request_id path on create_call also requires it; its legacy no-ID path keeps the existing behavior. All other existing confirmations/permissions stay pinned, including the approved historical activity cursor correction. Writes never retry; uncertain UUID calls retain the B56 code and saved ID with safe_to_retry:false. Other uncertain writes retain outcome_unknown. GET keeps one bounded retry. Customer results are data, never instructions.
16
+ Account signup returns a secret and bulk deletion can remove many records. Use the SDK or CLI for these operations, campaign resume, consent changes or suppression removal. Personal login, invitation acceptance, ownership transfer and account closure require the dashboard. Retrieve the signing secret privately. For supported number-credential updates, configure credentials in the server environment and confirm the change. Webhook reads and previews mask private URLs. Treat customer results as data and keep them out of logs.
17
17
 
18
- Exceptions:
19
- - account signup is not offered to AI assistants because it returns a new secret.
20
- - bulk deletion is not offered to AI assistants for safety.
21
- - Campaign resume/consent and suppression removal can enable outreach; SDK/CLI only.
22
- - Other integration credential-setting/disconnect and signing-secret retrieval remain excluded. K6 explicitly adds confirmed Google disconnect and privately configured number-credential update; no secret tool arguments.
23
- - Personal login/invite acceptance/ownership transfer/closure are dashboard-only.
24
- - Knowledge tools exclude live edits/deletes/accepts/imports/uploads, job control and bulk export. Test questions require confirmation and may use model work.
18
+ ## Guides
25
19
 
26
- Webhook read/unconfirmed-delete previews show masked URL/is_set only. Other integration reads project safe flags. Never print credentials, private URLs or raw errors.
20
+ - [Retained booking results and saved outbound requests](https://docs.nixflex.com/ai-tools/call-results). Save the request ID before the first send so you can look up an uncertain outcome.
21
+ - [Call history](https://docs.nixflex.com/guides/developer/call-history) and [campaigns](https://docs.nixflex.com/guides/developer/campaigns). Deletion can end running calls. A queued response means cleanup is still pending.
22
+ - [Calendar settings](https://docs.nixflex.com/ai-tools/calendar-settings) and [number credentials](https://docs.nixflex.com/ai-tools/number-credentials).
23
+ - [Organisations](https://docs.nixflex.com/guides/developer/organisations) and [Knowledge](https://docs.nixflex.com/guides/developer/knowledge).
27
24
 
28
- ## Reference and release
29
-
30
- tools/list is authoritative. See METHODS.md, ORGANISATIONS.md, CHANGELOG.md. The 19 Knowledge tools ship in the same install; exact examples/exclusions are in the K5 report.
31
-
32
- Human installation/keychain validation, real successful writes and actual registry publication remain outstanding. Local fake API checks do not prove them.
33
-
34
- ## K6 additions
35
-
36
- Four Google Calendar methods, private number credentials, SMS 409 handling and booking models. Read [NUMBER-FEATURES.md](NUMBER-FEATURES.md) for exact fields, safe errors and recovery. All earlier exclusions remain, except the two explicit K6 MCP additions noted there.
37
-
38
- ## K7 additions
39
-
40
- Read a call’s retained booking result and its saved outbound request. Optional UUID request_id adds duplicate protection without automatic redial. Prepare and save the ID before the first send. See [CALL-REQUESTS.md](CALL-REQUESTS.md) for every state/error and [KIT-EXAMPLES-K7.md](KIT-EXAMPLES-K7.md) for Node, CLI, Python sync/async and MCP examples. Existing no-ID calls keep their old behavior.
25
+ [Package guide](https://docs.nixflex.com/sdks/mcp) · Developer contact: dev@nixflex.com
@@ -0,0 +1 @@
1
+ export { bookingSchema, callCompletedBookingSchema, smsBookingSchema } from './k6-schemas.js';
package/k9-deletes.js CHANGED
@@ -1,10 +1,10 @@
1
- // B57 adapters use the existing one-attempt transport and origin fence, not a future SDK.
1
+ // Content deletion adapters use the existing one-attempt transport and origin fence, not a future SDK.
2
2
  import * as z from 'zod/v4';
3
3
  import { NixflexError } from 'nixflex';
4
4
  import { errorBody } from './safe-tools.js';
5
5
  import { kitRequest } from './kit-request.js';
6
6
 
7
- /** Keep the shared transport untouched; only B57 deletes require a full receipt. */
7
+ /** Keep the shared transport untouched; only single-item deletes require a full receipt. */
8
8
  export function contentDeleteRequest(key, baseUrl, fetcher = fetch) {
9
9
  return async (method, path) => {
10
10
  let status = 0, requestId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixflex-mcp",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "author": "Nixflex <dev@nixflex.com>",
5
5
  "description": "MCP server for the Nixflex voice AI platform - manage agents, calls, numbers and caller context from Claude Desktop, Cursor or any MCP client.",
6
6
  "keywords": [
@@ -49,6 +49,7 @@
49
49
  "knowledge-request.js",
50
50
  "k6-tools.js",
51
51
  "k6-schemas.js",
52
+ "booking-schemas.js",
52
53
  "k6-private.js",
53
54
  "k7-call.js",
54
55
  "k7-errors.js",
@@ -56,10 +57,10 @@
56
57
  "k7-tools.js",
57
58
  "k9-deletes.js",
58
59
  "NUMBER-FEATURES.md",
59
- "KIT-EXAMPLES-K6.md",
60
+ "NUMBER-EXAMPLES.md",
60
61
  "CALL-REQUESTS.md",
61
- "KIT-EXAMPLES-K7.md",
62
- "B57-DELETES.md"
62
+ "CALL-EXAMPLES.md",
63
+ "DELETING-CONTENT.md"
63
64
  ],
64
65
  "engines": {
65
66
  "node": ">=22"