We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kscz0000/Zhiwen-Assistant-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# 设置编码为 UTF-8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$OutputEncoding = [System.Text.Encoding]::UTF8
Write-Host "==================================="
Write-Host "增强版MCP服务器部署脚本"
Write-Host "==================================="
Write-Host ""
# 1. 检查 Python
Write-Host "[1/5] 检查Python环境..."
try {
$pyVer = python --version 2>$null
if (-not $pyVer) { throw }
Write-Host "Python环境检查通过"
} catch {
Write-Host "错误: 未找到Python环境"
Read-Host "按回车退出"
exit 1
}
# 2. 检查依赖
Write-Host "[2/5] 检查依赖包..."
$pipList = pip show mcp 2>$null
if (-not $pipList) {
Write-Host "安装MCP依赖包..."
pip install mcp fastmcp pydantic pyyaml
if ($LASTEXITCODE -ne 0) {
Write-Host "错误: 依赖包安装失败"
Read-Host "按回车退出"
exit 1
}
}
Write-Host "依赖包检查通过"
# 3. 检查配置文件
Write-Host "[3/5] 检查配置文件..."
if (-not (Test-Path "mcp_config.yaml")) {
Write-Host "错误: 配置文件mcp_config.yaml不存在"
Read-Host "按回车退出"
exit 1
}
Write-Host "配置文件检查通过"
# 4. 运行集成测试
Write-Host "[4/5] 运行集成测试..."
python test_integration.py
if ($LASTEXITCODE -ne 0) {
Write-Host "错误: 集成测试失败"
Read-Host "按回车退出"
exit 1
}
Write-Host "集成测试通过"
# 5. 启动服务器
Write-Host "[5/5] 启动增强版MCP服务器..."
Write-Host ""
Write-Host "服务器启动中,请等待..."
Write-Host ""
python enhanced_folder_docs_mcp.py
if ($LASTEXITCODE -ne 0) {
Write-Host "错误: 服务器启动失败"
Read-Host "按回车退出"
exit 1
}
Write-Host ""
Write-Host "服务器已停止"
Read-Host "按回车退出"