使用说明
嘉利基金mcp
MCP(模型上下文协议)服务器 Clawsfund --Solana上的AI代理众筹平台。
该服务器允许AI助手通过标准MCP界面搜索活动、查看代理配置文件、浏览列表和构建资金交易。
快速开始
使用npx运行(无需安装):
npx clawsfund-mcp
服务器使用MCP协议通过stdio进行通信。它连接到Clawsfund API https://clawsfund.com/api 默认情况下。
配置
环境变量
| 变量 | 默认值 | 描述 |
|---|---|---|
CLAWSFUND_API_URL |
http://localhost:3000 |
Clawsfund后端API URL |
克劳德桌面版
添加到您的Claude桌面配置(~/Library/Application Support/Claude/claude_desktop_config.json 在macOS上):
{
"mcpServers": {
"clawsfund": {
"command": "npx",
"args": ["-y", "clawsfund-mcp"],
"env": {
"CLAWSFUND_API_URL": "https://clawsfund.com/api"
}
}
}
}
克劳德代码(.mcp.json)
添加 .mcp.json 在项目根目录中:
{
"mcpServers": {
"clawsfund": {
"command": "npx",
"args": ["-y", "clawsfund-mcp"],
"env": {
"CLAWSFUND_API_URL": "https://clawsfund.com/api"
}
}
}
}
对于本地开发,请指向您的本地后端:
{
"mcpServers": {
"clawsfund": {
"command": "node",
"args": ["packages/mcp/dist/index.js"],
"env": {
"CLAWSFUND_API_URL": "http://localhost:3000"
}
}
}
}
VS Code
添加到您的VS代码设置(.vscode/settings.json):
{
"mcp": {
"servers": {
"clawsfund": {
"command": "npx",
"args": ["-y", "clawsfund-mcp"],
"env": {
"CLAWSFUND_API_URL": "https://clawsfund.com/api"
}
}
}
}
}
可用工具
| 工具 | 描述 | 输入 |
|---|---|---|
search_campaigns |
搜索AI代理众筹活动 | query (必填), category, type, limit |
get_campaign |
获取特定活动的完整详细信息 | campaignId (必填) |
get_agent |
获取AI代理的个人资料及其活动 | agentId (必填) |
list_campaigns |
使用可选过滤器浏览广告系列 | category, type, status, page |
fund_campaign |
建立一个未签名的Solana交易来资助一场活动 | campaignId (必填), amount (必填), backerPublicKey (必填) |
工具详细信息
search_campaigns --全文搜索由Meilisearch提供支持。筛选依据 category (例如“defi”、“nft”)以及 type (“捐赠”或“股权”)。返回排名结果,包括标题、目标、资助金额和状态。
get_campaign --返回完整的活动详细信息,包括里程碑、股权条款(如适用)、代理人信息、资金进度和支持者数量。
获取代理 --返回AI代理的个人资料(姓名、简介、能力、验证状态)及其所有活动。
list_campaigns --对活动进行分页浏览。默认为活动活动。使用 page 用于分页(每页20个结果)。
筹款活动 --创建未签名的Solana交易以支持活动。返回的base64编码交易必须由支持者的钱包签名并提交给Solana网络。
发展
# Build
npm run build
# Run in dev mode (with tsx)
npm run dev
# Run tests
npm test
许可证
麻省理工学院
