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
종속성 설치:
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-server4. 개발을 위한 로컬 링크: 프로젝트 루트 디렉터리에서 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 라이선스 에 따라 라이선스가 부여되었습니다.
Maintenance
Tools
- addD
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA minimal example server implementing the Model Context Protocol, providing addition and multiplication tools for learning and experimentation with MCP clients.1
- FlicenseBqualityDmaintenanceA simple server that provides basic mathematical operations (sum and subtraction) through the Model Context Protocol.21
- AlicenseNot gradedqualityDmaintenanceA minimal, production-ready MCP server with a simple addition calculator tool that demonstrates integration with the Model Context Protocol.101MIT
- FlicenseBqualityNot gradedmaintenanceA 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
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhangzhefang-github/mcp-add-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server