scrupp-mcp-server 0.2.2 → 0.2.3
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/package.json +1 -1
- package/server.json +2 -2
- package/src/server.js +5 -1
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"url": "https://github.com/Wism-Corp/scrupp-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.3",
|
|
10
10
|
"websiteUrl": "https://scrupp.com/docs/api/integrations-jobs",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
15
15
|
"identifier": "scrupp-mcp-server",
|
|
16
|
-
"version": "0.2.
|
|
16
|
+
"version": "0.2.3",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|
package/src/server.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
import { buildSearch, credits, jobResult, jobStatus, runJob, ScruppError, verifyEmail } from "./client.js";
|
|
5
6
|
|
|
7
|
+
// Report the published package version, so serverInfo never drifts from npm again.
|
|
8
|
+
const { version } = createRequire(import.meta.url)("../package.json");
|
|
9
|
+
|
|
6
10
|
/**
|
|
7
11
|
* Idempotency-Key for one tool call: a hash of the whole input, not its first
|
|
8
12
|
* 200 characters. Two Sales Navigator URLs share a long prefix, so the
|
|
@@ -42,7 +46,7 @@ export function createServer({ toolset = "full" } = {}) {
|
|
|
42
46
|
// it at the setup guide, so a missing LinkedIn account or empty balance ends
|
|
43
47
|
// with a link the person can follow, not a guess.
|
|
44
48
|
const server = new McpServer(
|
|
45
|
-
{ name: "scrupp", version
|
|
49
|
+
{ name: "scrupp", version },
|
|
46
50
|
{
|
|
47
51
|
instructions:
|
|
48
52
|
"Scrupp setup guide and troubleshooting: https://scrupp.com/docs/api/claude. " +
|