lkpgestao-mcp 0.8.0 → 0.11.1
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 +5 -4
- package/dist/index.js +326 -195
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
- **
|
|
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`).
|
|
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` 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` for the full catalog).
|
|
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 #
|
|
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)
|
|
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 (opportunity create/update/archive, activity add/update/delete, contact attach/update/detach,
|
|
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.
|
|
97
97
|
|
|
98
98
|
## Documentation
|
|
99
99
|
|
|
@@ -103,6 +103,7 @@ The server shells out to `/usr/bin/security` at startup. If the lookup fails (it
|
|
|
103
103
|
| MCP Server Spec v2 (Phase F) | [docs/specs/MCP_SERVER_SPEC_v2.md](docs/specs/MCP_SERVER_SPEC_v2.md) |
|
|
104
104
|
| REST API Spec | [docs/specs/API_SPEC_MCP.md](docs/specs/API_SPEC_MCP.md) |
|
|
105
105
|
| Implementation Plan v2 | [docs/plans/API_MCP_IMPLEMENTATION_PLAN_v2.md](docs/plans/API_MCP_IMPLEMENTATION_PLAN_v2.md) |
|
|
106
|
+
| Implementation Plan v3 | [docs/plans/API_MCP_IMPLEMENTATION_PLAN_v3.md](docs/plans/API_MCP_IMPLEMENTATION_PLAN_v3.md) |
|
|
106
107
|
|
|
107
108
|
## License
|
|
108
109
|
|