mcp-test

mcp-test

3.3

This document provides a guide to testing the interaction between a sample MCP Server and Claude Desktop (MCP Client).

The MCP-Test is designed to facilitate the testing of interactions between a sample Model Context Protocol (MCP) Server and the Claude Desktop MCP Client. It involves setting up a server using the Fastmcp library and executing a series of test cases to ensure proper functionality. The process includes installing necessary packages, configuring the environment, and running scripts to generate configuration files and execute the server. The test cases involve using a PDF-based RAG (Retrieval-Augmented Generation) implementation to handle semantic search queries. The results are verified through the Claude Desktop application, ensuring that the server responds correctly to client queries.

Features

  • Integration with Claude Desktop for MCP client-server interaction testing.
  • Utilizes Fastmcp for easy server setup and management.
  • Includes a PDF-specific RAG implementation for handling document-based queries.
  • Automated configuration file generation for streamlined server setup.
  • Semantic search capabilities with markdown response formatting.

Usage with Different Platforms

fastmcp_installation

shell
pip install -r requirements.txt

mcp_server_execution

shell
python case1/auto_mcp_json.py

claude_desktop_execution

shell
open -a Claude