drio
Open app

Learning about MCP

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Server Learning is a project focused on understanding and implementing the Model Context Protocol (MCP) for server-client interactions.

To use this project, you need to implement the sampling and roots functionalities as outlined in the documentation. You can deploy the server using either STDIO or SSE transport methods.

  • Implementation of transport methods (STDIO and SSE) for server-client communication. - Core primitives like Resources, Prompts, Tools, Sampling, and Roots to enhance server functionality. - Learning opportunity to write a server using Node.js without relying on external frameworks.
  1. Building a server that can handle various data resources for user queries.
  2. Creating a system that utilizes predefined prompts for user interactions.
  3. Developing tools that allow LLMs to perform actions on behalf of users.

Add to your AI client

Use these steps to connect Learning about MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-learning-wojciechmatuszewski": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-learning-wojciechmatuszewski"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-learning-wojciechmatuszewski": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-learning-wojciechmatuszewski"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-learning-wojciechmatuszewski": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-learning-wojciechmatuszewski"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-learning-wojciechmatuszewski": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-learning-wojciechmatuszewski"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-learning-wojciechmatuszewski": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-learning-wojciechmatuszewski"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-learning-wojciechmatuszewski": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-learning-wojciechmatuszewski"
      ]
    }
  }
}

FAQ

What are the transport methods available?

The project supports STDIO and SSE transport methods for server-client communication.

Can I use frameworks like Fastify?

While Fastify was considered, the project focuses on using Node.js directly for learning purposes.

What are the core primitives in MCP?

Core primitives include Resources, Prompts, Tools, Sampling, and Roots, each serving a specific function in the server architecture.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2984,"uuid":"cbbeaf3f-c3a4-400a-8a8c-3a57c0a4438b","name":"mcp-server-learning","title":"Learning about MCP","description":"","avatar_url":"https://avatars.githubusercontent.com/u/26322927?v=4","created_at":"2025-03-16T11:44:42.297Z","updated_at":"2025-03-16T12:45:53.326Z","status":"created","author_name":"WojciechMatuszewski","author_avatar_url":"https://avatars.githubusercontent.com/u/26322927?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/WojciechMatuszewski/mcp-server-learning","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-22 05:59:12\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]