tracepass-mcp-server 1.1.0 → 1.1.1
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/dist/api-client.d.ts +3 -4
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +4 -5
- package/dist/api-client.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/api-client.d.ts
CHANGED
|
@@ -20,10 +20,9 @@
|
|
|
20
20
|
* 429 rate-limit is the tool's job — those are meaningful results an
|
|
21
21
|
* AI agent must see and act on, not errors to swallow.
|
|
22
22
|
*/
|
|
23
|
-
/** Value sent in the `X-
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
export declare const SOURCE_TAG = "mcp-server/1.1";
|
|
23
|
+
/** Value sent in the `X-Source` header on every request, so the TracePass
|
|
24
|
+
* request log can attribute v1 traffic to this client (vs n8n / raw api). */
|
|
25
|
+
export declare const SOURCE_TAG = "mcp";
|
|
27
26
|
export interface TracePassApiResponse {
|
|
28
27
|
/** HTTP status code. */
|
|
29
28
|
status: number;
|
package/dist/api-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH
|
|
1
|
+
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;8EAC8E;AAC9E,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,EAAE,EAAE,OAAO,CAAC;IACZ,oEAAoE;IACpE,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC;2CACuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB;AASD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,MAAM,EAAE,qBAAqB;IAKzC;;;;;;;;;;;OAWG;IACG,OAAO,CACX,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,EAC3C,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,GACb,OAAO,CAAC,oBAAoB,CAAC;IAiChC,GAAG,CAAC,IAAI,EAAE,MAAM;IAGhB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;IAGjC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;IAGlC,MAAM,CAAC,IAAI,EAAE,MAAM;CAGpB"}
|
package/dist/api-client.js
CHANGED
|
@@ -20,10 +20,9 @@
|
|
|
20
20
|
* 429 rate-limit is the tool's job — those are meaningful results an
|
|
21
21
|
* AI agent must see and act on, not errors to swallow.
|
|
22
22
|
*/
|
|
23
|
-
/** Value sent in the `X-
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
export const SOURCE_TAG = "mcp-server/1.1";
|
|
23
|
+
/** Value sent in the `X-Source` header on every request, so the TracePass
|
|
24
|
+
* request log can attribute v1 traffic to this client (vs n8n / raw api). */
|
|
25
|
+
export const SOURCE_TAG = "mcp";
|
|
27
26
|
/** Generate a random Idempotency-Key for a write request. */
|
|
28
27
|
function newIdempotencyKey() {
|
|
29
28
|
// crypto.randomUUID is available on Node 18+ and every Web runtime
|
|
@@ -55,7 +54,7 @@ export class TracePassClient {
|
|
|
55
54
|
Accept: "application/json",
|
|
56
55
|
// Identify this client to the TracePass request log so traffic can be
|
|
57
56
|
// attributed to the MCP server vs the n8n node vs raw API integrations.
|
|
58
|
-
"X-
|
|
57
|
+
"X-Source": SOURCE_TAG,
|
|
59
58
|
};
|
|
60
59
|
const init = { method, headers };
|
|
61
60
|
if (body !== undefined && method !== "GET") {
|
package/dist/api-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH
|
|
1
|
+
{"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;8EAC8E;AAC9E,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAmBhC,6DAA6D;AAC7D,SAAS,iBAAiB;IACxB,mEAAmE;IACnE,uCAAuC;IACvC,OAAO,OAAO,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC;AACtC,CAAC;AAED,MAAM,OAAO,eAAe;IACT,OAAO,CAAS;IAChB,MAAM,CAAS;IAEhC,YAAY,MAA6B;QACvC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,OAAO,CACX,MAA2C,EAC3C,IAAY,EACZ,IAAc;QAEd,MAAM,OAAO,GAA2B;YACtC,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;YACtC,MAAM,EAAE,kBAAkB;YAC1B,sEAAsE;YACtE,wEAAwE;YACxE,UAAU,EAAE,UAAU;SACvB,CAAC;QACF,MAAM,IAAI,GAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;QAE9C,IAAI,IAAI,KAAK,SAAS,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YAC3C,OAAO,CAAC,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AE,IAAI,CAAC,CAAC;IACtC,CAAC;CACF"}
|
package/dist/server.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
16
16
|
* meaningful tool-surface change. */
|
|
17
17
|
export declare const MCP_SERVER_INFO: {
|
|
18
18
|
readonly name: "tracepass";
|
|
19
|
-
readonly version: "1.1.
|
|
19
|
+
readonly version: "1.1.1";
|
|
20
20
|
};
|
|
21
21
|
export interface CreateMcpServerConfig {
|
|
22
22
|
/** Base URL of the TracePass app — e.g. "https://app.tracepass.eu".
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tracepass-mcp-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Model Context Protocol server for TracePass — the EU Digital Product Passport platform. Lets AI assistants manage products, passports, and EPCIS supply-chain events.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|