SM

shannonlal/mcp-postman

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

84 stars 19 forks Качество 78 Тренд 22MIT

shannonlal/mcp-postman - кандидат на сервер MCP, импортированный из https://github.com/shannonlal/mcp-postman.

Обзор

shannonlal/mcp-postman - кандидат на сервер MCP, импортированный из https://github.com/shannonlal/mcp-postman.

Обзор (машинный перевод)

Сервер MCP (Model Context Protocol), который позволяет запускать коллекции Postman с помощью Newman. Этот сервер позволяет LLM выполнять тесты API и получать подробные результаты через стандартизированный интерфейс.

##Список агентов

Особенности

Запускайте коллекции Postman с помощью Newman Поддержка файлов окружающей среды Поддержка глобальных переменных

  • Детальные результаты испытаний, включая: Общий успех/неудача
  • Резюме теста (полное, пройденное, неудачное) Подробная информация о сбоях
  • Время исполнения

##Установка

###Установка через Smithery

Для автоматической установки Postman Runner для Claude Desktop через Smithery:

Ручная установка

Использование

Конфигурация

Добавьте сервер в файл конфигурации рабочего стола Claude по адресу ~/Library/Application Support/Claude/claude_desktop_config.json:

Доступные инструменты

Коллекция

Запускает коллекцию Почтальона и возвращает результаты теста.

Параметры:

collection (обязательно): Путь или URL к коллекции Postman

  • [[Т2]] (факультативно): Путь или URL в файле окружения
  • [[Т3]] (факультативно): Путь или URL в файл Globals
  • [[Т4]] (факультативно): Количество итераций для запуска

Пример ответа:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Postman MCP Server

An MCP (Model Context Protocol) server that enables running Postman collections using Newman. This server allows LLMs to execute API tests and get detailed results through a standardized interface.

AI Agent Listing

Features

  • Run Postman collections using Newman
  • Support for environment files
  • Support for global variables
  • Detailed test results including:
    • Overall success/failure status
    • Test summary (total, passed, failed)
    • Detailed failure information
    • Execution timings

Installation

Installing via Smithery

To install Postman Runner for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-postman --client claude

Manual Installation

# Clone the repository
git clone 
cd mcp-postman

# Install dependencies
pnpm install

# Build the project
pnpm build

Usage

Configuration

Add the server to your Claude desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "postman-runner": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-postman/build/index.js"]
    }
  }
}

Available Tools

run-collection

Runs a Postman collection and returns the test results.

Parameters:

  • collection (required): Path or URL to the Postman collection
  • environment (optional): Path or URL to environment file
  • globals (optional): Path or URL to globals file
  • iterationCount (optional): Number of iterations to run

Example Response:

{
  "success": true,
  "summary": {
    "total": 5,
    "failed": 0,
    "passed": 5
  },
  "failures": [],
  "timings": {
    "started": "2024-03-14T10:00:00.000Z",
    "completed": "2024-03-14T10:00:01.000Z",
    "duration": 1000
  }
}

Example Usage in Claude

You can use the server in Claude by asking it to run a Postman collection:

“Run the Postman collection at /path/to/collection.json and tell me if all tests passed”

Claude will:

  1. Use the run-collection tool
  2. Analyze the test results
  3. Provide a human-friendly summary of the execution

Development

Project Structure

src/
  ├── index.ts           # Entry point
  ├── server/
  │   ├── server.ts     # MCP Server implementation
  │   └── types.ts      # Type definitions
  └── newman/
Открыть полный README на GitHub

Установка

npx -y @smithery/cli install mcp-postman --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "postman-runner": { "command": "node", "args": ["/absolute/path/to/mcp-postman/build/index.js"] } } }