ice-cream-mcp
Copilot instructions1 starsChanged 17 months agoMITView on GitHub
- Install dependencies: yarn install - Build: yarn build - Run (stdio mode): yarn start - Debug in VS Code: Use .vscode/mcp.json for MCP client integration. - External SDK: Uses @modelcontextprotocol/sdk for MCP server and transport. - Schema validation: Uses zod for all input validation. - MCP Client Integration: The server is intended to be launched by MCP-compatible clients using the stdio transport.
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Use .vscode/mcp.json for MCP client integration.
- Distinctive: line 45
Single-tool demonstration: Only one tool is exposed to keep the example focused and educational
- Distinctive: line 47
Type-safe validation: All user input is validated using Zod schemas with detailed error messages
- Distinctive: line 49
Stateless design: No database or persistent storage - all logic is in-memory for simplicity
- Distinctive: line 76
Always validate input with Zod.
- Distinctive: line 78
Use descriptive tool names and input schema descriptions.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for Ice Cream Topping Recommender MCP Server
<!-- For more details, see https://aka.ms/vscode-instructions-docs -->Project Overview
- This is a demonstration repository showcasing how to build MCP servers with elicitation capabilities.
- It's a minimal Model Context Protocol (MCP) server written in TypeScript that serves as a learning resource.
- The main feature is a single tool:
ice_cream_topping_recommender, which demonstrates MCP elicitation (schema-driven user input). - This project highlights key MCP patterns: tool registration, input validation, error handling, and interactive user prompting.
- The server is designed for integration with MCP-compatible clients (e.g., Claude for Desktop, VS Code MCP extensions).
Architecture & Key Files
- Entry Point:
src/index.ts- Bootstraps the MCP server and handles startup errors
- Imports and instantiates the main
IceCreamMcpServerclass
- Main Server:
src/server/McpServer.ts- Implements the complete MCP server using low-level
Serverclass from the MCP SDK - Demonstrates proper tool registration, elicitation handling, and error management
- Uses modular tool architecture with
IceCreamToppingRecommenderToolclass
- Implements the complete MCP server using low-level
- Tool Architecture: Tools follow a consistent pattern:
getName(): Returns unique tool identifiergetDescription(): Provides human-readable descriptiongetInputSchema(): Defines Zod validation schemaexecute(args, elicitInput?): Main tool logic with optional elicitation support
- Configuration:
.vscode/mcp.json: VS Code MCP client integration configurationtsconfig.json: TypeScript compilation settings with ESM modulespackage.json: Dependencies and build scripts (Yarn preferred)
Developer Workflows
- Install dependencies:
yarn install - Build:
yarn build - Run (stdio mode):
yarn start - Debug in VS Code:
Use
.vscode/mcp.jsonfor MCP client integration.
Project Conventions
- Single-tool demonstration: Only one tool is exposed to keep the example focused and educational
- Elicitation showcase: The primary purpose is demonstrating interactive user input via MCP elicitation
- Type-safe validation: All user input is validated using Zod schemas with detailed error messages
- Stdio communication: Uses standard input/output transport, not HTTP, for MCP client integration
- Stateless design: No database or persistent storage - all logic is in-memory for simplicity
- Production patterns: Includes proper error handling, logging, and modular architecture despite being a demo
Integration Points
- External SDK:
Uses
@modelcontextprotocol/sdkfor MCP server and transport. - Schema validation:
Uses
zodfor all input validation. - MCP Client Integration: The server is intended to be launched by MCP-compatible clients using the stdio transport.
Example: Tool Registration
server.tool(
"ice_cream_topping_recommender",
"Recommends the best ice cream toppings based on your selected flavour.",
{ flavour: z.enum(["vanilla", "strawberry", "chocolate"]) },
async ({ flavour }) => {
/* ... */
}
);Key Patterns
- Always validate input with Zod.
- Return errors as
{ content: [{ type: "text", text: "..." }], isError: true }. - Use descriptive tool names and input schema descriptions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

