Tally投票
STDIO用于获取DAO治理数据的Tally API服务器
用于获取DAO治理数据的Tally API服务器
A Model Context Protocol (MCP) server for interacting with the Tally API. This server allows AI agents to fetch information about DAOs, including their governance data, proposals, and metadata.
# 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 file in the root directory:TALLY_API_KEY=your_api_key_here
⚠️ Security Note: Keep your API key secure:
.env file# Start the server bun run start # Development mode with auto-reload bun run dev
Add the following to your Claude Desktop configuration:
{ "tally": { "command": "node", "args": [ "/path/to/mpc-tally-api-server/build/index.js" ], "env": { "TALLY_API_KEY": "your_api_key_here" } } }
bun run clean - Clean the build directorybun run build - Build the projectbun run start - Run the built serverbun run dev - Run in development mode with auto-reloadbun test - Run testsbun test --watch - Run tests in watch modebun test --coverage - Run tests with coverageThe server exposes the following MCP functions:
Lists DAOs sorted by specified criteria.
Parameters:
limit (optional): Maximum number of DAOs to return (default: 20, max: 50)afterCursor (optional): Cursor for paginationsortBy (optional): How to sort the DAOs (default: popular)
MIT