Peacock Mcp
@johnpapa
MCP Server for the Peacock extension for VS Code, coloring your world, one Code editor at a time. The main goal of the project is to show how an MCP server can be used to interact with APIs.
Overview
What is Peacock Mcp?
Peacock Mcp is a Model Context Protocol server for the Peacock VS Code extension. It fetches documentation from the official Peacock repository and answers questions based on that documentation. It is designed to demonstrate how an MCP server can interact with APIs.
How to use Peacock Mcp?
Install via npx -y @johnpapa/peacock-mcp or Docker. Configure it in VS Code by adding a server entry in user settings JSON (mcp.servers.peacock-mcp) or in a .vscode/mcp.json file. After configuration, open GitHub Copilot in Agent mode, refresh tools, and use the fetch_peacock_docs tool by asking a question about Peacock.
Key features of Peacock Mcp
- Fetches Peacock VS Code extension documentation.
- Answers user questions based on that documentation.
- Integrates with GitHub Copilot Agent mode.
- Can be run locally with MCP Inspector for testing.
- Installable via npm, Docker, or Smithery.
Use cases of Peacock Mcp
- Ask "How do I set my VS Code accent colors?" and get an answer from Peacock docs.
- Inquire about any Peacock feature while coding without leaving the editor.
- Explore how MCP servers expose tool-based APIs for documentation retrieval.
- Test and debug MCP server interactions using MCP Inspector.
FAQ from Peacock Mcp
What tool does Peacock Mcp provide?
It provides a single tool called fetch_peacock_docs that takes a prompt (user question) and returns an answer based on Peacock documentation.
What runtime is required?
Node.js version 20 or higher is required.
Where does the data used by Peacock Mcp come from?
All data is fetched from the official Peacock documentation at https://peacockcode.dev.
How can I install Peacock Mcp in VS Code?
You can install it by adding a server entry in VS Code user settings JSON or in a .vscode/mcp.json file, using the command npx -y @johnpapa/peacock-mcp. Pre-built install buttons for VS Code Stable and Insiders are also available.
Can I test Peacock Mcp locally?
Yes. Clone the repository, run npm install && npm build, then start the MCP Inspector with npx @modelcontextprotocol/inspector node build/index.js.