Skip to main content
Glama
zhangzhefang-github

MCP Add Server

MCP 서버 추가

간단한 add(a, b) 도구를 제공하는 최소 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 프로젝트는 MCP 서버 구현의 기본적인 예시입니다.

특징

  • 모델 컨텍스트 프로토콜을 준수하는 서버를 구현합니다.

  • 두 숫자의 합을 반환하는 add(a, b) 라는 단일 도구를 제공합니다.

Related MCP server: Basic Math MCP Server

필수 조건

  • Node.js(버전 18.xx 이상 권장)

  • npm(Node.js와 함께 제공)

설치

  1. 저장소를 복제합니다.

    지엑스피1

  2. 종속성 설치:

    npm install

용법

mcp-add-server 실행하는 방법에는 여러 가지가 있습니다.

1. npx 사용(대부분 사용자에게 권장):

Node.js와 npm이 설치되어 있다면 전역으로 복제하거나 설치하지 않고도 서버를 직접 실행할 수 있습니다.

npx mcp-add-server

이 명령은 mcp-add-server 의 최신 버전을 다운로드하고(아직 캐시되지 않은 경우) 실행합니다.

2. 복제된 저장소에서 실행:

저장소를 복제하고 종속성을 설치한 후( 설치 참조):

npm start

이는 package.json 에 정의된 start 스크립트를 사용합니다.

3. 글로벌 설치(자주 사용 또는 개발용):

패키지를 글로벌하게 설치할 수 있습니다:

npm install -g .  # From the cloned repository directory
# or once published to npm:
# npm install -g mcp-add-server

그러면 어떤 디렉토리에서나 실행할 수 있습니다.

mcp-add-server

4. 개발을 위한 로컬 링크: 프로젝트 루트 디렉터리에서 npm link 실행합니다. 이렇게 하면 mcp-add-server 명령이 전역적으로 사용 가능하게 되어 로컬 프로젝트 파일을 가리킵니다.

# In project directory
npm link

# Then, in any directory:
mcp-add-server

서버가 실행되면(사용하는 방법과 관계없이) MCP 클라이언트에서 사용할 수 있습니다.

예시 도구 호출(개념적)

MCP 클라이언트는 다음과 같이 add 도구를 호출할 수 있습니다(자세한 내용은 클라이언트 구현에 따라 다름).

{
  "tool_name": "add",
  "arguments": {
    "a": 5,
    "b": 3
  }
}

서버는 다음과 같이 응답합니다.

{
  "result": 8
}

테스트 실행

(테스트가 추가되면 여기에서 테스트 실행 방법을 설명합니다)

npm test

(현재 npm test "오류: 테스트를 지정하지 않았습니다"를 출력합니다. 테스트가 추가되면 package.json 의 test 스크립트를 업데이트하세요.)

프로젝트 구조

mcp-add-server/
├── .git/               # Git directory
├── .gitignore          # Specifies intentionally untracked files that Git should ignore
├── .cursor/            # Cursor specific files (if any)
├── node_modules/       # Project dependencies
├── src/                # Source code
│   └── server.js       # Main server logic
├── bin.js              # Executable for the server
├── LICENSE             # Project license
├── package-lock.json   # Records exact versions of dependencies
├── package.json        # Project metadata and dependencies
└── README.md           # This file

기여하다

기여를 환영합니다! 풀 리퀘스트를 제출하거나 이슈를 개설해 주세요.

특허

이 프로젝트는 MIT 라이선스 에 따라 라이선스가 부여되었습니다.

Available Tools

1 tool
addD
NameRequiredDescriptionDefault
aYes第一个加数
bYes第二个加数

TDQS

D1/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Tool has no description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness1/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Tool has no description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool has no description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Tool has no description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose1/5

Does the description clearly state what the tool does and how it differs from similar tools?

Tool has no description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Tool has no description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool update
    • First observedadd

TDQS

D1.7/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap with other tools. The single tool 'add' stands alone without any ambiguity in purpose.

Naming Consistency5/5

A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'add' is straightforward and follows a simple verb pattern.

Tool Count2/5

A single tool is generally too few for most server purposes, as it limits functionality and scope. Without a description, it's unclear if this minimal set is justified, but typically one tool feels thin and incomplete.

Completeness1/5

With only one tool and no description, it is impossible to assess coverage of any domain. The surface is severely incomplete, lacking any context or additional operations that might be expected for a coherent toolset.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    A simple server that provides basic mathematical operations (sum and subtraction) through the Model Context Protocol.
    2
    1
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.
    7 npm
    1
    MIT
  • F
    license
    B
    quality
    Not graded
    maintenance
    A minimal Model Context Protocol server that provides a simple tool for adding two integers. It serves as a demonstration of the official Python MCP SDK and is designed for local execution via stdio.
    1
    -