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つの認証方法だけを設定してください:

  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" } } } }