nixflex-mcp 0.5.1 → 0.6.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/README.md CHANGED
@@ -1,40 +1,45 @@
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 98 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
25
+ ## Monitor live calls and save agent settings
29
26
 
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.
27
+ Use `list_live_calls` for a summary of calls on monitor-enabled numbers. A partial list has unknown counts. Pass creation belongs in the server SDK or a private terminal because the returned socket URL grants access to a live call and an assistant cannot play or publish audio.
31
28
 
32
- Human installation/keychain validation, real successful writes and actual registry publication remain outstanding. Local fake API checks do not prove them.
29
+ Each call supports up to **10 audio listeners** and **100 listeners in total** across audio and text. A pass is single-use and gives the listener 60 seconds to join. Once connected, the session continues past that deadline while its lease and permission remain valid. A pass does not reserve a seat. When all 10 audio seats are taken, an audio pass request through a server SDK or the CLI returns HTTP 409 `audio_seats_full`. This is a definite refusal after one attempt and no pass was issued. Request a fresh pass in text mode to follow the transcript. `list_live_calls` is unchanged.
33
30
 
34
- ## K6 additions
31
+ The default API key limit is 300 requests per minute. If pass creation through a server SDK receives HTTP 503 `monitor_unavailable`, the SDK reports `outcome_unknown`, preserves status 503 and the cause in `details.original_code`, and makes one attempt. The CLI reports `503 outcome_unknown`. Check the call before requesting another pass.
35
32
 
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.
33
+ For `update_agent`, pass the agent ID and the following `fields` object, substituting the revision returned by `get_agent`.
37
34
 
38
- ## K7 additions
35
+ ```json
36
+ {"if_revision":"0123456789abcdef01234567","changes":{"welcome_message":"How can I help?"}}
37
+ ```
39
38
 
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.
39
+ Use the `settings_revision` from the latest agent read as `if_revision`. Supply `if_voice` to compare the voice fields you read, including an explicit null. Send edits beside the guards or inside `changes`. The envelope requires `if_revision` and places all edits inside `changes`. With agent settings enabled, a guarded save applies every change together. Use the envelope when engine support is uncertain. Engines that cannot apply it refuse the whole save. After a 409 `settings_revision_conflict` or `agent_voice_conflict`, read the agent again and review the edits. A 400 `empty_agent_update` or `invalid_agent_field` asks you to correct the request. Keep the guard on every retry.
40
+
41
+ For `call_flag_rules`, `paused_by_card: true` requires `paused: true`. Resuming the card lifts only its own pauses. An individually paused flag stays paused.
42
+
43
+ The signed `call.listening_started` webhook follows the first confirmed audio playback. `call.taken_over` follows the first committed takeover. Each fires once per call per destination URL. The socket signals `call_ended` immediately and the existing `call.completed` webhook follows.
44
+
45
+ [Package guide](https://docs.nixflex.com/sdks/mcp) · Developer contact: dev@nixflex.com
@@ -0,0 +1,34 @@
1
+ import * as z from 'zod/v4';
2
+ import { agentUpdateFields } from './agent-schema.js';
3
+
4
+ const flag = z.strictObject({
5
+ id: z.string(), label: z.string(), watch_for: z.string(), enabled: z.boolean(),
6
+ paused: z.boolean().optional(), paused_by_card: z.boolean().optional(),
7
+ });
8
+ const voiceValue = z.union([z.string().max(200), z.number().int(), z.null()]).optional();
9
+ const voice = z.strictObject({
10
+ voice_id: voiceValue, voice_key: voiceValue, language: voiceValue, voice_route_key: voiceValue,
11
+ backup_voice_key: voiceValue, backup_voice_route_key: voiceValue, voice_pair_version: voiceValue,
12
+ });
13
+ const changes = agentUpdateFields.extend({ call_flag_rules: z.array(flag).max(10).nullable().optional() });
14
+ export const settingsFields = changes.extend({
15
+ if_revision: z.string().regex(/^[a-f0-9]{24}$/).optional(),
16
+ if_voice: voice.optional(), changes: changes.optional(),
17
+ });
18
+
19
+ const messages = new Map(Object.entries({
20
+ "settings_revision_conflict": "Agent settings changed. Read the latest settings and review your edits before saving.",
21
+ "agent_voice_conflict": "The saved voice changed. Read the latest voice settings before saving.",
22
+ "empty_agent_update": "Supply at least one changed agent setting.",
23
+ "invalid_agent_field": "Check the rejected agent fields and their values."
24
+ }));
25
+ export async function updateSettings(client, id, fields) {
26
+ try {
27
+ return await client.agents.update(id, fields);
28
+ } catch (error) {
29
+ if ([400, 409].includes(error?.status) && messages.has(error.code)) {
30
+ error.message = [error.message, messages.get(error.code)].filter(Boolean).join(' ');
31
+ }
32
+ throw error;
33
+ }
34
+ }
@@ -0,0 +1 @@
1
+ export { bookingSchema, callCompletedBookingSchema, smsBookingSchema } from './k6-schemas.js';
package/c5-schemas.js CHANGED
@@ -1,17 +1,31 @@
1
- import * as z from 'zod/v4';
2
- // Additive C5 schemas. Omission is preserved; no consent or server defaults are invented.
3
- export const s97 = z.object({"status": z.string().optional(), "limit": z.number().int().min(1).max(200).optional()}).strict();
4
- export const s91 = z.object({"id": z.string().min(1).max(100).regex(new RegExp("^[A-Za-z0-9_-]+$")), "confirm": z.boolean().optional()}).strict();
5
- export const s179 = z.object({"id": z.string(), "body": z.object({"is_active": z.boolean().optional(), "reply_context_prompt": z.union([z.string(), z.null()]).optional(), "reply_window_hours": z.number().int().min(1).optional()}).strict().refine(v => Object.keys(v).length >= 1, "Supply at least one setting"), "confirm": z.boolean().optional()}).strict();
6
- export const s180 = z.object({"id": z.string().min(1).max(100).regex(new RegExp("^[A-Za-z0-9_-]+$")), "confirm": z.boolean().optional()}).strict();
7
- export const s98 = z.object({"agent_id": z.string().regex(new RegExp("^[A-Za-z0-9_-]{1,64}$")), "recipients": z.array(z.object({"phone": z.string().max(32), "country": z.string().max(2).optional(), "timezone": z.string().max(80).optional()}).strict()).min(1).max(20), "campaign": z.object({"allow_wider_hours": z.boolean().optional(), "start": z.string().regex(new RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$")).optional(), "end": z.string().regex(new RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$")).optional(), "days": z.array(z.enum(["sun", "mon", "tue", "wed", "thu", "fri", "sat"])).min(1).max(7).optional(), "scheduled_date": z.string().optional()}).passthrough().optional()}).strict();
8
- export const s100 = z.object({"channel": z.enum(["all", "voice", "sms"]).optional(), "after": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")).optional()}).strict();
9
- export const s101 = z.object({"phone_numbers": z.array(z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$"))).min(1).max(1000), "channel": z.enum(["all", "voice", "sms"]).optional(), "confirm": z.boolean().optional()}).strict();
10
- export const s58 = z.object({"number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$"))}).strict();
11
- export const s59 = z.object({"number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "body": z.object({"revision": z.string().regex(new RegExp("^[0-9]{1,18}$")), "settings": z.object({"web_prompt": z.string().max(16000).refine(v => v.length <= 16000, "Maximum 16000 UTF-16 code units").optional(), "web_design": z.number().int().min(1).max(10).optional(), "web_color": z.string().regex(new RegExp("^#[0-9a-fA-F]{6}$")).optional(), "web_name": z.string().max(80).optional(), "web_chips": z.string().max(323).optional(), "web_calls_enabled": z.boolean().optional(), "web_appearance": z.object({"version": z.literal(1), "launcher": z.string().regex(new RegExp("^[a-z][a-z0-9-]{0,31}$")), "window": z.enum(["compact", "side", "centre", "full"]), "visit": z.enum(["nothing", "greeting", "open"]), "theme": z.enum(["dark", "light"]), "colourMode": z.enum(["solid", "gradient"]), "colour": z.string().regex(new RegExp("^#[0-9a-fA-F]{6}$")), "colour2": z.string().regex(new RegExp("^#[0-9a-fA-F]{6}$")), "text": z.object({"greeting": z.string().max(500).optional(), "button": z.string().max(500).optional(), "title": z.string().max(500).optional(), "subtitle": z.string().max(500).optional(), "call": z.string().max(500).optional(), "chat": z.string().max(500).optional(), "welcome": z.string().max(500).optional(), "placeholder": z.string().max(500).optional(), "status": z.string().max(500).optional(), "send": z.string().max(500).optional(), "close": z.string().max(500).optional(), "footer": z.string().max(500).optional(), "typing": z.string().max(500).optional(), "error": z.string().max(500).optional(), "contact": z.string().max(500).optional(), "contactNote": z.string().max(500).optional(), "contactName": z.string().max(500).optional(), "contactPhone": z.string().max(500).optional(), "avatar": z.string().max(500).optional(), "voiceConnecting": z.string().max(500).optional(), "voicePrivacy": z.string().max(500).optional(), "voiceMute": z.string().max(500).optional(), "voiceUnmute": z.string().max(500).optional(), "voiceEnd": z.string().max(500).optional(), "voiceAllow": z.string().max(500).optional(), "voiceCancel": z.string().max(500).optional(), "voiceEnded": z.string().max(500).optional(), "voiceYouEnded": z.string().max(500).optional(), "voiceUnavailable": z.string().max(500).optional(), "voiceUnavailableNote": z.string().max(500).optional(), "voiceDisabled": z.string().max(500).optional(), "voiceInsecure": z.string().max(500).optional(), "voiceInsecureNote": z.string().max(500).optional(), "voicePermission": z.string().max(500).optional(), "voicePermissionNote": z.string().max(500).optional(), "voiceChecking": z.string().max(500).optional(), "voiceNeeded": z.string().max(500).optional(), "voiceBlocked": z.string().max(500).optional(), "voiceMissing": z.string().max(500).optional(), "voiceInUse": z.string().max(500).optional(), "voiceMicError": z.string().max(500).optional(), "voiceBusy": z.string().max(500).optional(), "voiceBusyNote": z.string().max(500).optional(), "voiceRinging": z.string().max(500).optional(), "voiceLive": z.string().max(500).optional(), "voiceError": z.string().max(500).optional(), "contactSave": z.string().max(500).optional(), "contactSavedEdit": z.string().max(500).optional(), "contactRequired": z.string().max(500).optional(), "beforeCallStart": z.string().max(500).optional(), "beforeCallCancel": z.string().max(500).optional()}).strict(), "contactFields": z.array(z.object({"id": z.string().regex(new RegExp("^(name|phone|email|order|custom_[1-5])$")), "label": z.string().min(1).max(60), "enabled": z.boolean(), "required": z.boolean(), "askInChat": z.boolean().optional()}).strict()).max(9).optional(), "beforeCall": z.object({"enabled": z.boolean(), "message": z.string().max(500), "fields": z.array(z.object({"id": z.string().regex(new RegExp("^(name|phone|email|order|custom_[1-5])$")), "required": z.boolean()}).strict()).max(9)}).strict().optional()}).strict().optional()}).strict().refine(v => Object.keys(v).length >= 1, "Supply at least one setting")}).strict(), "confirm": z.boolean().optional()}).strict();
12
- export const s52 = z.object({"channel": z.enum(["sms", "web"]), "number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "archived": z.boolean().optional(), "unread": z.boolean().optional(), "search": z.string().max(160).optional(), "since": z.string().optional(), "period": z.enum(["all", "today", "7", "30", "90"]).optional(), "limit": z.number().int().min(1).max(100).optional(), "offset": z.number().int().min(0).max(10000).optional()}).strict();
13
- export const s53 = z.object({"channel": z.enum(["sms", "web"]), "number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "thread": z.string().min(1).max(160), "limit": z.number().int().min(1).max(200).optional(), "before": z.string().optional(), "before_id": z.string().max(80).optional()}).strict();
14
- export const s54 = z.object({"channel": z.enum(["sms", "web"]), "number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "thread": z.string().min(1).max(160), "body": z.object({"archived": z.boolean().optional(), "read_version": z.string().regex(new RegExp("^[0-9]{1,18}$")).optional()}).strict().refine(v => Object.keys(v).length >= 1, "Supply at least one setting"), "confirm": z.boolean().optional()}).strict();
15
- export const s55 = z.object({}).strict();
16
- export const s56 = z.object({"offset": z.number().int().min(0).max(10000).optional()}).strict();
17
- export const s57 = z.object({"number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")).optional()}).strict();
1
+ import * as z from 'zod/v4';
2
+ // Additive C5 schemas. Omission is preserved; no consent or server defaults are invented.
3
+ export const s97 = z.object({"status": z.string().optional(), "limit": z.number().int().min(1).max(200).optional()}).strict();
4
+ export const s91 = z.object({"id": z.string().min(1).max(100).regex(new RegExp("^[A-Za-z0-9_-]+$")), "confirm": z.boolean().optional()}).strict();
5
+ export const s179 = z.object({"id": z.string(), "body": z.object({"is_active": z.boolean().optional(), "reply_context_prompt": z.union([z.string(), z.null()]).optional(), "reply_window_hours": z.number().int().min(1).optional()}).strict().refine(v => Object.keys(v).length >= 1, "Supply at least one setting"), "confirm": z.boolean().optional()}).strict();
6
+ export const s180 = z.object({"id": z.string().min(1).max(100).regex(new RegExp("^[A-Za-z0-9_-]+$")), "confirm": z.boolean().optional()}).strict();
7
+ export const s98 = z.object({"agent_id": z.string().regex(new RegExp("^[A-Za-z0-9_-]{1,64}$")), "recipients": z.array(z.object({"phone": z.string().max(32), "country": z.string().max(2).optional(), "timezone": z.string().max(80).optional()}).strict()).min(1).max(20), "campaign": z.object({"allow_wider_hours": z.boolean().optional(), "start": z.string().regex(new RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$")).optional(), "end": z.string().regex(new RegExp("^(?:[01][0-9]|2[0-3]):[0-5][0-9]$")).optional(), "days": z.array(z.enum(["sun", "mon", "tue", "wed", "thu", "fri", "sat"])).min(1).max(7).optional(), "scheduled_date": z.string().optional()}).passthrough().optional()}).strict();
8
+ const phone = z.string().regex(/^\+[1-9][0-9]{6,14}$/);
9
+ const businessNumber = z.union([z.literal('all'), phone]);
10
+ const contactChannel = z.enum(['all', 'voice', 'sms']);
11
+ export const s100 = z.object({
12
+ channel: contactChannel.optional(),
13
+ after: z.string().min(1).optional(),
14
+ business_number: businessNumber.optional(),
15
+ scope: z.literal('effective').optional(),
16
+ source: z.enum(['owner', 'registry', 'support', 'sms_optout', 'ai_optout', 'attributed']).optional(),
17
+ }).strict();
18
+ export const s101 = z.object({
19
+ phone_numbers: z.array(phone).min(1).max(1000),
20
+ channel: contactChannel.optional(),
21
+ business_number: businessNumber.optional(),
22
+ confirm: z.boolean().optional(),
23
+ }).strict();
24
+ export const s58 = z.object({"number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$"))}).strict();
25
+ export const s59 = z.object({"number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "body": z.object({"revision": z.string().regex(new RegExp("^[0-9]{1,18}$")), "settings": z.object({"web_prompt": z.string().max(16000).refine(v => v.length <= 16000, "Maximum 16000 UTF-16 code units").optional(), "web_design": z.number().int().min(1).max(10).optional(), "web_color": z.string().regex(new RegExp("^#[0-9a-fA-F]{6}$")).optional(), "web_name": z.string().max(80).optional(), "web_chips": z.string().max(323).optional(), "web_calls_enabled": z.boolean().optional(), "web_appearance": z.object({"version": z.literal(1), "launcher": z.string().regex(new RegExp("^[a-z][a-z0-9-]{0,31}$")), "window": z.enum(["compact", "side", "centre", "full"]), "visit": z.enum(["nothing", "greeting", "open"]), "theme": z.enum(["dark", "light"]), "colourMode": z.enum(["solid", "gradient"]), "colour": z.string().regex(new RegExp("^#[0-9a-fA-F]{6}$")), "colour2": z.string().regex(new RegExp("^#[0-9a-fA-F]{6}$")), "text": z.object({"greeting": z.string().max(500).optional(), "button": z.string().max(500).optional(), "title": z.string().max(500).optional(), "subtitle": z.string().max(500).optional(), "call": z.string().max(500).optional(), "chat": z.string().max(500).optional(), "welcome": z.string().max(500).optional(), "placeholder": z.string().max(500).optional(), "status": z.string().max(500).optional(), "send": z.string().max(500).optional(), "close": z.string().max(500).optional(), "footer": z.string().max(500).optional(), "typing": z.string().max(500).optional(), "error": z.string().max(500).optional(), "contact": z.string().max(500).optional(), "contactNote": z.string().max(500).optional(), "contactName": z.string().max(500).optional(), "contactPhone": z.string().max(500).optional(), "avatar": z.string().max(500).optional(), "voiceConnecting": z.string().max(500).optional(), "voicePrivacy": z.string().max(500).optional(), "voiceMute": z.string().max(500).optional(), "voiceUnmute": z.string().max(500).optional(), "voiceEnd": z.string().max(500).optional(), "voiceAllow": z.string().max(500).optional(), "voiceCancel": z.string().max(500).optional(), "voiceEnded": z.string().max(500).optional(), "voiceYouEnded": z.string().max(500).optional(), "voiceUnavailable": z.string().max(500).optional(), "voiceUnavailableNote": z.string().max(500).optional(), "voiceDisabled": z.string().max(500).optional(), "voiceInsecure": z.string().max(500).optional(), "voiceInsecureNote": z.string().max(500).optional(), "voicePermission": z.string().max(500).optional(), "voicePermissionNote": z.string().max(500).optional(), "voiceChecking": z.string().max(500).optional(), "voiceNeeded": z.string().max(500).optional(), "voiceBlocked": z.string().max(500).optional(), "voiceMissing": z.string().max(500).optional(), "voiceInUse": z.string().max(500).optional(), "voiceMicError": z.string().max(500).optional(), "voiceBusy": z.string().max(500).optional(), "voiceBusyNote": z.string().max(500).optional(), "voiceRinging": z.string().max(500).optional(), "voiceLive": z.string().max(500).optional(), "voiceError": z.string().max(500).optional(), "contactSave": z.string().max(500).optional(), "contactSavedEdit": z.string().max(500).optional(), "contactRequired": z.string().max(500).optional(), "beforeCallStart": z.string().max(500).optional(), "beforeCallCancel": z.string().max(500).optional()}).strict(), "contactFields": z.array(z.object({"id": z.string().regex(new RegExp("^(name|phone|email|order|custom_[1-5])$")), "label": z.string().min(1).max(60), "enabled": z.boolean(), "required": z.boolean(), "askInChat": z.boolean().optional()}).strict()).max(9).optional(), "beforeCall": z.object({"enabled": z.boolean(), "message": z.string().max(500), "fields": z.array(z.object({"id": z.string().regex(new RegExp("^(name|phone|email|order|custom_[1-5])$")), "required": z.boolean()}).strict()).max(9)}).strict().optional()}).strict().optional()}).strict().refine(v => Object.keys(v).length >= 1, "Supply at least one setting")}).strict(), "confirm": z.boolean().optional()}).strict();
26
+ export const s52 = z.object({"channel": z.enum(["sms", "web"]), "number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "archived": z.boolean().optional(), "unread": z.boolean().optional(), "search": z.string().max(160).optional(), "since": z.string().optional(), "period": z.enum(["all", "today", "7", "30", "90"]).optional(), "limit": z.number().int().min(1).max(100).optional(), "offset": z.number().int().min(0).max(10000).optional()}).strict();
27
+ export const s53 = z.object({"channel": z.enum(["sms", "web"]), "number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "thread": z.string().min(1).max(160), "limit": z.number().int().min(1).max(200).optional(), "before": z.string().optional(), "before_id": z.string().max(80).optional()}).strict();
28
+ export const s54 = z.object({"channel": z.enum(["sms", "web"]), "number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")), "thread": z.string().min(1).max(160), "body": z.object({"archived": z.boolean().optional(), "read_version": z.string().regex(new RegExp("^[0-9]{1,18}$")).optional()}).strict().refine(v => Object.keys(v).length >= 1, "Supply at least one setting"), "confirm": z.boolean().optional()}).strict();
29
+ export const s55 = z.object({}).strict();
30
+ export const s56 = z.object({"offset": z.number().int().min(0).max(10000).optional()}).strict();
31
+ export const s57 = z.object({"number": z.string().regex(new RegExp("^\\+[1-9][0-9]{6,14}$")).optional()}).strict();
package/c5-tools.js CHANGED
@@ -1,31 +1,35 @@
1
- import * as schemas from './c5-schemas.js';
2
- import { executeTool, errorBody } from './safe-tools.js';
3
-
4
- export function registerC5Tools(server, request) {
5
- const enc = encodeURIComponent;
6
- const add = (name, schema, description, read, fn) => server.registerTool(name, {
7
- title: name.replaceAll('_', ' '), description: description + (read ? ' Use only when the user requests this information or advisory preview.' : ' Use only for the user\'s explicitly requested change. Requires confirm:true. Without confirmation sends zero requests. Never automatically repeat an uncertain write.'),
8
- inputSchema: schema, annotations: { title: name.replaceAll('_', ' '), readOnlyHint: read, destructiveHint: !read, idempotentHint: read, openWorldHint: true },
9
- }, async args => {
10
- try {
11
- const { confirm, ...input } = args;
12
- const data = !read && confirm !== true ? { confirmation_required: true, sent: false, message: 'No request sent. Confirm only this intentional change.' } : await executeTool(name, fn, input);
13
- return { content: [{ type: 'text', text: JSON.stringify(data) }] };
14
- } catch (error) { return { isError: true, content: [{ type: 'text', text: JSON.stringify(errorBody(error)) }] }; }
15
- });
16
- add('list_campaigns', schemas.s97, "Default 50, cap 200; no cursor.", true, (query) => request('GET', `/campaigns`, undefined, query));
17
- add('cancel_campaign', schemas.s91, "Stops future work; in-progress calls may finish.", false, ({ id, ...query }) => request('POST', `/calls/batch/${enc(id)}/cancel`, undefined, undefined));
18
- add('update_sms_campaign', schemas.s179, "Changes reply settings only; does not cancel dispatch.", false, ({ id, ...query }) => request('PATCH', `/sms/campaigns/${enc(id)}`, query.body, undefined));
19
- add('cancel_sms_campaign', schemas.s180, "Stops future work; in-progress sends may finish.", false, ({ id, ...query }) => request('POST', `/sms/campaigns/${enc(id)}/cancel`, undefined, undefined));
20
- add('preview_contact_hours', schemas.s98, "Advisory only, expires after one minute. Never a permission token; POST is never automatically retried.", true, (query) => request('POST', `/contact-hours/preview`, query, undefined));
21
- add('list_contact_suppressions', schemas.s100, "Fixed 200 rows; all is a separate bucket, not a union. Continue after next_cursor until null.", true, (query) => request('GET', `/contact-suppressions`, undefined, query));
22
- add('add_contact_suppressions', schemas.s101, "Blocks contact for the explicit 1\u20131000 numbers; preserves locked opt-out evidence.", false, (query) => request('POST', `/contact-suppressions`, query, undefined));
23
- add('get_web_agent', schemas.s58, "Read current revision before changing settings.", true, ({ number, ...query }) => request('GET', `/agent-web/${enc(number)}`, undefined, query));
24
- add('update_web_agent', schemas.s59, "Revision is a string. Appearance is a COMPLETE replacement, not a merge. On conflict reload and compare; never retry the stale update.", false, ({ number, ...query }) => request('PATCH', `/agent-web/${enc(number)}`, query.body, undefined));
25
- add('list_inbox_conversations', schemas.s52, "Reads do not mark messages read; unread_total counts conversations, not messages. since and period cannot be combined.", true, ({ channel, number, ...query }) => request('GET', `/agent-inbox/${enc(channel)}/${enc(number)}`, undefined, query));
26
- add('get_inbox_thread', schemas.s53, "Before and before_id are paired; read_version covers the whole thread. Reading never acknowledges messages.", true, ({ channel, number, thread, ...query }) => request('GET', `/agent-inbox/${enc(channel)}/${enc(number)}/thread/${enc(thread)}`, undefined, query));
27
- add('update_inbox_thread', schemas.s54, "Use the whole-thread string read_version; archive is not erasure.", false, ({ channel, number, thread, ...query }) => request('PATCH', `/agent-inbox/${enc(channel)}/${enc(number)}/thread/${enc(thread)}`, query.body, undefined));
28
- add('get_inbox_features', schemas.s55, "Feature availability, not proof of database readiness.", true, (query) => request('GET', `/agent-inbox/features`, undefined, query));
29
- add('list_inbox_numbers', schemas.s56, "Fixed 100 rows; agents capped at 1,000. No automatic pagination.", true, (query) => request('GET', `/agent-inbox/numbers`, undefined, query));
30
- add('get_inbox_retention', schemas.s57, "Zero days means the next cleanup after reply. Archive does not change retention.", true, (query) => request('GET', `/agent-inbox/retention`, undefined, query));
31
- }
1
+ import * as schemas from './c5-schemas.js';
2
+ import { executeTool, errorBody } from './safe-tools.js';
3
+
4
+ export function registerC5Tools(server, request) {
5
+ const enc = encodeURIComponent;
6
+ const add = (name, schema, description, read, fn) => server.registerTool(name, {
7
+ title: name.replaceAll('_', ' '), description: description + (read ? ' Use only when the user requests this information or advisory preview.' : ' Use only for the user\'s explicitly requested change. Requires confirm:true. Without confirmation sends zero requests. Never automatically repeat an uncertain write.'),
8
+ inputSchema: schema, annotations: { title: name.replaceAll('_', ' '), readOnlyHint: read, destructiveHint: !read, idempotentHint: read, openWorldHint: true },
9
+ }, async args => {
10
+ try {
11
+ const { confirm, ...input } = args;
12
+ const data = !read && confirm !== true ? { confirmation_required: true, sent: false, message: 'No request sent. Confirm only this intentional change.' } : await executeTool(name, fn, input);
13
+ return { content: [{ type: 'text', text: JSON.stringify(data) }] };
14
+ } catch (error) { return { isError: true, content: [{ type: 'text', text: JSON.stringify(errorBody(error)) }] }; }
15
+ });
16
+ add('list_campaigns', schemas.s97, "Default 50, cap 200; no cursor.", true, (query) => request('GET', `/campaigns`, undefined, query));
17
+ add('cancel_campaign', schemas.s91, "Stops future work; in-progress calls may finish.", false, ({ id, ...query }) => request('POST', `/calls/batch/${enc(id)}/cancel`, undefined, undefined));
18
+ add('update_sms_campaign', schemas.s179, "Changes reply settings only; does not cancel dispatch.", false, ({ id, ...query }) => request('PATCH', `/sms/campaigns/${enc(id)}`, query.body, undefined));
19
+ add('cancel_sms_campaign', schemas.s180, "Stops future work; in-progress sends may finish.", false, ({ id, ...query }) => request('POST', `/sms/campaigns/${enc(id)}/cancel`, undefined, undefined));
20
+ add('preview_contact_hours', schemas.s98, "Advisory only, expires after one minute. Never a permission token; POST is never automatically retried.", true, (query) => request('POST', `/contact-hours/preview`, query, undefined));
21
+ add('list_contact_suppressions', schemas.s100,
22
+ 'List up to 200 blocks. With business_number set to an owned E.164 sender, use scope=effective for that sender plus all-number blocks. A sender alone filters keyword evidence. Use source=attributed for keyword and AI evidence, or source=owner for owner entries. Set business_number=all for global rows only. Each row’s business_number is its scope. opted_out_business_number is where the message arrived. Channel all is a separate bucket. Pass next_cursor unchanged as after until null. Never switch senders to bypass STOP.',
23
+ true, query => request('GET', '/contact-suppressions', undefined, query));
24
+ add('add_contact_suppressions', schemas.s101,
25
+ 'Block 1–1000 recipients on one owned E.164 business_number or all my numbers (all, the default). Confirm the recipients, channel and exact sender scope with the user. A previous list filter does not set the write scope. Preserve locked opt-outs. Only a person can remove an eligible owner entry in the dashboard, API, SDK or CLI.',
26
+ false, query => request('POST', '/contact-suppressions', query, undefined));
27
+ add('get_web_agent', schemas.s58, "Read current revision before changing settings.", true, ({ number, ...query }) => request('GET', `/agent-web/${enc(number)}`, undefined, query));
28
+ add('update_web_agent', schemas.s59, "Revision is a string. Appearance is a COMPLETE replacement, not a merge. On conflict reload and compare; never retry the stale update.", false, ({ number, ...query }) => request('PATCH', `/agent-web/${enc(number)}`, query.body, undefined));
29
+ add('list_inbox_conversations', schemas.s52, "Reads do not mark messages read; unread_total counts conversations, not messages. since and period cannot be combined.", true, ({ channel, number, ...query }) => request('GET', `/agent-inbox/${enc(channel)}/${enc(number)}`, undefined, query));
30
+ add('get_inbox_thread', schemas.s53, "Before and before_id are paired; read_version covers the whole thread. Reading never acknowledges messages.", true, ({ channel, number, thread, ...query }) => request('GET', `/agent-inbox/${enc(channel)}/${enc(number)}/thread/${enc(thread)}`, undefined, query));
31
+ add('update_inbox_thread', schemas.s54, "Use the whole-thread string read_version; archive is not erasure.", false, ({ channel, number, thread, ...query }) => request('PATCH', `/agent-inbox/${enc(channel)}/${enc(number)}/thread/${enc(thread)}`, query.body, undefined));
32
+ add('get_inbox_features', schemas.s55, "Feature availability, not proof of database readiness.", true, (query) => request('GET', `/agent-inbox/features`, undefined, query));
33
+ add('list_inbox_numbers', schemas.s56, "Fixed 100 rows; agents capped at 1,000. No automatic pagination.", true, (query) => request('GET', `/agent-inbox/numbers`, undefined, query));
34
+ add('get_inbox_retention', schemas.s57, "Zero days means the next cleanup after reply. Archive does not change retention.", true, (query) => request('GET', `/agent-inbox/retention`, undefined, query));
35
+ }
@@ -2,6 +2,7 @@
2
2
  const TITLES = Object.freeze({
3
3
  get_usage: 'Read account usage and balance',
4
4
  rotate_api_key: 'Replace the API secret',
5
+ list_live_calls: 'List live calls',
5
6
  list_agents: 'List agents', get_agent: 'Read one agent',
6
7
  create_agent: 'Create an agent', update_agent: 'Update an agent', delete_agent: 'Disable an agent',
7
8
  create_call: 'Place a paid phone call', list_calls: 'List call summaries',
@@ -19,7 +20,7 @@ const TITLES = Object.freeze({
19
20
  delete_webhook: 'Remove a webhook', get_byo_config: 'Read own-provider settings',
20
21
  set_byo_config: 'Connect own storage or AI provider', delete_byo_config: 'Disconnect own storage or AI provider',
21
22
  });
22
- const READS = new Set(['get_usage', 'list_agents', 'get_agent', 'list_calls', 'get_call',
23
+ const READS = new Set(['get_usage', 'list_live_calls', 'list_agents', 'get_agent', 'list_calls', 'get_call',
23
24
  'list_phone_numbers', 'get_caller_context', 'list_sms_campaigns', 'get_sms_campaign', 'get_webhook', 'get_byo_config']);
24
25
  const DETAILS = Object.freeze({
25
26
  rotate_api_key: 'Replace the API secret. The current secret stops working immediately; every integration must be updated. The response can contain the replacement secret, visible to the chat client. Prefer the dashboard for rotation. Requires confirm: true; otherwise returns a preview.',
package/index.js CHANGED
@@ -39,7 +39,9 @@ import { contactLocation, voiceCampaignSchema, smsCampaignSchema, campaignBody,
39
39
  import { executeTool, errorBody } from './safe-tools.js';
40
40
  import { numberReads } from './number-reads.js';
41
41
  import { numberReadSchema, numberFields } from './number-schema.js';
42
- import { agentCreateFields, agentUpdateFields } from './agent-schema.js';
42
+ import { agentCreateFields } from './agent-schema.js';
43
+ import { settingsFields, updateSettings } from './agent-settings.js';
44
+ import { listLiveCalls } from './monitor-tools.js';
43
45
  import { agentReads, agentListSchema } from './agent-reads.js';
44
46
  import { createCallBody, summariseCall as callSummary } from './call-tools.js';
45
47
  import { callReads, callListSchema, callGetSchema } from './call-reads.js';
@@ -93,12 +95,14 @@ T('list_agents', 'List the agents on this account. Phone numbers, webhooks and i
93
95
  T('get_agent', 'One agent with its prompt and settings.', z.object({ agent_id: z.string() }), ({ agent_id }) => client.agents.get(agent_id));
94
96
  T('create_agent', 'Create an agent. All fields are optional. New defaults: maximum call 300 seconds, silence hang-up 10 seconds, dynamic greeting on; any other agent field (voice_id, language, incall_sms_enabled, silence_hangup_seconds, record_call, recording_source = provider or nixflex, ...) goes in fields.',
95
97
  z.object({ name: z.string().optional(), system_prompt: z.string().optional(), fields: agentCreateFields.optional() }), ({ name, system_prompt, fields: f }) => client.agents.create({ name, system_prompt, ...(f || {}) }));
96
- T('update_agent', 'Update an agent. Empty/unknown-only updates fail; mixed unknown keys return warnings. Only passed fields change. Pass null only to clear nullable fields.',
97
- z.object({ agent_id: z.string(), fields: agentUpdateFields }), ({ agent_id, fields: f }) => client.agents.update(agent_id, f));
98
+ T('update_agent', 'Update only the supplied agent settings. Pass if_revision and optional if_voice with edits, or put edits in changes with if_revision. Guarded edits are atomic. Refresh after a conflict.',
99
+ z.object({ agent_id: z.string(), fields: settingsFields }), ({ agent_id, fields: f }) => updateSettings(client, agent_id, f));
98
100
  T('delete_agent', 'Soft disable an agent, not permanent deletion. Does not detach numbers or erase history. Requires confirm: true; otherwise returns a preview.',
99
101
  z.object({ agent_id: z.string(), confirm: confirmArg }), async ({ agent_id, confirm }) => confirm ? client.agents.delete(agent_id) : preview('agent ' + agent_id, () => client.agents.get(agent_id)));
100
102
 
101
103
  // ============ calls ============
104
+ T('list_live_calls', 'List live calls on monitor-enabled numbers. Partial results have unknown counts. Returns call summaries only.',
105
+ z.object({}), () => listLiveCalls(request));
102
106
  registerK7CreateCall(server, {client, request, metadata:toolMetadata, E164, contactLocation});
103
107
  T('list_calls', 'Call summaries without transcript. history:true adds dashboard filters, totals and next_cursor; continue with cursor + limit only. period defaults month; today uses UTC, or pass exact since/until from dashboard.',
104
108
  callListSchema, args => readCalls.list(args, summariseCall));
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;
@@ -0,0 +1,17 @@
1
+ import * as z from 'zod/v4';
2
+
3
+ const count = z.number().int().nonnegative();
4
+ const call = z.object({
5
+ call_id: z.string(), number: z.string(), caller: z.string().nullable(), direction: z.string(),
6
+ state: z.string(), started_at: z.number().nullable(), agent_id: z.string().nullable(),
7
+ agent_name: z.string().nullable(), listeners: count, taken_over: z.boolean(), takeover_name: z.string().nullable(),
8
+ });
9
+ const listing = z.object({
10
+ calls: z.array(call), live_count: count.nullable(), listening_count: count.nullable(),
11
+ taken_over_count: count.nullable(), status: z.enum(['available', 'partial']), complete: z.boolean(), server_now: z.number(),
12
+ });
13
+
14
+ export async function listLiveCalls(request) {
15
+ // Project both levels so future socket credentials or transcripts cannot enter a tool response.
16
+ return listing.parse(await request('GET', '/monitor/calls'));
17
+ }
package/package.json CHANGED
@@ -1,86 +1,89 @@
1
- {
2
- "name": "nixflex-mcp",
3
- "version": "0.5.1",
4
- "author": "Nixflex <dev@nixflex.com>",
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
- "keywords": [
7
- "nixflex",
8
- "mcp",
9
- "model-context-protocol",
10
- "voice-ai",
11
- "phone",
12
- "claude"
13
- ],
14
- "homepage": "https://docs.nixflex.com/mcp/overview",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/nixflex/nixflex-mcp.git"
18
- },
19
- "license": "MIT",
20
- "type": "module",
21
- "bin": {
22
- "nixflex-mcp": "./index.js"
23
- },
24
- "files": [
25
- "index.js",
26
- "foundation",
27
- "safe-tools.js",
28
- "call-tools.js",
29
- "call-reads.js",
30
- "number-reads.js",
31
- "number-schema.js",
32
- "number-usage.js",
33
- "agent-schema.js",
34
- "agent-reads.js",
35
- "README.md",
36
- "LICENSE",
37
- "organisation-tools.js",
38
- "ORGANISATIONS.md",
39
- "campaign-schema.js",
40
- "core-tools.js",
41
- "c5-tools.js",
42
- "c5-schemas.js",
43
- "kit-request.js",
44
- "CHANGELOG.md",
45
- "c6-tools.js",
46
- "c6-output.js",
47
- "METHODS.md",
48
- "knowledge-tools.js",
49
- "knowledge-request.js",
50
- "k6-tools.js",
51
- "k6-schemas.js",
52
- "k6-private.js",
53
- "k7-call.js",
54
- "k7-errors.js",
55
- "k7-schemas.js",
56
- "k7-tools.js",
57
- "k9-deletes.js",
58
- "NUMBER-FEATURES.md",
59
- "KIT-EXAMPLES-K6.md",
60
- "CALL-REQUESTS.md",
61
- "KIT-EXAMPLES-K7.md",
62
- "B57-DELETES.md"
63
- ],
64
- "engines": {
65
- "node": ">=22"
66
- },
67
- "scripts": {
68
- "check": "node --test tests/*.test.mjs",
69
- "start": "node index.js",
70
- "check:packed": "node scripts/check-packed.mjs",
71
- "check:calls-packed": "node scripts/check-calls-packed.mjs",
72
- "check:call-reads-packed": "node scripts/check-call-reads-packed.mjs",
73
- "bundle:build": "node scripts/build-bundles.mjs",
74
- "bundle:check": "node scripts/check-bundles.mjs",
75
- "check:clean": "node scripts/check-clean.mjs"
76
- },
77
- "dependencies": {
78
- "@modelcontextprotocol/server": "2.3.0",
79
- "nixflex": "0.8.0",
80
- "zod": "4.6.6"
81
- },
82
- "devDependencies": {
83
- "@anthropic-ai/mcpb": "2.1.2",
84
- "fflate": "0.8.3"
85
- }
86
- }
1
+ {
2
+ "name": "nixflex-mcp",
3
+ "version": "0.6.0",
4
+ "author": "Nixflex <dev@nixflex.com>",
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
+ "keywords": [
7
+ "nixflex",
8
+ "mcp",
9
+ "model-context-protocol",
10
+ "voice-ai",
11
+ "phone",
12
+ "claude"
13
+ ],
14
+ "homepage": "https://docs.nixflex.com/mcp/overview",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/nixflex/nixflex-mcp.git"
18
+ },
19
+ "license": "MIT",
20
+ "type": "module",
21
+ "bin": {
22
+ "nixflex-mcp": "./index.js"
23
+ },
24
+ "files": [
25
+ "index.js",
26
+ "foundation",
27
+ "safe-tools.js",
28
+ "call-tools.js",
29
+ "call-reads.js",
30
+ "number-reads.js",
31
+ "number-schema.js",
32
+ "number-usage.js",
33
+ "agent-schema.js",
34
+ "agent-settings.js",
35
+ "monitor-tools.js",
36
+ "agent-reads.js",
37
+ "README.md",
38
+ "LICENSE",
39
+ "organisation-tools.js",
40
+ "ORGANISATIONS.md",
41
+ "campaign-schema.js",
42
+ "core-tools.js",
43
+ "c5-tools.js",
44
+ "c5-schemas.js",
45
+ "kit-request.js",
46
+ "CHANGELOG.md",
47
+ "c6-tools.js",
48
+ "c6-output.js",
49
+ "METHODS.md",
50
+ "knowledge-tools.js",
51
+ "knowledge-request.js",
52
+ "k6-tools.js",
53
+ "k6-schemas.js",
54
+ "booking-schemas.js",
55
+ "k6-private.js",
56
+ "k7-call.js",
57
+ "k7-errors.js",
58
+ "k7-schemas.js",
59
+ "k7-tools.js",
60
+ "k9-deletes.js",
61
+ "NUMBER-FEATURES.md",
62
+ "NUMBER-EXAMPLES.md",
63
+ "CALL-REQUESTS.md",
64
+ "CALL-EXAMPLES.md",
65
+ "DELETING-CONTENT.md"
66
+ ],
67
+ "engines": {
68
+ "node": ">=22"
69
+ },
70
+ "scripts": {
71
+ "check": "node --test tests/*.test.mjs",
72
+ "start": "node index.js",
73
+ "check:packed": "node scripts/check-packed.mjs",
74
+ "check:calls-packed": "node scripts/check-calls-packed.mjs",
75
+ "check:call-reads-packed": "node scripts/check-call-reads-packed.mjs",
76
+ "bundle:build": "node scripts/build-bundles.mjs",
77
+ "bundle:check": "node scripts/check-bundles.mjs",
78
+ "check:clean": "node scripts/check-clean.mjs"
79
+ },
80
+ "dependencies": {
81
+ "@modelcontextprotocol/server": "2.3.0",
82
+ "nixflex": "0.8.0",
83
+ "zod": "4.6.6"
84
+ },
85
+ "devDependencies": {
86
+ "@anthropic-ai/mcpb": "2.1.2",
87
+ "fflate": "0.8.3"
88
+ }
89
+ }