server_delete_webhook
Remove a webhook from a Minecraft server managed by crafty-mcp. Specify server and webhook IDs to delete unwanted notifications.
Instructions
Delete a webhook from a Minecraft server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | Server ID or UUID | |
| webhook_id | Yes | Webhook ID to delete |
Implementation Reference
- src/tools/server-webhooks.ts:94-112 (handler)The server_delete_webhook tool is registered and implemented within the registerServerWebhookTools function in src/tools/server-webhooks.ts. It takes server_id and webhook_id as inputs and performs a DELETE request to the server API.
server.tool( "server_delete_webhook", "Delete a webhook from a Minecraft server", { server_id: z.string().describe("Server ID or UUID"), webhook_id: z.string().describe("Webhook ID to delete"), }, async ({ server_id, webhook_id }) => { try { const data = await client.delete( `/servers/${server_id}/webhooks/${webhook_id}` ); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { const msg = error instanceof Error ? error.message : String(error); return { content: [{ type: "text", text: `Error: ${msg}` }], isError: true }; } } );