DM

dkmaker/mcp-rest-api

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

103 stars 20 forks 품질 72 트렌드 15MIT

dkmaker/mcp-rest-API는 https://github.com/dkmaker/mcp-rest-api.에서 가져온 MCP 서버 후보입니다.

개요

dkmaker/mcp-rest-API는 https://github.com/dkmaker/mcp-rest-api.에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

Claude, Cline 및 기타 MCP 클라이언트를 통해 REST API를 테스트할 수 있는 TypeScript 기반 MCP 서버입니다. 이 도구는 개발 환경에서 직접 모든 REST API 엔드포인트를 테스트하고 상호작용할 수 있게 해줍니다.

설치

패키지를 전역적으로 설치하세요:

구성

클라인 맞춤 지침

Cline이 이 도구를 효과적으로 사용하는 방법을 이해하도록 하기 위해, Cline 맞춤 지침(설정 > 맞춤 지침)에 다음 내용을 추가하세요:

MCP 서버 구성

이 지침들은 Cline용이지만, 서버는 어떤 MCP 구현에서도 작동해야 합니다. 운영체제에 따라 구성하세요:

창문

⚠️ 중요: Windows 경로 해결 문제(문제 #40)로 인해 %APPDATA% 대신 전체 경로를 사용해야 합니다.

C:\Users\ \AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json에 추가:

macOS

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json에 추가:

참고: 환경 변수를 실제 값으로 교체하세요. 한 번에 한 가지 인증 방법만 설정하세요:

  1. 기본 인증(사용자 이름/비밀번호)

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP REST API Tester

A TypeScript-based MCP server that enables testing of REST APIs through Claude, Cline and other MCP clients. This tool allows you to test and interact with any REST API endpoints directly from your development environment.

Installation

Install the package globally:

npm install -g dkmaker-mcp-rest-api

Configuration

Cline Custom Instructions

To ensure Cline understands how to effectively use this tool, add the following to your Cline custom instructions (Settings > Custom Instructions):

# REST API Testing Instructions

The `test_request` tool enables testing, debugging, and interacting with REST API endpoints. The tool provides comprehensive request/response information and handles authentication automatically.

## When to Use

- Testing specific API endpoints
- Debugging API responses
- Verifying API functionality
- Checking response times
- Validating request/response formats
- Testing local development servers
- Testing API sequences
- Verifying error handling

## Key Features

- Supports GET, POST, PUT, DELETE, PATCH methods
- Handles authentication (Basic, Bearer, API Key)
- Normalizes endpoints automatically
- Provides detailed response information
- Configurable SSL verification and response limits

## Resources

The following resources provide detailed documentation:

- examples: Usage examples and common patterns
- response-format: Response structure and fields
- config: Configuration options and setup guide

Access these resources to understand usage, response formats, and configuration options.

## Important Notes

- Review API implementation for expected behavior
- Handle sensitive data appropriately
- Consider rate limits and API constraints
- Restart server after configuration changes

MCP Server Configuration

While these instructions are for Cline, the server should work with any MCP implementation. Configure based on your operating system:

Windows

⚠️ IMPORTANT: Due to a known issue with Windows path resolution (issue #40), you must use the full path instead of %APPDATA%.

Add to C:\Users\\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json:

{
  "mcpServers": {
    "rest-api": {
      "command": "node",
      "args": [
        "C:/Users//AppData/Roaming/npm/node_modules/dkmaker-mcp-rest-api/build/index.js"
      ],
      "env": {
GitHub에서 전체 README 보기

설치

npx -y dkmaker-mcp-rest-api
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "rest-api": { "command": "node", "args": [ "C:/Users/<YourUsername>/AppData/Roaming/npm/node_modules/dkmaker-mcp-rest-api/build/index.js" ], "env": { "REST_BASE_URL": "https://api.example.com", // Basic Auth "AUTH_BASIC_USERNAME": "your-username", "AUTH_BASIC_PASSWORD": "your-password", // OR Bearer Token "AUTH_BEARER": "your-token", // OR API Key "AUTH_APIKEY_HEADER_NAME": "X-API-Key", "AUTH_APIKEY_VALUE": "your-api-key", // SSL Verification (enabled by default) "REST_ENABLE_SSL_VERIFY": "false", // Set to false to disable SSL verification for self-signed certificates // Response Size Limit (optional, defaults to 10000 bytes) "REST_RESPONSE_SIZE_LIMIT": "10000", // Maximum response size in bytes // Custom Headers (optional) "HEADER_X-API-Version": "2.0", "HEADER_Custom-Client": "my-client", "HEADER_Accept": "application/json" } } } }