lkpgestao-mcp 0.31.0 → 0.32.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 +4 -4
- package/dist/index.js +98 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ MCP server for **LKPGestão** — exposes the management API (projects, opportun
|
|
|
4
4
|
|
|
5
5
|
## Instalação
|
|
6
6
|
|
|
7
|
-
> ### ⚠️ A 0.15.x–0.
|
|
7
|
+
> ### ⚠️ A 0.15.x–0.32.x é DEV-only até a release do contrato 4.7 em produção
|
|
8
8
|
>
|
|
9
9
|
> Os contratos **2.11** a **2.14** existem hoje só na branch `dev` do backend; a `main` ainda serve **2.10**, e a release do backend leva os quatro de uma vez. Em produção **nem o `GET /api/v1/meta` existe** — os commits que levam o 2.9 em diante, e os do SP-1 de helpdesk, estão todos fora da `main`. Por isso os exemplos abaixo apontam para `lkpgestaodev`.
|
|
10
10
|
>
|
|
@@ -142,7 +142,7 @@ claude mcp remove lkpgestao -s user
|
|
|
142
142
|
| `LKP_API_TOKEN_KEYCHAIN_ACCOUNT` | | — | Optional account name (`-a` flag) to disambiguate Keychain entries. |
|
|
143
143
|
| `LKP_LOG_LEVEL` | | `info` | `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`silent` |
|
|
144
144
|
| `LKP_REQUEST_TIMEOUT_MS` | | `10000` | Per-request HTTP timeout. |
|
|
145
|
-
| `LKP_RETRY_ATTEMPTS` | | `2` | Retries on 5xx/network. 429 is retried once honoring `Retry-After` (then `X-RateLimit-Reset`). |
|
|
145
|
+
| `LKP_RETRY_ATTEMPTS` | | `2` | Retries on 5xx/network/timeout — **reads only** (GET/HEAD); a write is never replayed, because it may have landed. 429 is retried once on any method, honoring `Retry-After` (then `X-RateLimit-Reset`). |
|
|
146
146
|
| `LKP_CACHE_TTL_SECONDS` | | `30` | Reserved for future read cache. |
|
|
147
147
|
| `LKP_REQUIRE_CONTRACT` | | `0` | `1`/`true` recusa subir contra um backend defasado — veja abaixo. Valor irreconhecível é erro de configuração, não "desligado". |
|
|
148
148
|
| `LKP_EXPECTED_CONTRACT` | | `EXPECTED_CONTRACT` do build (`3.0`) | Contra qual contrato **este deployment** fala. Só é necessário quando o alvo não é o alvo do build — veja abaixo. Formato `MAIOR.MENOR`, só dígitos. |
|
|
@@ -208,14 +208,14 @@ git clone https://github.com/denisvandrade/lkpgestao-mcp.git
|
|
|
208
208
|
cd lkpgestao-mcp
|
|
209
209
|
npm install
|
|
210
210
|
npm run typecheck
|
|
211
|
-
npm test #
|
|
211
|
+
npm test # 974 unit tests (errors, config, keychain, http-client incl. DELETE/204 + Retry-After cap + X-RateLimit-Reset self-throttle, contract-version check, api-date, logger redaction, timesheet detectors, timesheets-write, projects-write, tasks incl. comments + create-schema contract, helpdesk incl. detail/comments/update/csat, clients-write incl. B1 codes + SAP environments, service-identity parity entre as duas tools de comentário)
|
|
212
212
|
npm run build # dist/index.js (ESM, shebang, ~126 KB)
|
|
213
213
|
node dist/index.js # speaks MCP on stdio
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
### Matriz de tools — um teste automático por chamada
|
|
217
217
|
|
|
218
|
-
`scripts/tools-matrix.mjs` exercita **cada uma das
|
|
218
|
+
`scripts/tools-matrix.mjs` exercita **cada uma das 98 tools** que o servidor anuncia em `tools/list`, dirigindo o `dist/index.js` publicado por JSON-RPC sobre stdio — do jeito que o Claude o sobe. Os tokens saem da bancada em `tmp/lkp_token_*.txt` que `/regenerar-tokens-dev` emite.
|
|
219
219
|
|
|
220
220
|
```bash
|
|
221
221
|
npm run build
|