mlc_mcptester

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT

README

MCP-Tester

Ein Command-Line Tool zum Testen, Debuggen und Validieren von Model Context Protocol (MCP) Servern.

English Version

Kern-Features

  • Multi-Transport: Unterstützt lokale Prozesse (stdio) und Remote-Server (sse).
  • Full Spec Support: Testet Tools, Resources (statisch & Templates) sowie Prompts.
  • Scripting Engine: Automatisierte Test-Abläufe mit Variablen, Typ-Konvertierung und Assertions.
  • Server Inspector: Analysiert Server auf Best Practices und gibt einen Quality-Score aus.
  • Raw Mode: Umgeht SDK-Validierungen für tiefgreifendes Debugging.
  • Profile: Einfache Verwaltung verschiedener Server in einer mcp-tester.yml.

Der "Everything" Test-Server

Im Projekt ist ein Referenz-Server (cmd/test-server) enthalten, der alle Möglichkeiten des MCP-Protokolls ausschöpft (Tools, Resources, Prompts, Logging, Progress, Output-Schemata).


Benutzung

1. Installation

Über Curl (Linux/macOS):

curl -sSL https://raw.githubusercontent.com/hmsoft0815/mlc_mcptester/main/scripts/install.sh | bash

Direkter Download: Vorkompilierte Binaries für Windows, macOS und Linux sowie .deb und .rpm Pakete finden Sie unter Releases.

Manueller Build:

task all            # Baut den Tester und Referenz-Server in den bin/ Ordner
2. Kommandos
Server Inspektion (NEU)

Analysiere einen Server auf Qualität (Metadaten, Prompts, Struktur):

./bin/mcp-tester inspect --profile local
Tools & Resources
./bin/mcp-tester list --profile local
./bin/mcp-tester call add --args '{"a": 1, "b": 2}' --profile local
./bin/mcp-tester resources read "mcp://time" --profile local
Test-Skripte (Automatisierung)

Führe komplexe Test-Szenarien aus:

./bin/mcp-tester test --script tests/03_variables_and_math.mcp --profile local

Dokumentation


Lizenz


Copyright Michael Lechner - 2026-02-28

Directories

Path Synopsis
cmd
mcp-tester command
Package main is the entry point for the mcp-tester CLI.
Package main is the entry point for the mcp-tester CLI.
test-server command
internal
scripting
Package scripting provides a simple script runner for testing MCP tools.
Package scripting provides a simple script runner for testing MCP tools.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL