Datoka Hooks
Public webhook relay with signed observations, retries and verified receivers. Self-service beta.
我该使用它吗
质量与安全性
A
基于对工具定义和协议合规性的自动分析。
上下文开销
~1,119token 数(工具定义)
~1.1 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.87%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"datoka-hooks": {
"url": "https://datoka-hooks-test.bhazarstudio.workers.dev/mcp"
}
}
}远程端点
https://datoka-hooks-test.bhazarstudio.workers.dev/mcpstreamable-http它能做什么
工具清单
工具(7)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟡register_destination(target, recoveryKey)
Create an isolated access. Keep recoveryKey secret and reuse it only with the same target on retries.
输入模式
{
"type": "object",
"properties": {
"target": {
"type": "string",
"maxLength": 2048,
"format": "uri"
},
"recoveryKey": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"target",
"recoveryKey"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}⚪verify_destination(hookId, managementToken)
Verify the well-known challenge file and activate your destination.
输入模式
{
"type": "object",
"properties": {
"hookId": {
"type": "string",
"pattern": "^pub-[a-f0-9]{32}$"
},
"managementToken": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"hookId",
"managementToken"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_destination_status(hookId, managementToken)
Read verification/revocation status and challenge.
输入模式
{
"type": "object",
"properties": {
"hookId": {
"type": "string",
"pattern": "^pub-[a-f0-9]{32}$"
},
"managementToken": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"hookId",
"managementToken"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🔴revoke_destination(hookId, managementToken)
Permanently revoke client access. Previously accepted deliveries finish.
输入模式
{
"type": "object",
"properties": {
"hookId": {
"type": "string",
"pattern": "^pub-[a-f0-9]{32}$"
},
"managementToken": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"hookId",
"managementToken"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}⚪accept_hook_event(hookId, token, eventId, contentType, bodyBase64)
Enqueue an event for your verified receiver, idempotent by eventId and exact bytes.
输入模式
{
"type": "object",
"properties": {
"hookId": {
"type": "string",
"pattern": "^pub-[a-f0-9]{32}$"
},
"token": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"eventId": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
},
"contentType": {
"type": "string",
"enum": [
"application/json",
"text/plain",
"application/octet-stream"
]
},
"bodyBase64": {
"type": "string",
"maxLength": 87384
}
},
"required": [
"hookId",
"token",
"eventId",
"contentType",
"bodyBase64"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_hook_delivery(hookId, token, deliveryId)
Read delivery state and signed observations.
输入模式
{
"type": "object",
"properties": {
"hookId": {
"type": "string",
"pattern": "^pub-[a-f0-9]{32}$"
},
"token": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"deliveryId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"hookId",
"token",
"deliveryId"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢verify_hook_receipt(hookId, token, event, receipt)
Verify a relay receipt within your authenticated hook.
输入模式
{
"type": "object",
"properties": {
"hookId": {
"type": "string",
"pattern": "^pub-[a-f0-9]{32}$"
},
"token": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"event": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"receipt": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"hookId",
"token",
"event",
"receipt"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社区
证据
最近观测
已验证未记录版本7 个工具