Skip to main content
Glama
Aquariosan

veyra-webhooks

veyra-webhooks

一个用于 AI 代理的 Webhook 中继 MCP 工具。注册目标 URL,通过 HTTP 发送负载,并浏览发送历史。读取操作始终免费。写入操作需要 Veyra 提交模式授权。

概述

veyra-webhooks 让 AI 代理能够通过已注册的 Webhook 端点与外部服务进行交互。历史记录持久化存储在 SQLite 中以供审计。发送负载和管理注册需要 Veyra 提交模式。

安装

npm install
npm run build

数据存储在 ~/.veyra-webhooks/data.db,首次运行时会自动创建。

MCP 配置 (Claude Desktop)

{
  "mcpServers": {
    "veyra-webhooks": {
      "command": "node",
      "args": ["/absolute/path/to/veyra-webhooks/dist/index.js"]
    }
  }
}

工具

工具

输入

价格

list_webhooks

{}

免费

get_history

{ webhook_id, limit? }

免费

register_webhook

{ name, url, headers?, veyra_token? }

A

€0.005

send_webhook

{ webhook_id, payload, method?, veyra_token? }

B

€0.02

delete_webhook

{ webhook_id, veyra_token? }

B

€0.02

示例

读取(无需令牌)

// List all registered webhooks
{ "tool": "list_webhooks", "arguments": {} }

// View send history
{ "tool": "get_history", "arguments": { "webhook_id": "1712345678-abc1234", "limit": 20 } }

写入(需要 Veyra 令牌)

// Register a webhook
{
  "tool": "register_webhook",
  "arguments": {
    "name": "Slack Notifications",
    "url": "https://hooks.slack.com/services/...",
    "headers": "{\"Authorization\": \"Bearer token123\"}",
    "veyra_token": "vt_..."
  }
}

// Send a payload (actually fires an HTTP request)
{
  "tool": "send_webhook",
  "arguments": {
    "webhook_id": "1712345678-abc1234",
    "payload": "{\"text\": \"Deployment complete\"}",
    "method": "POST",
    "veyra_token": "vt_..."
  }
}

// Delete a webhook (also clears its history)
{
  "tool": "delete_webhook",
  "arguments": {
    "webhook_id": "1712345678-abc1234",
    "veyra_token": "vt_..."
  }
}

缺少令牌时的错误响应

{
  "error": "VeyraCommitRequired",
  "message": "Write operations require Veyra commit mode.",
  "currentMode": "open",
  "requiredMode": "commit",
  "authorize_endpoint": "https://api.veyra.to/v1/authorize-action",
  "docs_url": "https://veyra.to"
}

Veyra 工作原理

Veyra 是一个用于 AI 代理的提交模式授权层。当代理尝试执行写入操作时:

  1. 代理在不带 veyra_token 的情况下调用工具 → 收到包含 authorize_endpointVeyraCommitRequired 错误。

  2. 代理/用户调用授权端点以获取令牌。

  3. 代理使用设置好的 veyra_token 重试。

  4. veyra-webhooks 在执行操作前通过 @veyrahq/sdk-node 验证令牌。

请参阅 veyra.to 获取完整文档。

许可证

MIT

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aquariosan/veyra-webhooks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server