lkpgestao-mcp 0.11.1 → 0.12.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
@@ -2,7 +2,7 @@
2
2
 
3
3
  MCP server for **LKPGestão** — exposes the CEO cockpit API to Claude Cowork / Claude Desktop as tools and prompts.
4
4
 
5
- - **49 tools** covering resources, projects (full CRUD + team management, 10 tools), opportunities (full CRUD incl. 9 writes across opp / activity / contact, 12 tools), tasks (full CRUD + comments, 7 tools), clients, helpdesk (list, summary + ticket create), billing, alerts, CEO weekly report, and 3 composites (`lkp_skill_match`, `lkp_weekly_brief`, `lkp_timesheet_anomalies`).
5
+ - **80 tools** (33 read + 44 write + 3 composite) covering resources, projects (full CRUD + team management, 10 tools), opportunities (full CRUD incl. 9 writes across opp / activity / contact, 13 tools), tasks (full CRUD + comments, 7 tools), clients (full CRUD + B1 codes, 9 tools), quotes (full CRUD incl. items, milestones, send/accept/reject/duplicate/new-version, 18 tools), financial (overview, pending, aging, margin, 4 tools), helpdesk (list, summary + ticket create), billing, alerts, CEO weekly report, and 3 composites (`lkp_skill_match`, `lkp_weekly_brief`, `lkp_timesheet_anomalies`).
6
6
  - **5 slash prompts**: `/weekly-brief`, `/morning-standup`, `/opportunity-action`, `/consultant-investigation`, `/pipeline-health-check`.
7
7
  - Stdio JSON-RPC transport, zero network exposure.
8
8
  - Structured stderr logs (pino) with token redaction; never leaks `Authorization` headers.
@@ -10,7 +10,7 @@ MCP server for **LKPGestão** — exposes the CEO cockpit API to Claude Cowork /
10
10
  ## Requirements
11
11
 
12
12
  - Node.js ≥ 20 (ships `fetch` natively).
13
- - A Bearer token from LKPGestão at `/settings/api-tokens` with the scopes you need (`read:*` + `write:opportunities` + `write:projects` + `write:tasks` for the full catalog).
13
+ - A Bearer token from LKPGestão at `/settings/api-tokens` with the scopes you need (`read:*` + `write:opportunities` + `write:projects` + `write:tasks` + `write:timesheets` + `write:helpdesk` + `write:clients` for the full catalog). The client/B1 write tools require `write:clients` specifically — tick it on the "Token da API" screen, otherwise those calls return `403 insufficient_scope`.
14
14
 
15
15
  ## Install (Claude Desktop / Cowork)
16
16
 
@@ -54,7 +54,7 @@ git clone https://github.com/denisvandrade/lkpgestao-mcp.git
54
54
  cd lkpgestao-mcp
55
55
  npm install
56
56
  npm run typecheck
57
- npm test # 110 unit tests (errors, config, keychain, http-client incl. DELETE/204 + Retry-After cap, logger redaction, timesheet detectors, projects-write, tasks incl. comments)
57
+ npm test # 148 unit tests (errors, config, keychain, http-client incl. DELETE/204 + Retry-After cap, logger redaction, timesheet detectors, projects-write, tasks incl. comments, quotes, financial, helpdesk, clients-write incl. B1 codes)
58
58
  npm run build # dist/index.js (ESM, shebang, ~59 KB)
59
59
  node dist/index.js # speaks MCP on stdio
60
60
  ```
@@ -93,7 +93,7 @@ The server shells out to `/usr/bin/security` at startup. If the lookup fails (it
93
93
  - Keychain resolution uses `execFileSync("security", [...])` with args as an array — service/account names are passed verbatim to the `security` binary; no shell interpretation, no injection surface.
94
94
  - `Retry-After` values are capped at 60 s — a hostile or misconfigured server returning `Retry-After: 99999` cannot hang the process for hours.
95
95
  - Every request sends `X-Request-ID` (UUID v4) for cross-correlating stderr lines with API-side traces.
96
- - Write tools (19 total: 9 opportunity writes — create/update/archive, activity add/update/delete, contact attach/update/detach; 6 project writes — create/update/archive, member add/update/remove; 4 task writes — create/update/archive/comment-add) require explicit user approval in the prompt contract — the server does not gate; the slash prompts and tool descriptions instruct the LLM to summarize and wait for confirmation before every destructive or state-changing call.
96
+ - Write tools (44 total: 9 opportunity writes — create/update/archive, activity add/update/delete, contact attach/update/detach; 6 project writes — create/update/archive, member add/update/remove; 4 task writes — create/update/archive/comment-add; 3 timesheet writes — create/update/delete; 6 client/B1 writes — client create/update/deactivate, B1 code create/update/deactivate; 15 quote writes — quote create/update/archive/duplicate/new-version/send/accept/reject, item add/update/delete, milestone add/update/delete/replace; 1 helpdesk write — ticket create) require explicit user approval in the prompt contract — the server does not gate; the slash prompts and tool descriptions instruct the LLM to summarize and wait for confirmation before every destructive or state-changing call. Client and B1 deactivation is always soft (status → inactive); there is no hard delete for clients.
97
97
 
98
98
  ## Documentation
99
99