Context7 Platform -- Up-to-date docs for AI agents
chore: add badges and simplify runtime options in installation instructions
Abdusshh4fea661c906b
diff --git a/README.md b/README.mdindex 5bc23526..74e4763c 100644--- a/README.md+++ b/README.md@@ -1,5 +1,7 @@# Context7 MCP - Up-to-date Docs For Any Cursor Prompt+[](https://context7.com) [](https://smithery.ai/server/@upstash/context7-mcp)+## ❌ Without Context7LLMs rely on outdated or generic information about the libraries you use. You get:@@ -41,8 +43,6 @@ No tab-switching, no hallucinated APIs that don't exist, no outdated code genera- Node.js >= v18.0.0- Cursor, Windsurf, Claude Desktop or another MCP Client-> **Note on Runtimes:** While `npx` (Node.js) is the recommended default for broader compatibility, an alternative using `deno` is provided below for users prioritizing enhanced security. Deno allows explicit control over script permissions (like network access) via flags such as `--allow-net`, reducing potential risks. See [#7](https://github.com/upstash/context7-mcp/issues/7) for the discussion.-### Install in CursorGo to: `Settings` -> `Cursor Settings` -> `MCP` -> `Add new global MCP server`@@ -61,14 +61,14 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i```<details>-<summary>Alternative: Use Deno (Enhanced Security)</summary>+<summary>Alternative: Use Bun</summary>```json{"mcpServers": {"context7": {- "command": "deno",- "args": ["run", "--allow-net", "npm:@upstash/context7-mcp"]+ "command": "bunx",+ "args": ["-y", "@upstash/context7-mcp@latest"]}}}@@ -76,23 +76,8 @@ Pasting the following configuration into your Cursor `~/.cursor/mcp.json` file i</details>-### Install in Windsurf--Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.windsurf.com/windsurf/mcp) for more info.--```json-{- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp@latest"]- }- }-}-```-<details>-<summary>Alternative: Use Deno (Enhanced Security)</summary>+<summary>Alternative: Use Deno</summary>```json{@@ -107,15 +92,14 @@ Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.</details>-### Install in VSCode+### Install in Windsurf-Add this to your VSCode MCP config file. See [VSCode MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more info.+Add this to your Windsurf MCP config file. See [Windsurf MCP docs](https://docs.windsurf.com/windsurf/mcp) for more info.```json{- "servers": {- "Context7": {- "type": "stdio",+ "mcpServers": {+ "context7": {"command": "npx","args": ["-y", "@upstash/context7-mcp@latest"]}@@ -123,23 +107,22 @@ Add this to your VSCode MCP config file. See [VSCode MCP docs](https://code.visu}```-<details>-<summary>Alternative: Use Deno (Enhanced Security)</summary>+### Install in VSCode++Add this to your VSCode MCP config file. See [VSCode MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more info.```json{"servers": {"Context7": {"type": "stdio",- "command": "deno",- "args": ["run", "--allow-net", "npm:@upstash/context7-mcp"]+ "command": "npx",+ "args": ["-y", "@upstash/context7-mcp@latest"]}}}```-</details>-### Available Tools- `resolve-library-id`: Resolves a general library name into a Context7-compatible library ID.