@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.
@@ -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 authMode = me.auth_mode === "oauth" ? "oauth" : "anonymous";
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 === "oauth") {
2009
- lines.push(`Auth: OAuth (connected)`);
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 ?? "none"}`);
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 !== "oauth") {
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-NHFRYNJ3.js.map
2067
+ //# sourceMappingURL=chunk-KWEBCAPF.js.map