How To Set Up Context7 MCP Server in VS Code
This is a short guide on how to get the Context7 MCP server in VS Code to run
Flo
Necessary steps
- Go to the Context7 dashboard
- Create an account
- Create an API key and copy it
- Go to VS Code (where a agent like GitHub Copilot has to be already preinstalled)
- Set the agent in the chat view to agent mode
- Create a .vscode folder
- Create a mcp.json file
- Use the necessary configuraton of the documentation
- Insert your API key
- Click on Start in the mcp.json file where your MCP server is defined
- Important: In my case a Pylance MCP server (maybe from the Pylance extension) blocked the Context7 MCP server. If this is the case for you, please disable the Pylance extension!
- Prompt the agent with a question and add ‘use context7’
You Might Also Like
Ctrl+V: Stuff Worth Sharing #001
This week's episode of SWS contains articles on how to post on Substack, a Lex Fridman podcast episode with Pieter Levels and a tool to visualise JSON files.
#vscode
Workaround To Use Two Different GitHub Accounts In VS Code
How to use two different GitHub Accounts in VS Code
#vscode
Bug: VS Code Todo Tree Not Finding Ripgrep
No todos found anymore after the update to VS Code 1.122.0
#vscode