@sendora/mcp 2.0.10 → 2.0.13
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/prompts.js
CHANGED
|
@@ -23,7 +23,7 @@ export function registerPrompts(server) {
|
|
|
23
23
|
}, ({ framework }) => asking([
|
|
24
24
|
`Set up Sendora for transactional email in this project, which uses ${forFramework(framework)}.`,
|
|
25
25
|
'',
|
|
26
|
-
"1. Read sendora://docs/quickstart and the skill for the project's SDK, sendora://sdk/skill for TypeScript, sendora://sdk/python/skill for Python, sendora://sdk/php/skill for PHP, sendora://sdk/java/skill for Java or Kotlin or sendora://sdk/go/skill for Go, with read_doc before writing any code, and follow the skill's rules. In a Laravel app, read sendora://docs/laravel and sendora://sdk/laravel/readme too, in a Symfony app sendora://docs/symfony, in a Django app sendora://docs/django, in a Next.js app sendora://docs/nextjs
|
|
26
|
+
"1. Read sendora://docs/quickstart and the skill for the project's SDK, sendora://sdk/skill for TypeScript, sendora://sdk/python/skill for Python, sendora://sdk/php/skill for PHP, sendora://sdk/java/skill for Java or Kotlin or sendora://sdk/go/skill for Go, with read_doc before writing any code, and follow the skill's rules. In a Laravel app, read sendora://docs/laravel and sendora://sdk/laravel/readme too, in a Symfony app sendora://docs/symfony, in a Django app sendora://docs/django, in a Next.js app sendora://docs/nextjs, in an Express app sendora://docs/express, in a Gin app sendora://docs/gin, in an Echo app sendora://docs/echo and in a Fiber app sendora://docs/fiber.",
|
|
27
27
|
"2. Install the SDK for the project's language, @sendora/sdk for TypeScript or JavaScript, sendora for Python, sendora/sendora-php for PHP, sendora/sendora-laravel in a Laravel app, se.sendora:sendora-java for Java or Kotlin or sendora.se/go/sendora for Go, and construct the client once at startup from SENDORA_API_TOKEN in the environment; in any other language, call the HTTP API with that key. Take the Java SDK from Sendora's own Maven repository, https://maven.sendora.se, for the group se.sendora alone, and add the signature check that sendora://sdk/java/readme shows. Never write a key into a file under version control, and never print one.",
|
|
28
28
|
'3. Add a function that sends one message, with the idempotency the SDK gives every send, or an Idempotency-Key header over HTTP.',
|
|
29
29
|
'4. If a test server key is connected here, send a test to delivered@simulator.sendora.se and to hardbounce@simulator.sendora.se, and show me how each ended; otherwise tell me how to connect one (sendora://docs/test-servers).',
|
|
@@ -53,6 +53,6 @@ export function registerPrompts(server) {
|
|
|
53
53
|
}, ({ framework }) => asking([
|
|
54
54
|
`Make this project's Sendora webhook endpoint in ${forFramework(framework)} verify every delivery.`,
|
|
55
55
|
'',
|
|
56
|
-
"Read sendora://docs/webhooks first. Before anything parses the body, verify it with the SDK for the project's language: in TypeScript verifyWebhook with the raw body and the Sendora-Signature header, or webhooks.receive with a Fetch Request, as sendora://docs/nextjs shows in a Next.js route handler and sendora://docs/express in Express, where express.raw() keeps the raw body on a router mounted before express.json(); in Python verify_webhook with the raw body and the header, as sendora://docs/django shows in a Django view, which reads the raw body with request.read() and is exempt from the CSRF check; in PHP WebhookVerifier::verify() with the raw body, the header and the secret; in a Laravel app the package's route, which checks each signature and fires a Laravel event, as sendora://docs/laravel shows; in a Symfony app SendoraRequestParser through Symfony's Webhook component, as sendora://docs/symfony shows; in Java or Kotlin WebhookVerifier.of(secret).verify() with the raw body as bytes and the header; in Go the http.Handler from sendora.NewWebhookHandler on net/http, and elsewhere sendora.VerifyWebhook with the raw body as bytes, the header and the secret; in any other language, the recipe in sendora://docs/webhooks. Answer 2xx quickly and do the work afterwards; key the handling on the event id, since deliveries arrive at least once. Keep the secret in the environment. Then test it: if a test server key is connected here, replay a delivery and check that the endpoint accepted it.",
|
|
56
|
+
"Read sendora://docs/webhooks first. Before anything parses the body, verify it with the SDK for the project's language: in TypeScript verifyWebhook with the raw body and the Sendora-Signature header, or webhooks.receive with a Fetch Request, as sendora://docs/nextjs shows in a Next.js route handler and sendora://docs/express in Express, where express.raw() keeps the raw body on a router mounted before express.json(); in Python verify_webhook with the raw body and the header, as sendora://docs/django shows in a Django view, which reads the raw body with request.read() and is exempt from the CSRF check; in PHP WebhookVerifier::verify() with the raw body, the header and the secret; in a Laravel app the package's route, which checks each signature and fires a Laravel event, as sendora://docs/laravel shows; in a Symfony app SendoraRequestParser through Symfony's Webhook component, as sendora://docs/symfony shows; in Java or Kotlin WebhookVerifier.of(secret).verify() with the raw body as bytes and the header; in Go the http.Handler from sendora.NewWebhookHandler on net/http, as sendora://docs/gin shows in a Gin route through gin.WrapH and sendora://docs/echo in an Echo route through echo.WrapHandler, and elsewhere sendora.VerifyWebhook with the raw body as bytes, the header and the secret, as sendora://docs/fiber shows in a Fiber route with c.BodyRaw(); in any other language, the recipe in sendora://docs/webhooks. Answer 2xx quickly and do the work afterwards; key the handling on the event id, since deliveries arrive at least once. Keep the secret in the environment. Then test it: if a test server key is connected here, replay a delivery and check that the endpoint accepted it.",
|
|
57
57
|
].join('\n')));
|
|
58
58
|
}
|
package/dist/tools/keys.js
CHANGED
|
@@ -22,7 +22,7 @@ export const listKeysTool = {
|
|
|
22
22
|
operations: ['GET /v1/tokens'],
|
|
23
23
|
register: (server, { connection, targets }) => registerServerTool(server, targets, 'list_keys', {
|
|
24
24
|
title: "List the server's keys",
|
|
25
|
-
description: `Lists this server's keys by name and prefix, with when each was made and revoked; thisConnection marks the one this connection uses. A person makes and revokes keys in the dashboard, ${KEYS_PAGE}, which shows a key's value only when it is made. A server holds at most
|
|
25
|
+
description: `Lists this server's keys by name and prefix, with when each was made and revoked; thisConnection marks the one this connection uses. A person makes and revokes keys in the dashboard, ${KEYS_PAGE}, which shows a key's value only when it is made. A server holds at most ten live keys, so each system can have its own. Rotate a key by creating a new one, switching to it, and revoking the old.`,
|
|
26
26
|
inputSchema: z.object({}),
|
|
27
27
|
outputSchema: z.object({
|
|
28
28
|
tokens: z.array(listedKeyOutput).describe("The server's keys."),
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, held equal to its package.json by a test. */
|
|
2
|
-
export const MCP_VERSION = '2.0.
|
|
2
|
+
export const MCP_VERSION = '2.0.13';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendora/mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "The official MCP server for Sendora: its documentation and API for coding agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@modelcontextprotocol/server": "^2.1.0",
|
|
27
27
|
"zod": "^4.6.2",
|
|
28
|
-
"@sendora/sdk": "^5.9.
|
|
28
|
+
"@sendora/sdk": "^5.9.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@anthropic-ai/mcpb": "2.1.2",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"vitest": "^4.1.11",
|
|
42
42
|
"@sendora/api": "0.0.0",
|
|
43
43
|
"@sendora/db": "0.0.0",
|
|
44
|
-
"@sendora/observability": "0.0.0",
|
|
45
44
|
"@sendora/domain": "0.0.0",
|
|
45
|
+
"@sendora/observability": "0.0.0",
|
|
46
46
|
"@sendora/site": "0.0.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|