HP

hemanth/paws-on-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

326 stars 19 forks 质量 45 趋势 19

一个全面的模型上下文协议(MCP)服务器,实现了最新的规范。

概览

一个全面的模型上下文协议(MCP)服务器,实现了最新的 。展示了包括工具、资源、提示、根以及基于模型偏好的增强采样功能在内的 MCP 功能。功能包括 HackerNews 和 GitHub API 集成,通过先进的 MCP 采样实现 AI 驱动的分析。 - - 所有工具均正常工作,包括增强采样 - - 所有资源均正常工作 - - 所有提示模板均正常工作 - - 完整MCP 2025-03-26规范支持 - - 模型偏好和上下文感知采样功能正常 - - 框架并发限制(功能正常,测试基础设施问题)- - 负载测试下的服务器并发约束 核心MCP功能完全可运行并准备上线。 服务器将在http://127.0.0.1:8000/mcp/启动,并发布以下启动消息: 使用增强型CLI客户端测试所有MCP功能: 1. - 搜索HackerNews故事 2.- 获取GitHub仓库详情 3.

概述(AI 翻译)

一台全面的模型上下文协议(MCP)服务器,实现了最新的 MCP 2025-03-26 规范。展示包括工具、资源、提示、根源以及基于模型偏好的增强采样功能的 MCP 功能。功能 HackerNews 和 GitHub API 集成,通过先进的 MCP 抽样实现 AI 驱动的分析。

🎯 当前状态

** ✅ 生产准备核心功能(3/5测试套件通过)**

  • MCP 工具(9/9) - 所有工具均完美运行,包括增强采样
  • MCP 资源(15/15) - 所有资源运行良好
  • MCP 提示词(14/14) - 所有提示模板均完美运行
  • MCP 协议合规 - 完整支持 MCP 2025-03-26 规范
  • 增强抽样 - 模型偏好和上下文感知抽样的有效性

** ⚠️ 已知的限制**

  • MCP Roots - 框架并发限制(功能正常,测试基础设施问题)
  • 增强采样测试 - 负载测试下的服务器并发约束

核心MCP功能已完全投入运行并准备生产。

📁 项目结构

🚀 快速入门

安装

安装MCP SDK及其依赖:

运行服务器

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Paws-on-MCP: Unified MCP Server Implementation 🐾

A comprehensive Model Context Protocol (MCP) server implementing the latest MCP 2025-03-26 specification. Demonstrates MCP capabilities including tools, resources, prompts, roots, and enhanced sampling with model preferences. Features HackerNews and GitHub API integrations with AI-powered analysis through advanced MCP sampling.

🎯 Current Status

✅ Production-Ready Core Features (3/5 test suites passing)

  • MCP Tools (9/9) - All tools working perfectly including enhanced sampling
  • MCP Resources (15/15) - All resources working perfectly
  • MCP Prompts (14/14) - All prompt templates working perfectly
  • MCP Protocol Compliance - Full MCP 2025-03-26 specification support
  • Enhanced Sampling - Model preferences and context-aware sampling working

⚠️ Known Limitations

  • MCP Roots - Framework concurrency limitations (functionality works, test infrastructure issues)
  • Enhanced Sampling Tests - Server concurrency constraints under load testing

The core MCP functionality is fully operational and production-ready.

📁 Project Structure

paws-on-mcp/
├── src/                      # Source code
│   ├── mcp_server.py         # Main MCP server (MCP 2025-03-26)
│   └── mcp_cli_client.py     # CLI client for testing
├── tests/                    # Comprehensive test suite
│   ├── run_tests.py          # Complete test runner
│   ├── test_mcp_tools.py     # Tools functionality tests
│   ├── test_mcp_resources.py # Resources tests  
│   ├── test_mcp_prompts.py   # Prompts tests
│   ├── test_mcp_roots.py     # Roots tests (MCP 2025-03-26)
│   └── test_enhanced_sampling.py # Enhanced sampling tests
├── docs/                     # Documentation
│   ├── architecture.md       # Technical architecture
│   ├── blog.md              # Development insights  
│   └── CLI_README.md         # CLI usage guide
├── requirements.txt          # Python dependencies
└── README.md                 # This file

Installation

Install the MCP SDK and dependencies:

# Using pip
pip install -r requirements.txt

Running the Server

Start the comprehensive MCP server:

cd src
python mcp_server.py

The server will start on http://127.0.0.1:8000/mcp/ with the following startup message:

🚀 Starting Unified MCP Server on http://127.0.0.1:8000/mcp/
📋 Available features:
   • HackerNews integration (resources & tools)
   • GitHub repository discovery
   • Server-side sampling with roots capability
   • Tech trends analysis prompts
💡 Use Ctrl+C to stop the server

Comprehensive Testing

Run the complete test suite:

# Run all organized tests
cd tests
python run_tests.py

Expected Test Results:

============================================================
📊 COMPREHENSIVE TEST RESULTS SUMMARY
============================================================
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →