Skip to content

@upstash/context7-mcp@4.9.3

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 11:06
4ee27f0

Patch Changes

  • 30a0391: A code tool task ends as soon as the Context7 API reports its final answer. Before, a task whose index failed kept the agent waiting for up to 30 minutes.
  • 750cd0e: The server instructions now tell the agent to call Context7 before it writes any answer with code, configuration, commands, or API details from a library, runtime, tool, or service. They list the cases that agents often answer from memory and name no specific libraries. They also say when not to call (routine commands and edits, docs already fetched), what to do when Context7 has no match or returns an error, and that user and project instructions come first. resolve-library-id and query-docs now set _meta["anthropic/alwaysLoad"], so Claude Code loads them up front instead of deferring them behind tool search.
  • 16e5f28: The hosted server can run an A/B test of the server instructions. With CONTEXT7_INSTRUCTIONS_EXPERIMENT=remote, it reads the test's config (experiment ID and control share, kept in context7app's Redis) once at startup from /api/v2/mcp/instructions-experiment, so a change needs only a restart. The control share of callers gets the previous instructions without alwaysLoad; the rest get the current ones. Without the config, or when the app cannot be reached, everyone gets the previous instructions. An HMAC of the caller's own credential (the API key hash, or the user ID of an OAuth token or JWT) with MCP_CLIENT_IP_ASSERTION_KEY keeps each person in one arm across sessions and token refreshes. Anonymous callers get no arm. While the test runs, tools/list and server/discover are not shared across callers, API calls carry the arm as an encrypted X-Context7-Instructions-Assertion, and each instructions request is reported to context7app as an exposure. Stdio and self-hosted servers without the variable are not part of it. Until the rollout ends, they and every caller the test cannot place keep the previous instructions without alwaysLoad, so only the treatment arm of the hosted test gets the new instructions.