Skip to main content
Glama
ThuongHan

project-1

by ThuongHan

project-1

A minimal Model Context Protocol (MCP) server built with the @modelcontextprotocol/sdk, communicating over stdio.

Features

Tools

  • add_numbers — Adds two numbers together.

    • Inputs: a (number), b (number)

  • get_github_repo — Fetches and lists a GitHub user's repositories.

    • Inputs: username (string)

Resources

  • apartment_rules (rules:/all) — Returns the contents of src/data/rules.doc, a set of apartment rules (safety, noise control, cleanliness, etc.) stored as plain text.

Prompts

  • explain_sql — Generates a prompt asking for a detailed, plain-English explanation of a given SQL query.

    • Inputs: sql (string)

Related MCP server: mcp

Requirements

  • Node.js

  • npm

Installation

npm install

Build

Compiles TypeScript (src/) to JavaScript (build/):

npm run build

Running

After building, run the server directly:

node build/index.js

The server communicates over stdio, so it's intended to be launched by an MCP client (e.g. Claude Desktop, an IDE extension, or another MCP-compatible host) rather than run standalone.

Project Structure

src/
  index.ts        # Server setup: tools, resources, and prompts
  data/
    rules.doc      # Data backing the apartment_rules resource
build/             # Compiled output (generated by `npm run build`)

Configuration

  • TypeScript: targets ES2022 with NodeNext modules/resolution and strict mode enabled (see tsconfig.json).

  • Formatting: Prettier is configured to use tabs with a width of 4 (see .prettierrc).

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that enables web searching, URL content extraction, and summarization without requiring API keys. It also provides advanced mathematical evaluation and multi-language Wikipedia summary retrieval tools.
    5
    362 npm
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides MCP servers for GitHub API operations and SQL database queries, enabling users to interact with GitHub repositories and databases through natural language.
    3
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A multi-tool MCP server that summarizes YouTube transcripts, provides transcript statistics, offers health checks, and suggests git commit messages based on changes.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    An experimental MCP server offering calculator, GitHub repository fetching, a movie database resource, and JavaScript code review capabilities. Designed for learning and compatible with Cursor and Claude Desktop.
    681 npm
    1
    MIT