@reworkdigital.io/rework-proof-mcp 1.4.0 → 1.5.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/package.json +2 -1
- package/src/index.js +9 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Changes to `@reworkdigital.io/rework-proof-mcp`. The source syncs to GitHub on
|
|
4
|
+
every merge; npm only gets a change when a new version is published, so
|
|
5
|
+
anything under **Unreleased** is on GitHub and not yet on npm.
|
|
6
|
+
|
|
7
|
+
When you publish, move the Unreleased entries under the new version and date,
|
|
8
|
+
and bump `version` in both `package.json` and `server.json` (npm never
|
|
9
|
+
republishes a version).
|
|
10
|
+
|
|
11
|
+
## Unreleased
|
|
12
|
+
|
|
13
|
+
Nothing yet.
|
|
14
|
+
|
|
15
|
+
## 1.5.0
|
|
16
|
+
|
|
17
|
+
- **README:** the hosted-server section said "the same four tools". There are
|
|
18
|
+
five since 1.4.0 added `check_rework_certificate`, so it now says "the same
|
|
19
|
+
tools", with no number to go stale.
|
|
20
|
+
- **Package:** this changelog ships in the package from this version on.
|
|
21
|
+
- **Unknown tool:** in the 2026-07-28 protocol revision, a call for a tool this
|
|
22
|
+
server does not have is now answered as a tool result (`isError: true`) that
|
|
23
|
+
names the tools that exist, as the older revisions always did. It was a
|
|
24
|
+
JSON-RPC error (-32602), which gives a model nothing to correct itself with.
|
|
25
|
+
The message now lists the tools in every revision.
|
|
26
|
+
|
|
27
|
+
## 1.4.0
|
|
28
|
+
|
|
29
|
+
- Added `check_rework_certificate`: check a certificate from its ID or its
|
|
30
|
+
link.
|
|
31
|
+
|
|
32
|
+
Versions before this changelog was started are described in the repository's
|
|
33
|
+
commit history, not here; the 1.4.0 entry above is not a complete list.
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ No API key. No account. Every tool here reads public endpoints.
|
|
|
24
24
|
|
|
25
25
|
### Or use the hosted server
|
|
26
26
|
|
|
27
|
-
The same
|
|
27
|
+
The same tools are served at a URL, for clients that take a remote
|
|
28
28
|
server (Claude's connectors, for one) and for anyone who would rather not
|
|
29
29
|
install anything:
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reworkdigital.io/rework-proof-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"mcpName": "io.github.reworkio/rework-proof",
|
|
5
5
|
"description": "MCP server for verifying REWORK credentials — check whether delivered work is genuinely the author's.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"src",
|
|
14
14
|
"README.md",
|
|
15
|
+
"CHANGELOG.md",
|
|
15
16
|
"LICENSE"
|
|
16
17
|
],
|
|
17
18
|
"engines": {
|
package/src/index.js
CHANGED
|
@@ -326,7 +326,7 @@ async function callTool(name, args) {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
throw new Error(`unknown tool: ${name}`);
|
|
329
|
+
throw new Error(`unknown tool: ${name}. This server has: ${[...TOOL_NAMES].sort().join(', ')}`);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
// ── JSON-RPC plumbing ──────────────────────────────────────────────────────
|
|
@@ -377,11 +377,14 @@ async function handleStateless(msg, meta) {
|
|
|
377
377
|
if (method === 'tools/call') {
|
|
378
378
|
const name = params && params.name;
|
|
379
379
|
const args = params && params.arguments;
|
|
380
|
-
//
|
|
381
|
-
//
|
|
382
|
-
//
|
|
383
|
-
|
|
384
|
-
|
|
380
|
+
// A tool this server does not have is answered as a result the model can
|
|
381
|
+
// read, naming the tools that exist (callTool throws it), as the
|
|
382
|
+
// handshake era always has. It used to be a protocol error here, which
|
|
383
|
+
// gives the model nothing to act on. Arguments that are not an object
|
|
384
|
+
// stay a protocol error: there is no tool to hand them to. What is wrong
|
|
385
|
+
// inside the arguments is the tool's to report.
|
|
386
|
+
const known = typeof name === 'string' && TOOL_NAMES.has(name);
|
|
387
|
+
if (known && args !== undefined && args !== null && (typeof args !== 'object' || Array.isArray(args))) {
|
|
385
388
|
return failure(id, -32602, 'Invalid params: arguments must be an object');
|
|
386
389
|
}
|
|
387
390
|
try {
|