---
title: "Groundsocial MCP in VS Code (GitHub Copilot)"
description: "Add Groundsocial to GitHub Copilot in VS Code with `.mcp.json`, and keep under the 128-tool limit with the platforms filter."
canonical_url: https://groundsocial.dev/mcp/vscode
---
# Groundsocial MCP in VS Code (GitHub Copilot)

> Add Groundsocial to GitHub Copilot in VS Code with `.mcp.json`, and keep under the 128-tool limit with the platforms filter.

Groundsocial’s hosted MCP server is `https://api.groundsocial.dev/mcp` (Streamable HTTP). It signs in with OAuth or takes your API key as a Bearer token. [Get a key](https://groundsocial.dev/app/sign-in?new=1) if you want one: it starts with `gs_live_` and comes with free credits.

## Set it up in VS Code (GitHub Copilot)

Copilot reads `mcpServers` from `.mcp.json` in the workspace root, or from `~/.copilot/mcp-config.json` for every workspace. Add:

```json
{
  "mcpServers": {
    "groundsocial": {
      "type": "http",
      "url": "https://api.groundsocial.dev/mcp?platforms=reddit,youtube,hackernews",
      "headers": {
        "Authorization": "Bearer ${GROUNDSOCIAL_API_KEY}"
      },
      "tools": [
        "*"
      ]
    }
  }
}
```

Write the variable with braces: `${NAME}`. VS Code treats a bare `$NAME` as literal text. Run **MCP: List Servers** from the Command Palette to start it and see its state.

Still on the editor-managed `.vscode/mcp.json`? It uses `servers` and can prompt for the key once instead of reading the environment. VS Code’s docs say this Local harness is deprecated and will be removed in February 2027:

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "groundsocial-key",
      "description": "Groundsocial API key",
      "password": true
    }
  ],
  "servers": {
    "groundsocial": {
      "type": "http",
      "url": "https://api.groundsocial.dev/mcp?platforms=reddit,youtube,hackernews",
      "headers": {
        "Authorization": "Bearer ${input:groundsocial-key}"
      }
    }
  }
}
```

## Add your API key

Leave `headers` out and VS Code runs the MCP sign-in in the browser instead. Never put a literal key in a file you commit.

## Load fewer tools

The full server lists 593 tools, one per endpoint. VS Code (GitHub Copilot) loads every tool’s schema up front, so connect only the platforms you use: add `?platforms=` with ids from [the platform list](https://api.groundsocial.dev/v1/platforms), comma-separated.

```text
https://api.groundsocial.dev/mcp?platforms=reddit,youtube,hackernews
```

That URL lists 67 tools: Reddit, YouTube and Hacker News plus the free helpers (`list_endpoints`, `estimate_cost`, `account_balance`, `agent_signup`). OAuth sign-in and keys work the same with or without the filter.

A Local harness request can carry at most 128 tools; past that it fails with “Cannot have more than 128 tools per request”. Keep the URL filtered, and in Chat use **Configure Tools** to deselect what you don’t need. After changing the filter, run **MCP: Reset Cached Tools**.

## First prompt to try

> “Use the groundsocial tools to pull the latest 25 posts on r/vscode, group them by topic, and list the extensions people recommend most.”

- “Before you start, use estimate_cost and tell me what this will cost.”
- “Search Reddit, Hacker News and YouTube for what developers say about Bun in 2026, and give me the three strongest arguments for and against.”
- “Get the 25 newest posts on r/startups and table them: title, score, comments, one-line summary.”

## Troubleshooting

### “Cannot have more than 128 tools per request”

Filter the server with `?platforms=` and deselect tools in **Configure Tools**.

### Old tools still show after I changed the URL

Run **MCP: Reset Cached Tools**.

### The key is sent as the literal text ${GROUNDSOCIAL_API_KEY}

The variable is not set in the environment VS Code started in. Launch it with `code .` from a terminal where it is set.

Check what the server lists without a key: `curl -s https://api.groundsocial.dev/mcp -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'`. Every error says what to do next; codes are in [Errors](https://groundsocial.dev/docs/errors).

## Sources

- [VS Code docs: MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration)
- [VS Code docs: Use tools in chat (128-tool limit)](https://code.visualstudio.com/docs/agents/run/tools)
- [VS Code docs: Add and manage MCP servers](https://code.visualstudio.com/docs/copilot/customization/mcp-servers)

Checked 27 Nov 2026. Follow the links for the latest.

Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.

_Canonical HTML: https://groundsocial.dev/mcp/vscode_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [For agents](https://groundsocial.dev/agents.md)
- [MCP setup for every client](https://groundsocial.dev/mcp.md)
- [Groundsocial MCP in Claude Code](https://groundsocial.dev/mcp/claude-code.md)
- [Groundsocial MCP in Claude Desktop and Claude.ai](https://groundsocial.dev/mcp/claude-desktop.md)
- [Groundsocial MCP in Cursor](https://groundsocial.dev/mcp/cursor.md)
- [Groundsocial MCP in Windsurf (Devin Desktop)](https://groundsocial.dev/mcp/windsurf.md)
- [Groundsocial MCP in Cline](https://groundsocial.dev/mcp/cline.md)
- [Groundsocial MCP in Zed](https://groundsocial.dev/mcp/zed.md)
- [Groundsocial MCP in ChatGPT](https://groundsocial.dev/mcp/chatgpt.md)
- [Groundsocial MCP in Gemini CLI](https://groundsocial.dev/mcp/gemini-cli.md)
- [Groundsocial MCP in Codex CLI](https://groundsocial.dev/mcp/codex-cli.md)
- [Groundsocial MCP in Goose](https://groundsocial.dev/mcp/goose.md)
- [Groundsocial MCP in LibreChat](https://groundsocial.dev/mcp/librechat.md)
- [Groundsocial MCP in n8n](https://groundsocial.dev/mcp/n8n.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"MCP setup","item":"https://groundsocial.dev/mcp"},{"@type":"ListItem","position":3,"name":"Groundsocial MCP in VS Code (GitHub Copilot)","item":"https://groundsocial.dev/mcp/vscode"}]}
```
