@clipform/mcp-server 1.32.0 → 1.34.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/README.md +11 -4
- package/dist/{chunk-B32WK2NQ.js → chunk-JID43EDM.js} +6 -6
- package/dist/chunk-JID43EDM.js.map +1 -0
- package/dist/{chunk-ELO7KCMZ.js → chunk-JOJJ2XFL.js} +74 -86
- package/dist/{chunk-ELO7KCMZ.js.map → chunk-JOJJ2XFL.js.map} +1 -1
- package/dist/{chunk-NHFRYNJ3.js → chunk-KWEBCAPF.js} +10 -10
- package/dist/{chunk-NHFRYNJ3.js.map → chunk-KWEBCAPF.js.map} +1 -1
- package/dist/{chunk-HQGYGAE4.js → chunk-ZVHI2V7B.js} +124 -30
- package/dist/chunk-ZVHI2V7B.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/prompts.d.ts +1 -1
- package/dist/prompts.js +2 -2
- package/dist/resources.js +2 -2
- package/dist/server.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-B32WK2NQ.js.map +0 -1
- package/dist/chunk-HQGYGAE4.js.map +0 -1
|
@@ -1926,9 +1926,6 @@ async function callApi(path, options = {}) {
|
|
|
1926
1926
|
"Content-Type": "application/json",
|
|
1927
1927
|
...getAuthHeaders()
|
|
1928
1928
|
};
|
|
1929
|
-
if (path.startsWith("/internal/") && process.env.INTERNAL_SERVICE_SECRET) {
|
|
1930
|
-
headers["X-Service-Secret"] = process.env.INTERNAL_SERVICE_SECRET;
|
|
1931
|
-
}
|
|
1932
1929
|
const fetchOptions = {
|
|
1933
1930
|
method,
|
|
1934
1931
|
headers,
|
|
@@ -2001,15 +1998,18 @@ async function getSessionContextWithAuth() {
|
|
|
2001
1998
|
}
|
|
2002
1999
|
if (!result.ok) return { text: "", authMode: "anonymous" };
|
|
2003
2000
|
const me = result.data;
|
|
2004
|
-
const
|
|
2001
|
+
const apiAuthMode = me.auth_mode ?? "anonymous";
|
|
2002
|
+
const authMode = apiAuthMode === "anonymous" ? "anonymous" : "authenticated";
|
|
2005
2003
|
const plan = me.plan;
|
|
2006
2004
|
const lines = [];
|
|
2007
2005
|
lines.push("## Your Session");
|
|
2008
|
-
if (authMode === "
|
|
2009
|
-
lines.push(
|
|
2006
|
+
if (authMode === "authenticated") {
|
|
2007
|
+
lines.push(
|
|
2008
|
+
apiAuthMode === "api_key" ? "Auth: API key (workspace-scoped)" : "Auth: signed in (connected to a Clipform account)"
|
|
2009
|
+
);
|
|
2010
2010
|
lines.push(`Workspace: ${me.workspace?.name ?? "Unknown"} (${me.workspace?.id ?? "?"})`);
|
|
2011
|
-
lines.push(`User: ${me.user_id
|
|
2012
|
-
lines.push(`Company: ${me.company_id
|
|
2011
|
+
if (me.user_id) lines.push(`User: ${me.user_id}`);
|
|
2012
|
+
if (me.company_id) lines.push(`Company: ${me.company_id}`);
|
|
2013
2013
|
} else {
|
|
2014
2014
|
lines.push("Auth: anonymous (not connected to a Clipform account)");
|
|
2015
2015
|
if (me.workspace) {
|
|
@@ -2030,7 +2030,7 @@ async function getSessionContextWithAuth() {
|
|
|
2030
2030
|
if (plan.custom_theme === false) {
|
|
2031
2031
|
lines.push("Custom themes: not available on this plan");
|
|
2032
2032
|
}
|
|
2033
|
-
if (authMode
|
|
2033
|
+
if (authMode === "anonymous") {
|
|
2034
2034
|
lines.push(`
|
|
2035
2035
|
To unlock your full plan: sign in to your Clipform account.`);
|
|
2036
2036
|
}
|
|
@@ -2064,4 +2064,4 @@ export {
|
|
|
2064
2064
|
getSessionContextWithAuth,
|
|
2065
2065
|
getSessionContext
|
|
2066
2066
|
};
|
|
2067
|
-
//# sourceMappingURL=chunk-
|
|
2067
|
+
//# sourceMappingURL=chunk-KWEBCAPF.js.map
|