@loopops/mcp-server 3.47.0 → 3.48.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/dist/api-client.js +8 -1
- package/package.json +1 -1
package/dist/api-client.js
CHANGED
|
@@ -32,7 +32,14 @@ let refreshToken = process.env.OKTA_REFRESH_TOKEN;
|
|
|
32
32
|
// Access token cache (in-memory, subprocess-lifetime).
|
|
33
33
|
let cachedAccessToken = null;
|
|
34
34
|
let cachedAccessTokenExpiresAt = 0; // epoch ms
|
|
35
|
-
|
|
35
|
+
// 120s default. The fast tools (cpq_context, find_opportunity, my_quotes,
|
|
36
|
+
// account_show, etc.) return in <2s; the slow tools (create_prep_brief,
|
|
37
|
+
// draft_quote_from_intent) chain web search + Claude composition and can
|
|
38
|
+
// legitimately take 30-90s. The old 30s default tripped users on the slow
|
|
39
|
+
// tools when their MCP client config didn't override. Override via
|
|
40
|
+
// API_TIMEOUT_MS env (Claude Code CLI sets 300000 from `loop-ops login`;
|
|
41
|
+
// Desktop config should mirror that).
|
|
42
|
+
const DEFAULT_TIMEOUT_MS = Number(process.env.API_TIMEOUT_MS || 120_000);
|
|
36
43
|
const SERVER_NAME = "loop-operations";
|
|
37
44
|
// Refresh a little early so requests don't race token expiry at the edge.
|
|
38
45
|
const ACCESS_TOKEN_EARLY_REFRESH_MS = 60 * 1000; // 1 minute
|