MPC Tally API Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used as the underlying technology for building the API server that interacts with the Tally API

  • Used as the programming language for building the MCP server that interacts with the Tally API

MPC Tally API 服务器

用于与 Tally API 交互的模型上下文协议 (MCP) 服务器。该服务器允许 AI 代理获取有关 DAO 的信息,包括其治理数据、提案和元数据。

特征

  • 按受欢迎程度或探索状态排序列出 DAO
  • 获取包括社交链接和治理信息在内的综合 DAO 元数据
  • 用于处理大量结果集的分页支持
  • 使用 TypeScript 和 GraphQL 构建
  • 使用 Bun 的测试运行器进行全面测试覆盖

安装

# 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

配置

  1. 在根目录中创建一个.env文件:
TALLY_API_KEY=your_api_key_here
  1. Tally获取您的 API 密钥

⚠️安全注意事项:确保您的 API 密钥安全:

  • 永远不要提交你的.env文件
  • 不要在日志或错误消息中暴露你的 API 密钥
  • 如果 API 密钥被泄露,请进行轮换
  • 使用环境变量进行配置

用法

运行服务器

# Start the server bun run start # Development mode with auto-reload bun run dev

Claude桌面配置

将以下内容添加到您的 Claude Desktop 配置中:

{ "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 - 运行覆盖测试

API 函数

服务器公开以下 MCP 功能:

列表

列出按指定条件排序的 DAO。

参数:

  • limit (可选):返回的 DAO 的最大数量(默认值:20,最大值:50)
  • afterCursor (可选):分页光标
  • sortBy (可选):如何对 DAO 进行排序(默认值:popular)
    • 选项:“id”、“name”、“explore”、“popular”

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

允许 AI 代理与 Tally API 交互以使用模型上下文协议 (MCP) 访问 DAO 治理数据、提案和元数据的服务器,该协议由 TypeScript 和 GraphQL 构建。

  1. Features
    1. Installation
      1. Configuration
        1. Usage
          1. Running the Server
          2. Claude Desktop Configuration
        2. Available Scripts
          1. API Functions
            1. list_daos
          2. License
            ID: xqt9xzqlm6