@webhooks-cc/mcp 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/mcp.js +4 -4
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/bin/mcp.js
CHANGED
|
@@ -1611,7 +1611,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1611
1611
|
return jsonContent({
|
|
1612
1612
|
...import_sdk.WebhooksCC.describeRegistration(baseUrl),
|
|
1613
1613
|
next_steps: [
|
|
1614
|
-
"Easiest: call register_agent (anonymous) to get a key immediately, then
|
|
1614
|
+
"Easiest: call register_agent (anonymous) to get a key immediately, then ask a human to open the returned claimUrl while signed in to webhooks.cc and enter the userCode. Poll check_claim until it says claimed.",
|
|
1615
1615
|
"Or set WHK_API_KEY to an existing whcc_ key and use the authenticated tools."
|
|
1616
1616
|
]
|
|
1617
1617
|
});
|
|
@@ -1619,7 +1619,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1619
1619
|
);
|
|
1620
1620
|
server.tool(
|
|
1621
1621
|
"register_agent",
|
|
1622
|
-
"Self-register for a webhooks.cc API credential via the anonymous auth.md flow. Returns a whcc_ API key
|
|
1622
|
+
"Self-register for a webhooks.cc API credential via the anonymous auth.md flow. Returns a whcc_ API key, plus a short userCode and claimUrl a human uses to bind the key to their account. Until a human claims it, the key only works with the sandbox API (/api/agent/sandbox/endpoints), not with these tools, and it is deleted about 15 minutes after registration. No authentication required.",
|
|
1623
1623
|
{
|
|
1624
1624
|
clientName: import_zod2.z.string().optional().describe("A human-readable name for this agent, recorded on the issued key")
|
|
1625
1625
|
},
|
|
@@ -1635,7 +1635,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1635
1635
|
expiresAt: reg.claimTokenExpires,
|
|
1636
1636
|
instructions: `Ask a human to open ${reg.claimUrl} while logged in to webhooks.cc and either enter the code ${reg.userCode} or open ${reg.claimUrl}?token=${reg.claimToken}. Then call check_claim with the claimToken.`
|
|
1637
1637
|
},
|
|
1638
|
-
usage: "
|
|
1638
|
+
usage: "Until a human claims it, the key only works with the sandbox API at /api/agent/sandbox/endpoints (create temporary endpoints, read their requests), and it is deleted about 15 minutes after registration. Once check_claim says claimed, set WHK_API_KEY to `credential` and restart the MCP server to use the authenticated tools."
|
|
1639
1639
|
});
|
|
1640
1640
|
})
|
|
1641
1641
|
);
|
|
@@ -1701,7 +1701,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
1703
|
// src/index.ts
|
|
1704
|
-
var VERSION = true ? "1.10.
|
|
1704
|
+
var VERSION = true ? "1.10.1" : "0.0.0-dev";
|
|
1705
1705
|
function createServer(options = {}) {
|
|
1706
1706
|
const apiKey = options.apiKey ?? process.env.WHK_API_KEY;
|
|
1707
1707
|
const server = new import_mcp2.McpServer({
|
package/dist/index.js
CHANGED
|
@@ -1633,7 +1633,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1633
1633
|
return jsonContent({
|
|
1634
1634
|
...import_sdk.WebhooksCC.describeRegistration(baseUrl),
|
|
1635
1635
|
next_steps: [
|
|
1636
|
-
"Easiest: call register_agent (anonymous) to get a key immediately, then
|
|
1636
|
+
"Easiest: call register_agent (anonymous) to get a key immediately, then ask a human to open the returned claimUrl while signed in to webhooks.cc and enter the userCode. Poll check_claim until it says claimed.",
|
|
1637
1637
|
"Or set WHK_API_KEY to an existing whcc_ key and use the authenticated tools."
|
|
1638
1638
|
]
|
|
1639
1639
|
});
|
|
@@ -1641,7 +1641,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1641
1641
|
);
|
|
1642
1642
|
server.tool(
|
|
1643
1643
|
"register_agent",
|
|
1644
|
-
"Self-register for a webhooks.cc API credential via the anonymous auth.md flow. Returns a whcc_ API key
|
|
1644
|
+
"Self-register for a webhooks.cc API credential via the anonymous auth.md flow. Returns a whcc_ API key, plus a short userCode and claimUrl a human uses to bind the key to their account. Until a human claims it, the key only works with the sandbox API (/api/agent/sandbox/endpoints), not with these tools, and it is deleted about 15 minutes after registration. No authentication required.",
|
|
1645
1645
|
{
|
|
1646
1646
|
clientName: import_zod2.z.string().optional().describe("A human-readable name for this agent, recorded on the issued key")
|
|
1647
1647
|
},
|
|
@@ -1657,7 +1657,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1657
1657
|
expiresAt: reg.claimTokenExpires,
|
|
1658
1658
|
instructions: `Ask a human to open ${reg.claimUrl} while logged in to webhooks.cc and either enter the code ${reg.userCode} or open ${reg.claimUrl}?token=${reg.claimToken}. Then call check_claim with the claimToken.`
|
|
1659
1659
|
},
|
|
1660
|
-
usage: "
|
|
1660
|
+
usage: "Until a human claims it, the key only works with the sandbox API at /api/agent/sandbox/endpoints (create temporary endpoints, read their requests), and it is deleted about 15 minutes after registration. Once check_claim says claimed, set WHK_API_KEY to `credential` and restart the MCP server to use the authenticated tools."
|
|
1661
1661
|
});
|
|
1662
1662
|
})
|
|
1663
1663
|
);
|
|
@@ -1723,7 +1723,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
1725
1725
|
// src/index.ts
|
|
1726
|
-
var VERSION = true ? "1.10.
|
|
1726
|
+
var VERSION = true ? "1.10.1" : "0.0.0-dev";
|
|
1727
1727
|
function createServer(options = {}) {
|
|
1728
1728
|
const apiKey = options.apiKey ?? process.env.WHK_API_KEY;
|
|
1729
1729
|
const server = new import_mcp2.McpServer({
|
package/dist/index.mjs
CHANGED
|
@@ -1629,7 +1629,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1629
1629
|
return jsonContent({
|
|
1630
1630
|
...WebhooksCC.describeRegistration(baseUrl),
|
|
1631
1631
|
next_steps: [
|
|
1632
|
-
"Easiest: call register_agent (anonymous) to get a key immediately, then
|
|
1632
|
+
"Easiest: call register_agent (anonymous) to get a key immediately, then ask a human to open the returned claimUrl while signed in to webhooks.cc and enter the userCode. Poll check_claim until it says claimed.",
|
|
1633
1633
|
"Or set WHK_API_KEY to an existing whcc_ key and use the authenticated tools."
|
|
1634
1634
|
]
|
|
1635
1635
|
});
|
|
@@ -1637,7 +1637,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1637
1637
|
);
|
|
1638
1638
|
server.tool(
|
|
1639
1639
|
"register_agent",
|
|
1640
|
-
"Self-register for a webhooks.cc API credential via the anonymous auth.md flow. Returns a whcc_ API key
|
|
1640
|
+
"Self-register for a webhooks.cc API credential via the anonymous auth.md flow. Returns a whcc_ API key, plus a short userCode and claimUrl a human uses to bind the key to their account. Until a human claims it, the key only works with the sandbox API (/api/agent/sandbox/endpoints), not with these tools, and it is deleted about 15 minutes after registration. No authentication required.",
|
|
1641
1641
|
{
|
|
1642
1642
|
clientName: z2.string().optional().describe("A human-readable name for this agent, recorded on the issued key")
|
|
1643
1643
|
},
|
|
@@ -1653,7 +1653,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1653
1653
|
expiresAt: reg.claimTokenExpires,
|
|
1654
1654
|
instructions: `Ask a human to open ${reg.claimUrl} while logged in to webhooks.cc and either enter the code ${reg.userCode} or open ${reg.claimUrl}?token=${reg.claimToken}. Then call check_claim with the claimToken.`
|
|
1655
1655
|
},
|
|
1656
|
-
usage: "
|
|
1656
|
+
usage: "Until a human claims it, the key only works with the sandbox API at /api/agent/sandbox/endpoints (create temporary endpoints, read their requests), and it is deleted about 15 minutes after registration. Once check_claim says claimed, set WHK_API_KEY to `credential` and restart the MCP server to use the authenticated tools."
|
|
1657
1657
|
});
|
|
1658
1658
|
})
|
|
1659
1659
|
);
|
|
@@ -1719,7 +1719,7 @@ function registerAgentRegistrationTools(server) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
1721
|
// src/index.ts
|
|
1722
|
-
var VERSION = true ? "1.10.
|
|
1722
|
+
var VERSION = true ? "1.10.1" : "0.0.0-dev";
|
|
1723
1723
|
function createServer(options = {}) {
|
|
1724
1724
|
const apiKey = options.apiKey ?? process.env.WHK_API_KEY;
|
|
1725
1725
|
const server = new McpServer2({
|