mcp-feedback 0.1.0 → 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 +4 -2
- package/dist/cli.js +0 -1
- package/dist/conformance-cases.js +0 -1
- package/dist/drizzle.d.ts +832 -0
- package/dist/drizzle.js +43 -0
- package/dist/identity.d.ts +6 -3
- package/dist/identity.js +10 -7
- package/dist/index.js +0 -1
- package/dist/reader.js +0 -1
- package/dist/register.d.ts +5 -0
- package/dist/register.js +3 -3
- package/dist/store.js +0 -1
- package/dist/stores/memory.js +0 -1
- package/dist/stores/postgres.js +0 -1
- package/dist/stores/sql.js +8 -5
- package/dist/stores/sqlite.js +0 -1
- package/dist/testing.js +0 -1
- package/dist/tools.d.ts +4 -4
- package/dist/tools.js +0 -1
- package/dist/types.js +0 -1
- package/package.json +16 -4
- package/dist/cli.js.map +0 -1
- package/dist/conformance-cases.js.map +0 -1
- package/dist/identity.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/reader.js.map +0 -1
- package/dist/register.js.map +0 -1
- package/dist/store.js.map +0 -1
- package/dist/stores/memory.js.map +0 -1
- package/dist/stores/postgres.js.map +0 -1
- package/dist/stores/sql.js.map +0 -1
- package/dist/stores/sqlite.js.map +0 -1
- package/dist/testing.js.map +0 -1
- package/dist/tools.js.map +0 -1
- package/dist/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ mcp-feedback close <id> --dismiss --note "Working as intended"
|
|
|
37
37
|
mcp-feedback reopen <id>
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Use `--postgres <url>` instead of `--db` for Postgres
|
|
40
|
+
Use `--postgres <url>` instead of `--db` for Postgres. That needs the `pg` package, so run the copy installed alongside your server (`npm exec mcp-feedback`, or `pnpm --filter <package> exec mcp-feedback` in a monorepo) rather than a fresh `npx` download. `MCP_FEEDBACK_DB` and `MCP_FEEDBACK_POSTGRES_URL` set the store from the environment. Output is JSON unless you pass `--text`. Exit code 2 means bad input; 1 means a failure or an id that was not found.
|
|
41
41
|
|
|
42
42
|
Append `feedbackInstructions` to your server's `instructions` so agents know when to file. If you publish a tool catalog, merge in `feedbackToolCatalog`.
|
|
43
43
|
|
|
@@ -66,6 +66,7 @@ registerFeedback(server, {
|
|
|
66
66
|
| `limits` | Override size limits (see the spec for defaults). |
|
|
67
67
|
| `toolPrefix` | Prefix for tool and prompt names. |
|
|
68
68
|
| `serverInfo` | Server name and version to record; defaults to the server's own. |
|
|
69
|
+
| `tokenFingerprintKey` | Secret that makes token fingerprints an HMAC. Recommended; keep it stable and the same on every instance. |
|
|
69
70
|
| `onError` | Receives storage errors, which are hidden from the agent. |
|
|
70
71
|
|
|
71
72
|
## Stores
|
|
@@ -73,7 +74,8 @@ registerFeedback(server, {
|
|
|
73
74
|
| Store | Import | Notes |
|
|
74
75
|
| --- | --- | --- |
|
|
75
76
|
| SQLite | `mcp-feedback/sqlite` | Default. Uses Node's built-in `node:sqlite`, so there is no native module to install. On Node versions where that module is still experimental, Node prints a warning. |
|
|
76
|
-
| Postgres | `mcp-feedback/postgres` | `postgresStore({ client: pool })` with any client that has `query(text, params)`, such as a `pg.Pool`. Pass `migrate: false` if
|
|
77
|
+
| Postgres | `mcp-feedback/postgres` | `postgresStore({ client: pool })` with any client that has `query(text, params)`, such as a `pg.Pool`. Timestamps are `TIMESTAMPTZ`. Pass `migrate: false` if the table is created by your own migrations. |
|
|
78
|
+
| Drizzle schema | `mcp-feedback/drizzle` | `mcpFeedbackTable` (or `feedbackTable(name)`) to export from your Drizzle schema, so `drizzle-kit` creates the table and never drops it. Use with `postgresStore({ client: pool, migrate: false })`. Tests keep it identical to `spec/sql/postgres.sql`. |
|
|
77
79
|
| Memory | `mcp-feedback` | `memoryStore()`, for tests. |
|
|
78
80
|
|
|
79
81
|
To write your own, implement `FeedbackStore` and check it with the conformance suite:
|
package/dist/cli.js
CHANGED