lkpgestao-mcp 0.2.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 +69 -0
- package/dist/index.js +1419 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# lkpgestao-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for **LKPGestão** — exposes the CEO cockpit API to Claude Cowork / Claude Desktop as tools and prompts.
|
|
4
|
+
|
|
5
|
+
- **22 tools** covering resources, projects, opportunities (incl. 2 writes), clients, helpdesk, billing, alerts, CEO weekly report, and 3 composites (`lkp_skill_match`, `lkp_weekly_brief`, `lkp_timesheet_anomalies`).
|
|
6
|
+
- **5 slash prompts**: `/weekly-brief`, `/morning-standup`, `/opportunity-action`, `/consultant-investigation`, `/pipeline-health-check`.
|
|
7
|
+
- Stdio JSON-RPC transport, zero network exposure.
|
|
8
|
+
- Structured stderr logs (pino) with token redaction; never leaks `Authorization` headers.
|
|
9
|
+
|
|
10
|
+
## Requirements
|
|
11
|
+
|
|
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).
|
|
14
|
+
|
|
15
|
+
## Install (Claude Desktop / Cowork)
|
|
16
|
+
|
|
17
|
+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
18
|
+
|
|
19
|
+
```jsonc
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"lkpgestao": {
|
|
23
|
+
"command": "npx",
|
|
24
|
+
"args": ["-y", "lkpgestao-mcp"],
|
|
25
|
+
"env": {
|
|
26
|
+
"LKP_API_BASE_URL": "https://lkpgestaodev.linkupconsultoria.com",
|
|
27
|
+
"LKP_API_TOKEN": "<paste token from /settings/api-tokens>",
|
|
28
|
+
"LKP_LOG_LEVEL": "info"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Restart the client. First launch downloads the package via `npx`.
|
|
36
|
+
|
|
37
|
+
## Configuration
|
|
38
|
+
|
|
39
|
+
| Var | Required | Default | Description |
|
|
40
|
+
|---|---|---|---|
|
|
41
|
+
| `LKP_API_BASE_URL` | ✓ | — | HTTPS base URL (trailing slashes stripped). HTTP is rejected. |
|
|
42
|
+
| `LKP_API_TOKEN` | ✓ | — | Bearer token (without `Bearer ` prefix). |
|
|
43
|
+
| `LKP_LOG_LEVEL` | | `info` | `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`silent` |
|
|
44
|
+
| `LKP_REQUEST_TIMEOUT_MS` | | `10000` | Per-request HTTP timeout. |
|
|
45
|
+
| `LKP_RETRY_ATTEMPTS` | | `2` | Retries on 5xx/network. 429 is retried once honoring `Retry-After`. |
|
|
46
|
+
| `LKP_CACHE_TTL_SECONDS` | | `30` | Reserved for future read cache. |
|
|
47
|
+
|
|
48
|
+
## Develop from source
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
git clone https://github.com/denisvandrade/lkpgestao-mcp.git
|
|
52
|
+
cd lkpgestao-mcp
|
|
53
|
+
npm install
|
|
54
|
+
npm run typecheck
|
|
55
|
+
npm test # 33 unit tests (errors, config, http-client, timesheet detectors)
|
|
56
|
+
npm run build # dist/index.js (ESM, shebang, ~48 KB)
|
|
57
|
+
node dist/index.js # speaks MCP on stdio
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Security
|
|
61
|
+
|
|
62
|
+
- Token is loaded once at startup; never written to logs or tool results.
|
|
63
|
+
- `pino` redaction covers `authorization`, `token`, `bearer` fields in any log record.
|
|
64
|
+
- Every request sends `X-Request-ID` (UUID v4) for cross-correlating stderr lines with API-side traces.
|
|
65
|
+
- Write tools (`lkp_opportunity_activity_add`, `lkp_opportunity_update`) require explicit user approval in the prompt contract — the server does not gate; the slash prompt does.
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
UNLICENSED — internal LKP Consultoria use.
|