MCP Tally治理API服务器添加福利群:解决AI开发者的「MCP实战痛点」一个用于与Tally API交互的模型上下文协议(MCP)服务器。该服务器允许AI代理获取关于DAO的信息,包括其治理数据、提案和元数据。
# Clone the repository
git clone https://github.com/yourusername/mpc-tally-api-server.git
cd mpc-tally-api-server
# Install dependencies
bun install
# Build the project
bun run build

.env文件:TALLY_API_KEY=your_api_key_here
⚠️ 安全提示:请妥善保管您的API密钥:
.env文件提交到版本控制系统# Start the server
bun run start
# Development mode with auto-reload
bun run dev

向您的Claude桌面配置中添加以下内容:
{
"tally": {
"command": "node",
"args": [
"/path/to/mpc-tally-api-server/build/index.js"
],
"env": {
"TALLY_API_KEY": "your_api_key_here"
}
}
}

bun run clean - 清理构建目录bun run build - 构建项目bun run start - 运行已构建的服务器bun run dev - 以开发模式运行并启用自动重载bun test - 运行测试bun test --watch - 以监视模式运行测试bun test --coverage - 运行带有覆盖率报告的测试服务器公开了以下MCP函数:
按指定条件排序后列出DAO。
参数:
limit (可选): 返回的最大DAO数量 (默认: 20, 最大: 50)afterCursor (可选): 分页游标sortBy (可选): 如何对DAO进行排序 (默认: popular)
MIT