@clipform/mcp-server 1.13.0 → 1.13.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.
|
@@ -22277,7 +22277,12 @@ async function callInternalApi(path, options = {}) {
|
|
|
22277
22277
|
const headers = {
|
|
22278
22278
|
"Content-Type": "application/json"
|
|
22279
22279
|
};
|
|
22280
|
-
|
|
22280
|
+
const mcpAuth = getMcpAuth();
|
|
22281
|
+
if (mcpAuth && INTERNAL_SECRET) {
|
|
22282
|
+
headers["Authorization"] = `Bearer ${INTERNAL_SECRET}`;
|
|
22283
|
+
headers["X-Mcp-User"] = mcpAuth.user_id;
|
|
22284
|
+
headers["X-Mcp-Workspace"] = mcpAuth.workspace_id;
|
|
22285
|
+
} else if (_apiKey) {
|
|
22281
22286
|
headers["Authorization"] = `Bearer ${_apiKey}`;
|
|
22282
22287
|
} else if (INTERNAL_SECRET) {
|
|
22283
22288
|
headers["Authorization"] = `Bearer ${INTERNAL_SECRET}`;
|
|
@@ -25039,4 +25044,4 @@ export {
|
|
|
25039
25044
|
setApiKey,
|
|
25040
25045
|
createServer
|
|
25041
25046
|
};
|
|
25042
|
-
//# sourceMappingURL=chunk-
|
|
25047
|
+
//# sourceMappingURL=chunk-NW2BYSDR.js.map
|