Skip to main content
Glama

MCP Demo Server

by keosu
run_tests_demo.ps11.92 kB
# MCP 演示项目 - 测试脚本选择器 Write-Host "==========================================" -ForegroundColor Green Write-Host "🧪 MCP 演示项目 - 选择测试版本" -ForegroundColor Green Write-Host "==========================================" -ForegroundColor Green Write-Host "" Write-Host "📋 可用测试:" -ForegroundColor Yellow Write-Host " 1. FastAPI版本测试 - HTTP API测试" -ForegroundColor White Write-Host " 🔧 测试内容: RESTful API、工具调用、资源访问" -ForegroundColor Gray Write-Host " 📊 结果展示: HTTP响应、JSON数据" -ForegroundColor Gray Write-Host "" Write-Host " 2. MCP SDK版本测试 - 真正的MCP协议测试" -ForegroundColor White Write-Host " 🚀 测试内容: MCP协议、STDIO通信、工具和资源" -ForegroundColor Gray Write-Host " 📊 结果展示: MCP消息、协议验证" -ForegroundColor Gray Write-Host "" $choice = Read-Host "请选择测试版本 (1 或 2)" switch ($choice) { "1" { Write-Host "" Write-Host "🔧 运行 FastAPI 版本测试..." -ForegroundColor Cyan Write-Host "确保 FastAPI 服务器已启动在 http://localhost:8000" -ForegroundColor Yellow Write-Host "正在进入 mcp_fastapi_demo 目录..." -ForegroundColor Yellow Set-Location "mcp_fastapi_demo" & ".\test_with_venv.ps1" break } "2" { Write-Host "" Write-Host "🚀 运行 MCP SDK 版本测试..." -ForegroundColor Cyan Write-Host "此测试会自动启动MCP服务器并连接测试" -ForegroundColor Yellow Write-Host "正在进入 mcp_sdk_demo 目录..." -ForegroundColor Yellow Set-Location "mcp_sdk_demo" & ".\test_mcp_sdk.ps1" break } default { Write-Host "" Write-Host "❌ 无效选择,请输入 1 或 2" -ForegroundColor Red Read-Host "按回车键退出" } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/keosu/mcpdemo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server