@ekwo-ai/mcp 0.24.0 → 0.25.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 +34 -3
- package/dist/backend.d.ts.map +1 -1
- package/dist/backend.js +3 -0
- package/dist/backend.js.map +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -0
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +25 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +138 -98
- package/dist/server.js.map +1 -1
- package/dist/start.d.ts.map +1 -1
- package/dist/start.js +8 -2
- package/dist/start.js.map +1 -1
- package/dist/stdio.d.ts +1 -1
- package/dist/stdio.d.ts.map +1 -1
- package/dist/stdio.js +3 -0
- package/dist/stdio.js.map +1 -1
- package/dist/tools/effect.d.ts +48 -0
- package/dist/tools/effect.d.ts.map +1 -0
- package/dist/tools/effect.js +42 -0
- package/dist/tools/effect.js.map +1 -0
- package/dist/tools/loading.d.ts +65 -0
- package/dist/tools/loading.d.ts.map +1 -0
- package/dist/tools/loading.js +119 -0
- package/dist/tools/loading.js.map +1 -0
- package/dist/tools/modules.d.ts +12 -1
- package/dist/tools/modules.d.ts.map +1 -1
- package/dist/tools/modules.js +55 -42
- package/dist/tools/modules.js.map +1 -1
- package/dist/tools/read.d.ts +15 -16
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/read.js +14 -166
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/write.d.ts +7 -6
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +35 -81
- package/dist/tools/write.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -137,6 +137,7 @@ alongside the server; the recommended route needs no driver at all.
|
|
|
137
137
|
| `EKWO_NO_CLOUD_OFFER` | Optional. `1` leaves the offer of a free Ekwo Cloud account out of the instructions; so does `CI` |
|
|
138
138
|
| `EKWO_AGENT_POSTING` | Optional. `autopilot` or `review`: how this session posts, as `--autopilot` and `--review` choose it. Unset, each company's `agent_posting` decides. See [Review or autopilot](#review-or-autopilot) |
|
|
139
139
|
| `EKWO_EINVOICE_DIRECTORY` | Optional. The folder electronic invoices are sent to by `einvoicing_issue` with `send`. Unset, files are issued and kept, and sending is refused as `no_transport` |
|
|
140
|
+
| `EKWO_MCP_TOOLS` | Optional. `on_demand` starts the session with the tools of a first session and lets the agent find and add the others; unset or `all`, every tool from the start. See [Tools on demand](#tools-on-demand) |
|
|
140
141
|
| `EKWO_FISCAL_SYSTEM` | Optional. The invoicing system `einvoicing_fiscalise` chains fiscal records under, as JSON: `name`, `id`, `version`, `installation`, `producerName`, `producerTaxId`, and the booleans a regime may ask (`verifactuOnly`, `multipleTaxpayers`, `multipleTaxpayersNow`). Unset, fiscalising is refused as `no_fiscal_system`; malformed, the server does not start |
|
|
141
142
|
|
|
142
143
|
### Started with nothing set
|
|
@@ -225,10 +226,11 @@ Every write names its company explicitly.
|
|
|
225
226
|
| `list_accounts` | The accounts a company works with, by code prefix, type or name. `include_all` for the whole chart |
|
|
226
227
|
| `search_contacts` | Customers and suppliers, by name, type or VAT number |
|
|
227
228
|
| `suggest_duplicate_contacts` | The contacts that are probably one party, strongest first, one row per contact to absorb — the rows of one kept contact being one party: the contact to keep, a score, the evidence (the same VAT or registration number, the same bank account, the words of the name weighed by how few contacts carry them) and the simplest name the group carries, proposed for the kept contact. Writes nothing; `merge_contacts` joins a pair the user confirms |
|
|
229
|
+
| `contact_statement` | The statement of account of one contact over a period: the balance carried forward, each posted line of their receivable and payable accounts with its running balance and how far it is matched, and the closing balance |
|
|
228
230
|
| `search_products` | The catalogue: code, unit, price, account and tax of what is sold and bought |
|
|
229
231
|
| `list_documents` | Invoices, credit notes and quotes, filtered |
|
|
230
232
|
| `get_document` | One document with its lines and the entry it produced |
|
|
231
|
-
| `render_invoice_pdf` | The PDF of a sale invoice or credit note, as a PDF resource (base64) beside a JSON summary, rendered from the books by [`@ekwo-ai/invoice-pdf`](../formats/invoice-pdf/README.md). `factur_x` embeds the CII of a posted sale (Factur-X, EN 16931, PDF/A-3) and returns the rules it breaks; `
|
|
233
|
+
| `render_invoice_pdf` | The PDF of a sale invoice or credit note, as a PDF resource (base64) beside a JSON summary, rendered from the books by [`@ekwo-ai/invoice-pdf`](../formats/invoice-pdf/README.md). `factur_x` embeds the CII of a posted sale (Factur-X, EN 16931, PDF/A-3) and returns the rules it breaks; the words of the layout are in the document's language where a set exists for it, in English otherwise (`labels_language` says which), the words the law of the country names are the pack's (`pack_labels` lists them), and `labels` puts other words over them. The logo is fetched by the server from the company's `logo_url`, never from a local or private address. Records nothing |
|
|
232
234
|
| `list_bank_accounts` | The bank accounts of a company, with the journal and ledger account behind each |
|
|
233
235
|
| `list_bank_transactions` | Statement lines, pending by default |
|
|
234
236
|
| `trial_balance` | Opening, movements and closing per account |
|
|
@@ -270,7 +272,7 @@ Every write names its company explicitly.
|
|
|
270
272
|
| `reconcile_many` | Matches several lines of one counterparty and one account together, their open debits and credits equal to the cent, under one letter |
|
|
271
273
|
| `reconcile_with_difference` | The same with a small difference, booked on the account the pack gives for the reason (`rounding`, `exchange_difference`) within the company's tolerance, then matched |
|
|
272
274
|
| `reconcile` / `unreconcile` | Matches two ledger lines, or undoes one matching |
|
|
273
|
-
| `create_bank_account` | Registers an account from its identifier, in the scheme the company's country uses (an IBAN, a routing number and an account number, a sort code and an account number…), and wires it to the bank journal. Running it twice with the same identifier creates nothing |
|
|
275
|
+
| `create_bank_account` | Registers an account from its identifier, in the scheme the company's country uses (an IBAN, a routing number and an account number, a sort code and an account number…), and wires it to the bank journal, through `create_bank_account()` of the schema. Running it twice with the same identifier creates nothing; a name another account carries is refused |
|
|
274
276
|
| `create_bank_transaction` | One statement line by hand, for an installation with no feed |
|
|
275
277
|
| `settle_from_statement` | Books a statement line as the payment it is and matches it against the documents or open items named, in one entry — with `amounts`, how much settles each; with `extra_lines`, the fee a payment provider kept or the charges of a bank, on the account and with the tax the user names. The line balances to the cent or is refused (`settlement_unbalanced`); extra lines alone settle a bank charge |
|
|
276
278
|
| `import_bank_statement` | A statement file (`camt.053`, `coda`, `cfonb120`) into statements and pending lines. Books nothing; the same file twice creates nothing; an unknown account or a statement that does not add up is refused by name, a missing statement is signalled |
|
|
@@ -280,7 +282,7 @@ Every write names its company explicitly.
|
|
|
280
282
|
| `close_fiscal_year` / `reopen_fiscal_year` | Closes a year the way the country pack says — with `final_close`, whether the country also requires a final close and by when — or reopens it to correct it, whatever later years hold; a later closed year is reopened first |
|
|
281
283
|
| `close_fiscal_year_finally` | The final close of a closed year: nobody reopens it afterwards, the operator included. Only on the user's explicit request |
|
|
282
284
|
| `create_company` | A company on a country pack, with its chart and its first financial year. An instance-level act |
|
|
283
|
-
| `update_company_profile` | What a company says about itself on its documents, and the pattern of its document numbers |
|
|
285
|
+
| `update_company_profile` | What a company says about itself on its documents — the late payment mention of its country included, on or off — and the pattern of its document numbers |
|
|
284
286
|
| `set_number_prefix` | What one journal prints in place of `{CODE}` in its numbers |
|
|
285
287
|
| `set_preferences` | Your own language, timezone, formats and default company |
|
|
286
288
|
| `invite_member` / `revoke_invitation` | Invites an address into a company, or withdraws the invitation. The token is shown once |
|
|
@@ -344,6 +346,35 @@ declaration box each of its postings feeds.
|
|
|
344
346
|
bank lines, the balance, the VAT, what is still open. `prepare_vat_return`
|
|
345
347
|
pulls the boxes and ties them back to the ledger before anything is filed.
|
|
346
348
|
|
|
349
|
+
### What each tool does to the books
|
|
350
|
+
|
|
351
|
+
Every tool says it in its annotations, which a client reads to decide when to
|
|
352
|
+
ask first: it **reads** (`readOnlyHint: true`), it **adds** — a draft, a
|
|
353
|
+
contact, a note, a setting a person can change back (`destructiveHint:
|
|
354
|
+
false`) — or it is **destructive**: it posts, cancels, replaces, removes, or
|
|
355
|
+
reaches outside the books, a key, a public link, a file sent
|
|
356
|
+
(`destructiveHint: true`). A tool registered without them does not compile,
|
|
357
|
+
and a test reads them on every tool a client is offered, the modules'
|
|
358
|
+
included. How to choose, and the rest of the rules a tool of this server
|
|
359
|
+
follows: [`TOOL_DESIGN.md`](TOOL_DESIGN.md).
|
|
360
|
+
|
|
361
|
+
### Tools on demand
|
|
362
|
+
|
|
363
|
+
Every tool is offered at the start by default. With `EKWO_MCP_TOOLS=on_demand`
|
|
364
|
+
a session starts with the tools of a first session — `status`,
|
|
365
|
+
`list_companies`, `get_company`, `list_accounts`, `describe_pack`,
|
|
366
|
+
`search_contacts`, `create_contact`, `list_documents`, `get_document`,
|
|
367
|
+
`create_document`, `post_document`, `record_payment`, `trial_balance`,
|
|
368
|
+
`general_ledger`, `vat_return` — and two more:
|
|
369
|
+
|
|
370
|
+
| Tool | What it does |
|
|
371
|
+
|---|---|
|
|
372
|
+
| `search_tools` | The tools that match a few words of the task, best first, each with its title, its first sentence, whether it reads, adds or destroys, and whether it is loaded. Filters by `effect` |
|
|
373
|
+
| `load_tools` | Adds the tools named to the session. The server tells the client its tool list changed |
|
|
374
|
+
|
|
375
|
+
A model then carries a short list rather than every description. A client
|
|
376
|
+
that never reads the list again keeps the default.
|
|
377
|
+
|
|
347
378
|
## Review or autopilot
|
|
348
379
|
|
|
349
380
|
Like the permissions of a coding agent: a default mode in the settings, a
|
package/dist/backend.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;AAE9F,yEAAyE;AACzE,eAAO,MAAM,YAAY,mBAAa,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,KAAK,EACX,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;AAE9F,yEAAyE;AACzE,eAAO,MAAM,YAAY,mBAAa,CAAC;AACvC,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC;AAoItC,4EAA4E;AAC5E,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAcrD"}
|
package/dist/backend.js
CHANGED
|
@@ -86,9 +86,12 @@ const HINTS = {
|
|
|
86
86
|
statement_without_balances: 'Without an opening and a closing balance nothing proves the lines are all there. Nothing was imported.',
|
|
87
87
|
unreadable_statement_line: 'A booked line cannot be held as it is — no amount, no date, another currency than the account, or more decimals than the ledger keeps. Nothing was imported.',
|
|
88
88
|
statement_conflict: 'A statement with this identifier and date was already imported with other balances. The bank may have reissued it; nothing was changed.',
|
|
89
|
+
statement_already_covered: 'The same statement — same account, closing day and balances — was already imported from another format, so this file would bring the same month in twice. Nothing was written. Ask the user whether it is the same statement; if it truly is another one, the bank has to tell them why it reads the same.',
|
|
89
90
|
statement_currency_mismatch: 'The statement is in another currency than the bank account it belongs to. Nothing is converted on import.',
|
|
90
91
|
bank_account_mismatch: 'The bank account named is not the account the statement is of.',
|
|
91
92
|
no_bank_account: 'The payment names no bank account and its journal has no default account. create_bank_account adds one and wires it to the journal.',
|
|
93
|
+
bank_account_exists: 'Another bank account of this company already carries this name, so the two would read the same in every list. list_bank_accounts shows it; ask the user what to call this one and pass it as label.',
|
|
94
|
+
not_a_bank_journal: 'A bank account books through a bank or a cash journal. Leave the journal out to take the bank journal of the company, or name one of those.',
|
|
92
95
|
missing_account: 'The line names no account, and the company and its country model have no default for this kind of document. Give account_code on the line, or set the company default.',
|
|
93
96
|
payment_already_booked: 'This payment already has an entry.',
|
|
94
97
|
payment_cancelled: 'A cancelled payment cannot be booked.',
|
package/dist/backend.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,SAAS,GASV,MAAM,eAAe,CAAC;AAEvB,8EAA8E;AAC9E,8EAA8E;AAC9E,+EAA+E;AAC/E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAGxD,yEAAyE;AACzE,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;AAGvC;;;;;;GAMG;AACH,MAAM,KAAK,GAA2B;IACpC,aAAa,EAAE,0HAA0H;IACzI,iBAAiB,EAAE,0GAA0G;IAC7H,kBAAkB,EAAE,sFAAsF;IAC1G,gBAAgB,EAAE,mEAAmE;IACrF,WAAW,EA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EAAE,CAAC,EAAE,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACzH,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { isServiceRoleKey } from '@ekwo-ai/core';
|
|
22
22
|
import { type AgentSession, type Backend, type SessionPosting } from './backend.js';
|
|
23
|
+
import { type ToolLoading } from './tools/loading.js';
|
|
23
24
|
export interface Config {
|
|
24
25
|
mode: 'postgrest' | 'sql';
|
|
25
26
|
supabaseUrl?: string;
|
|
@@ -37,6 +38,7 @@ export declare const ENV: {
|
|
|
37
38
|
readonly actAsUserId: "EKWO_ACT_AS_USER_ID";
|
|
38
39
|
readonly einvoiceDirectory: "EKWO_EINVOICE_DIRECTORY";
|
|
39
40
|
readonly agentPosting: "EKWO_AGENT_POSTING";
|
|
41
|
+
readonly tools: "EKWO_MCP_TOOLS";
|
|
40
42
|
readonly supabaseUrl: "SUPABASE_URL";
|
|
41
43
|
readonly anonKey: "SUPABASE_ANON_KEY";
|
|
42
44
|
readonly email: "EKWO_EMAIL";
|
|
@@ -50,6 +52,13 @@ export { isServiceRoleKey };
|
|
|
50
52
|
* decides. A value that is neither is refused rather than read as one.
|
|
51
53
|
*/
|
|
52
54
|
export declare function sessionPostingFrom(env: NodeJS.ProcessEnv): SessionPosting | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* How the session's tools are offered, from `EKWO_MCP_TOOLS`: `all` at the
|
|
57
|
+
* handshake, or `on_demand` — a first session's tools, and `search_tools` and
|
|
58
|
+
* `load_tools` for the rest. Unset, all. A value that is neither is refused
|
|
59
|
+
* rather than read as one.
|
|
60
|
+
*/
|
|
61
|
+
export declare function toolLoadingFrom(env: NodeJS.ProcessEnv): ToolLoading | undefined;
|
|
53
62
|
/** `--autopilot` or `--review` among the arguments of the server, at most one of them. */
|
|
54
63
|
export declare function sessionPostingFlag(argv: readonly string[]): SessionPosting | undefined;
|
|
55
64
|
/** Reads the environment, and says what is missing rather than failing later. */
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAiC,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACpG,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAiC,gBAAgB,EAAsB,MAAM,eAAe,CAAC;AACpG,OAAO,EAAgB,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAGlG,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,WAAW,GAAG,KAAK,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,GAAG;;;;;;;;;;;CAON,CAAC;AAUX,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAS5B;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,cAAc,GAAG,SAAS,CASrF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,GAAG,WAAW,GAAG,SAAS,CAS/E;AAED,0FAA0F;AAC1F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,cAAc,GAAG,SAAS,CAOtF;AAED,iFAAiF;AACjF,wBAAgB,UAAU,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CA6DvE;AAED,2EAA2E;AAC3E,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAalE"}
|
package/dist/config.js
CHANGED
|
@@ -23,12 +23,14 @@ import { IDENTITY_ENV, SESSION_POSTING, isServiceRoleKey, serviceRoleRefusal } f
|
|
|
23
23
|
import { EkwoMcpError } from './backend.js';
|
|
24
24
|
import { postgrestBackend } from './postgrest.js';
|
|
25
25
|
import { connect, sqlBackend } from './sql.js';
|
|
26
|
+
import { TOOL_LOADING } from './tools/loading.js';
|
|
26
27
|
export const ENV = {
|
|
27
28
|
...IDENTITY_ENV,
|
|
28
29
|
dbUrl: 'EKWO_DB_URL',
|
|
29
30
|
actAsUserId: 'EKWO_ACT_AS_USER_ID',
|
|
30
31
|
einvoiceDirectory: 'EKWO_EINVOICE_DIRECTORY',
|
|
31
32
|
agentPosting: 'EKWO_AGENT_POSTING',
|
|
33
|
+
tools: 'EKWO_MCP_TOOLS',
|
|
32
34
|
};
|
|
33
35
|
const SURFACE = 'this server';
|
|
34
36
|
const SIGN_IN = `sign in, or set ${IDENTITY_ENV.email} and ${IDENTITY_ENV.password} and let this server sign in for you`;
|
|
@@ -58,6 +60,21 @@ export function sessionPostingFrom(env) {
|
|
|
58
60
|
}
|
|
59
61
|
return value;
|
|
60
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* How the session's tools are offered, from `EKWO_MCP_TOOLS`: `all` at the
|
|
65
|
+
* handshake, or `on_demand` — a first session's tools, and `search_tools` and
|
|
66
|
+
* `load_tools` for the rest. Unset, all. A value that is neither is refused
|
|
67
|
+
* rather than read as one.
|
|
68
|
+
*/
|
|
69
|
+
export function toolLoadingFrom(env) {
|
|
70
|
+
const value = trimmed(env, ENV.tools);
|
|
71
|
+
if (value === undefined)
|
|
72
|
+
return undefined;
|
|
73
|
+
if (!TOOL_LOADING.includes(value)) {
|
|
74
|
+
throw new EkwoMcpError(`bad_tool_loading: ${ENV.tools} is ${TOOL_LOADING.join(' or ')}, got "${value}". Left unset, every tool is offered at the start.`);
|
|
75
|
+
}
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
61
78
|
/** `--autopilot` or `--review` among the arguments of the server, at most one of them. */
|
|
62
79
|
export function sessionPostingFlag(argv) {
|
|
63
80
|
if (argv.includes('--autopilot') && argv.includes('--review')) {
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,YAAY,EAAwD,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACpG,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AI,MAAM,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;QAC1B,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,KAAe,CAAC,CAAC;QACjD,OAAO,UAAU,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,WAAqB,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IACvF,CAAC;IACD,OAAO,gBAAgB,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC,WAAqB;QACzC,OAAO,EAAE,MAAM,CAAC,OAAiB;QACjC,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC,CAAC;AACL,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* `npx`.
|
|
8
8
|
*/
|
|
9
9
|
export { EkwoMcpError, explain, socleCode, type AgentSession, type Backend, type Filter, type Order, type Row, type SelectQuery, type SessionPosting, } from './backend.js';
|
|
10
|
-
export { ENV, isServiceRoleKey, openBackend, readConfig, sessionPostingFlag, sessionPostingFrom, type Config } from './config.js';
|
|
10
|
+
export { ENV, isServiceRoleKey, openBackend, readConfig, sessionPostingFlag, sessionPostingFrom, toolLoadingFrom, type Config } from './config.js';
|
|
11
11
|
export { amountIn, decimal, money, moneyFields, type Decimal } from '@ekwo-ai/core';
|
|
12
12
|
export { connect, sqlBackend, type SqlBackendOptions, type SqlClient } from './sql.js';
|
|
13
13
|
export { AGENT_HEADER, AGENT_SESSION_HEADER, API_KEY_HEADER, postgrestBackend, type PostgrestBackendOptions } from './postgrest.js';
|
|
14
14
|
export { checkConnection, handleHttpRequest, handleNodeRequest, openHttpBackend, type HttpConnection, type HttpHandlerOptions, } from './http.js';
|
|
15
|
-
export { INSTRUCTIONS, SERVER_NAME, SERVER_VERSION, buildServer, instructionsFor, type ServerOptions, } from './server.js';
|
|
15
|
+
export { INSTRUCTIONS, SERVER_NAME, SERVER_VERSION, buildServer, instructionsFor, type RegisterTool, type ServerOptions, } from './server.js';
|
|
16
|
+
export { TOOL_EFFECTS, annotationsFor, effectOf, type EffectAnnotations, type EffectDetails, type ToolEffect } from './tools/effect.js';
|
|
17
|
+
export { CORE_TOOLS, LOADING_TOOLS, TOOL_LOADING, loadTools, searchTools, type FoundTool, type ToolLoading } from './tools/loading.js';
|
|
16
18
|
export { SCHEMA_MIN, assertSchemaSupported, installedSchemaVersion } from './schema.js';
|
|
17
19
|
export { einvoiceTransportFrom, postingSummary, serverFromEnvironment, shouldInviteToRegister, type Started } from './start.js';
|
|
18
20
|
export { STDIO_HELP, runStdio, type StdioOptions } from './stdio.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,YAAY,EACZ,OAAO,EACP,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,YAAY,EACZ,OAAO,EACP,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,cAAc,GACpB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,YAAY,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* `npx`.
|
|
8
8
|
*/
|
|
9
9
|
export { EkwoMcpError, explain, socleCode, } from './backend.js';
|
|
10
|
-
export { ENV, isServiceRoleKey, openBackend, readConfig, sessionPostingFlag, sessionPostingFrom } from './config.js';
|
|
10
|
+
export { ENV, isServiceRoleKey, openBackend, readConfig, sessionPostingFlag, sessionPostingFrom, toolLoadingFrom } from './config.js';
|
|
11
11
|
export { amountIn, decimal, money, moneyFields } from '@ekwo-ai/core';
|
|
12
12
|
export { connect, sqlBackend } from './sql.js';
|
|
13
13
|
export { AGENT_HEADER, AGENT_SESSION_HEADER, API_KEY_HEADER, postgrestBackend } from './postgrest.js';
|
|
14
14
|
export { checkConnection, handleHttpRequest, handleNodeRequest, openHttpBackend, } from './http.js';
|
|
15
15
|
export { INSTRUCTIONS, SERVER_NAME, SERVER_VERSION, buildServer, instructionsFor, } from './server.js';
|
|
16
|
+
export { TOOL_EFFECTS, annotationsFor, effectOf } from './tools/effect.js';
|
|
17
|
+
export { CORE_TOOLS, LOADING_TOOLS, TOOL_LOADING, loadTools, searchTools } from './tools/loading.js';
|
|
16
18
|
export { SCHEMA_MIN, assertSchemaSupported, installedSchemaVersion } from './schema.js';
|
|
17
19
|
export { einvoiceTransportFrom, postingSummary, serverFromEnvironment, shouldInviteToRegister } from './start.js';
|
|
18
20
|
export { STDIO_HELP, runStdio } from './stdio.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,YAAY,EACZ,OAAO,EACP,SAAS,GAQV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAe,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,YAAY,EACZ,OAAO,EACP,SAAS,GAQV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAe,MAAM,aAAa,CAAC;AACnJ,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,UAAU,EAA0C,MAAM,UAAU,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,gBAAgB,EAAgC,MAAM,gBAAgB,CAAC;AACpI,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAGhB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,cAAc,EACd,WAAW,EACX,eAAe,GAGhB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAA+D,MAAM,mBAAmB,CAAC;AACxI,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAoC,MAAM,oBAAoB,CAAC;AACvI,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,qBAAqB,EAAE,sBAAsB,EAAgB,MAAM,YAAY,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAqB,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,WAAW,GAKZ,MAAM,oBAAoB,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
* holds it to the company's agent_posting whatever it decides — and a model told
|
|
9
9
|
* that a missing tax is not zero per cent stops inventing one.
|
|
10
10
|
*/
|
|
11
|
-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
11
|
+
import { McpServer, type RegisteredTool, type ToolCallback } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
12
|
+
import type { AnySchema, ZodRawShapeCompat } from '@modelcontextprotocol/sdk/server/zod-compat.js';
|
|
12
13
|
import { type Backend } from './backend.js';
|
|
13
14
|
import { type EinvoiceTransport, type FiscalSystem, type LogoFetch } from '@ekwo-ai/core';
|
|
15
|
+
import { type EffectAnnotations } from './tools/effect.js';
|
|
16
|
+
import { type ToolLoading } from './tools/loading.js';
|
|
14
17
|
export declare const SERVER_NAME = "@ekwo-ai/mcp";
|
|
15
18
|
/**
|
|
16
19
|
* What this server tells a client it is, in the MCP handshake.
|
|
@@ -20,7 +23,7 @@ export declare const SERVER_NAME = "@ekwo-ai/mcp";
|
|
|
20
23
|
* `tests/mcp/surface.test.ts` keeps the two equal, so a release that bumps one
|
|
21
24
|
* and forgets the other fails the build.
|
|
22
25
|
*/
|
|
23
|
-
export declare const SERVER_VERSION = "0.
|
|
26
|
+
export declare const SERVER_VERSION = "0.25.0";
|
|
24
27
|
export interface ServerOptions {
|
|
25
28
|
/**
|
|
26
29
|
* The modules this installation carries, from `public.modules`. Their tools
|
|
@@ -66,6 +69,13 @@ export interface ServerOptions {
|
|
|
66
69
|
* never a local or private address, are asked for.
|
|
67
70
|
*/
|
|
68
71
|
logoFetch?: LogoFetch;
|
|
72
|
+
/**
|
|
73
|
+
* How the tools are offered: `all` at the handshake, the default, or
|
|
74
|
+
* `on_demand` — the tools of a first session, plus `search_tools` and
|
|
75
|
+
* `load_tools` for the others. `start.ts` reads `EKWO_MCP_TOOLS`. See
|
|
76
|
+
* `tools/loading.ts`.
|
|
77
|
+
*/
|
|
78
|
+
tools?: ToolLoading;
|
|
69
79
|
}
|
|
70
80
|
/**
|
|
71
81
|
* What a client reads at the handshake, before it calls anything.
|
|
@@ -79,6 +89,19 @@ export interface ServerOptions {
|
|
|
79
89
|
export declare const INSTRUCTIONS: string;
|
|
80
90
|
/** The instructions, with the invitation to register and the Cloud offer when they apply. */
|
|
81
91
|
export declare function instructionsFor(options?: ServerOptions): string;
|
|
92
|
+
/**
|
|
93
|
+
* `registerTool`, as this server allows it: with a title, a description and
|
|
94
|
+
* the hints of what the tool does (`tools/effect.ts`). A registration without
|
|
95
|
+
* them does not compile.
|
|
96
|
+
*/
|
|
97
|
+
export type RegisterTool = <OutputArgs extends ZodRawShapeCompat | AnySchema, InputArgs extends undefined | ZodRawShapeCompat | AnySchema = undefined>(name: string, config: {
|
|
98
|
+
title: string;
|
|
99
|
+
description: string;
|
|
100
|
+
inputSchema?: InputArgs;
|
|
101
|
+
outputSchema?: OutputArgs;
|
|
102
|
+
annotations: EffectAnnotations;
|
|
103
|
+
_meta?: Record<string, unknown>;
|
|
104
|
+
}, cb: ToolCallback<InputArgs>) => RegisteredTool;
|
|
82
105
|
/**
|
|
83
106
|
* The sentence the posting tools end with: how this session posts, as the
|
|
84
107
|
* person who started it chose — the tool list is read once, so it is said
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAoB,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAoB,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAC9H,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAGnG,OAAO,EAAgB,KAAK,OAAO,EAAY,MAAM,cAAc,CAAC;AACpE,OAAO,EAAqD,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAI7I,OAAO,EAAgC,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAiE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAErH,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAC1C;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,WAAW,CAAC;AA+BvC,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACr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