In the first post of this series, we explored what MCP resources are and why they're the overlooked piece of the MCP puzzle. Now it's time to get practical—let's dive into using resources in Visual Studio Code.
By the end of this post, you'll know how to discover, browse, attach, and leverage MCP resources to supercharge your AI-powered development workflow.
Understanding resources in VS Code
When an MCP server exposes resources, VS Code makes them accessible in several ways:
- Browse all resources across all installed servers
- Browse resources per server to see what each provides
- Attach resources to chat as context for your conversations with Copilot
- View resources directly in the editor
- Save resources from tool call results to your workspace
Think of resources as a context menu for your AI—a way to give Copilot exactly the information it needs without copy-pasting or explaining everything manually.
Setting up your first MCP server with resources
Let's start by installing an MCP server that provides resources. We'll use the GitHub MCP Server as our example because it's widely used and demonstrates several resource patterns.
Method 1: Install from the Extensions View
The easiest way to install an MCP server is through VS Code's built-in gallery:
- Open the Extensions view (
Ctrl+Shift+XorCmd+Shift+Xon Mac) - Type
@mcpin the search field - Find "GitHub MCP Server" and click Install
- VS Code will prompt you to trust the server—review the configuration and confirm
Method 2: Use the MCP: Add Server Command
Alternatively, you can use the command palette:
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "MCP: Add Server"
- Select your package manager (NPM, PyPI, or Docker)
- Enter the server details
- VS Code handles the rest!
Method 3: Manual Configuration
For team projects, you can share MCP server configurations using a workspace file:
- Create
.vscode/mcp.jsonin your workspace root - Add your server configuration:
- Save the file—VS Code will detect it and offer to start the server
Browsing resources: Your first look
Once you have an MCP server installed and running, let's explore its resources.
Browse resources
Open the command palette and run MCP: Browse Resources. This shows resources from all your installed MCP servers in one unified view.
You'll see:
- Resource names (human-readable descriptions)
- Resource URIs (unique identifiers like
github://repo/owner/name/readme) - Server attribution (which MCP server provides each resource)
Understanding resource templates
Some resources use templates—URIs with placeholders that let you provide parameters. For example:
github://repo/{owner}/{name}/file/{path}database://query/{table_name}
When you select a templated resource, VS Code prompts you for each parameter. This makes resources dynamic and flexible—you're not limited to pre-defined values.
Attaching resources to chat
Here's where resources become truly powerful. Instead of explaining context to Copilot, you attach it directly.
Using the Add Context Button
- Open GitHub Copilot Chat
- Click the Add Context button (the paperclip icon)
- Select MCP Resources…
- Choose the resource you want to attach
The resource content is now part of your conversation context. Copilot can reference it when answering questions or generating code.
What’s next?
In the next post, we'll level up by building our own MCP resource server from scratch. You'll learn:
- The anatomy of a resource server
- Implementing resources in C#
- Best practices for resource URIs and metadata
- Testing and debugging your server
Stay tuned!





