@clipform/mcp-server 2.2.2 → 2.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.
@@ -2,7 +2,8 @@ import {
2
2
  getMcpAuth,
3
3
  runWithMcpAuth,
4
4
  runWithMcpTool
5
- } from "./chunk-HCZI2UJ5.js";
5
+ } from "./chunk-V4L5RQWK.js";
6
+ import "./chunk-G3PMV62Z.js";
6
7
  export {
7
8
  getMcpAuth,
8
9
  runWithMcpAuth,
@@ -28,27 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // src/lib/auth-context.ts
32
- import { AsyncLocalStorage } from "async_hooks";
33
- var storage = new AsyncLocalStorage();
34
- function runWithMcpAuth(ctx, fn) {
35
- return storage.run(ctx, fn);
36
- }
37
- function getMcpAuth() {
38
- return storage.getStore();
39
- }
40
- function runWithMcpTool(toolName, fn) {
41
- const parent = storage.getStore();
42
- if (!parent) return fn();
43
- return storage.run({ ...parent, tool_name: toolName }, fn);
44
- }
45
-
46
31
  export {
47
32
  __commonJS,
48
33
  __export,
49
- __toESM,
50
- runWithMcpAuth,
51
- getMcpAuth,
52
- runWithMcpTool
34
+ __toESM
53
35
  };
54
- //# sourceMappingURL=chunk-HCZI2UJ5.js.map
36
+ //# sourceMappingURL=chunk-G3PMV62Z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -6,7 +6,7 @@ import {
6
6
  getWorkflowText,
7
7
  objectType,
8
8
  registerPrompts
9
- } from "./chunk-T6L5Z4J5.js";
9
+ } from "./chunk-WCPHQ4GU.js";
10
10
  import {
11
11
  GUIDE_TYPES,
12
12
  QUIZ_VARIANTS,
@@ -14,7 +14,7 @@ import {
14
14
  getGuideUri,
15
15
  guideFallbackText,
16
16
  registerResources
17
- } from "./chunk-EOAGENT6.js";
17
+ } from "./chunk-WNXTF76M.js";
18
18
  import {
19
19
  ACTIVE_NODE_TYPES,
20
20
  BUSINESS,
@@ -33,14 +33,16 @@ import {
33
33
  resolveFormType,
34
34
  structuredResult,
35
35
  textResult
36
- } from "./chunk-GZRTOCD2.js";
36
+ } from "./chunk-YZJZ5NPL.js";
37
37
  import {
38
- __commonJS,
39
- __export,
40
- __toESM,
41
38
  getMcpAuth,
42
39
  runWithMcpTool
43
- } from "./chunk-HCZI2UJ5.js";
40
+ } from "./chunk-V4L5RQWK.js";
41
+ import {
42
+ __commonJS,
43
+ __export,
44
+ __toESM
45
+ } from "./chunk-G3PMV62Z.js";
44
46
 
45
47
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
46
48
  var require_code = __commonJS({
@@ -19977,4 +19979,4 @@ export {
19977
19979
  RENDER_TIMING,
19978
19980
  createServer
19979
19981
  };
19980
- //# sourceMappingURL=chunk-XKVU6UN7.js.map
19982
+ //# sourceMappingURL=chunk-GRIUCE3Q.js.map