agentleFS
nickperkinsnickperkins/ice-cream-mcp/.github/copilot-instructions.md

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
  1. Very specific:

    Use .vscode/mcp.json for MCP client integration.

    line 41
  2. Distinctive:

    Single-tool demonstration: Only one tool is exposed to keep the example focused and educational

    line 45
  3. Distinctive:

    Type-safe validation: All user input is validated using Zod schemas with detailed error messages

    line 47
  4. Distinctive:

    Stateless design: No database or persistent storage - all logic is in-memory for simplicity

    line 49
  5. Distinctive:

    Always validate input with Zod.

    line 76
  6. Distinctive:

    Use descriptive tool names and input schema descriptions.

    line 78

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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 IceCreamMcpServer class
  • Main Server: src/server/McpServer.ts
    • Implements the complete MCP server using low-level Server class from the MCP SDK
    • Demonstrates proper tool registration, elicitation handling, and error management
    • Uses modular tool architecture with IceCreamToppingRecommenderTool class
  • Tool Architecture: Tools follow a consistent pattern:
    • getName(): Returns unique tool identifier
    • getDescription(): Provides human-readable description
    • getInputSchema(): Defines Zod validation schema
    • execute(args, elicitInput?): Main tool logic with optional elicitation support
  • Configuration:
    • .vscode/mcp.json: VS Code MCP client integration configuration
    • tsconfig.json: TypeScript compilation settings with ESM modules
    • package.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.json for 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/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.

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.