@sendora/mcp 2.0.13 → 2.0.15

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.
@@ -360,7 +360,7 @@ button:focus-visible {
360
360
  }
361
361
 
362
362
  // src/version.ts
363
- var MCP_VERSION = "2.0.13";
363
+ var MCP_VERSION = "2.0.15";
364
364
 
365
365
  // screens/host.ts
366
366
  var PROTOCOL_VERSION = "2026-01-26";
@@ -360,7 +360,7 @@ button:focus-visible {
360
360
  }
361
361
 
362
362
  // src/version.ts
363
- var MCP_VERSION = "2.0.13";
363
+ var MCP_VERSION = "2.0.15";
364
364
 
365
365
  // screens/host.ts
366
366
  var PROTOCOL_VERSION = "2026-01-26";
@@ -1,8 +1,8 @@
1
1
  import { KEYS_PAGE, } from './connection.js';
2
2
  import { INDEX_URI } from './docs.js';
3
3
  import { grantNote, LIVE_NOTE, SIMULATOR_NOTE, WRITES_OFF_NOTE } from './tools/server.js';
4
- const ABOUT = "Sendora is a transactional email service: an HTTP API, SMTP submission, SDKs for TypeScript (@sendora/sdk), Python (sendora), PHP (sendora/sendora-php, and sendora/sendora-laravel for Laravel), Java (se.sendora:sendora-java) and Go (sendora.se/go/sendora), signed webhooks and a message log with every delivery event. This server carries Sendora's documentation, and with a key, tools for that key's server or account.";
5
- const DOCS = `Use 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, which installs it, se.sendora:sendora-java for Java or Kotlin, or sendora.se/go/sendora for Go (a project with a go.mod); the HTTP API otherwise. The Java SDK comes from Sendora's own Maven repository, https://maven.sendora.se, not from Maven Central. Before writing code, find the answer with search_docs and read the document with read_doc; ${INDEX_URI} lists them all, and sendora://sdk/skill, sendora://sdk/python/skill, sendora://sdk/php/skill, sendora://sdk/java/skill and sendora://sdk/go/skill hold the rules an agent must keep with each SDK.`;
4
+ const ABOUT = "Sendora is a transactional email service: an HTTP API, SMTP submission, SDKs for TypeScript (@sendora/sdk), Python (sendora), PHP (sendora/sendora-php, and sendora/sendora-laravel for Laravel), Java (se.sendora:sendora-java), .NET (Sendora, and Sendora.AspNetCore for ASP.NET Core) and Go (sendora.se/go/sendora), signed webhooks and a message log with every delivery event. This server carries Sendora's documentation, and with a key, tools for that key's server or account.";
5
+ const DOCS = `Use 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, which installs it, se.sendora:sendora-java for Java or Kotlin, the NuGet package Sendora for .NET 10 or newer, with Sendora.AspNetCore for webhooks and Identity's mails in ASP.NET Core, or sendora.se/go/sendora for Go (a project with a go.mod); the HTTP API otherwise. The Java SDK comes from Sendora's own Maven repository, https://maven.sendora.se, not from Maven Central. Before writing code, find the answer with search_docs and read the document with read_doc; ${INDEX_URI} lists them all, and sendora://sdk/skill, sendora://sdk/python/skill, sendora://sdk/php/skill, sendora://sdk/java/skill, sendora://sdk/dotnet/skill and sendora://sdk/go/skill hold the rules an agent must keep with each SDK.`;
6
6
  const KEYS = 'Never print or repeat a Sendora key, and never write one into a file under version control; keys belong in the environment.';
7
7
  const TEST_DASHBOARD = `A person makes and revokes this server's keys in the dashboard, ${KEYS_PAGE}.`;
8
8
  const LIVE_DASHBOARD = `A person makes and revokes this server's keys, and makes and deletes its webhooks, in the dashboard, ${KEYS_PAGE}, with changes on or off, since a new key or signing secret must not reach this conversation.`;
package/dist/prompts.js CHANGED
@@ -18,13 +18,13 @@ export function registerPrompts(server) {
18
18
  framework: z
19
19
  .string()
20
20
  .optional()
21
- .describe('The web framework, such as Express, Next.js, Django, FastAPI, Laravel or Spring Boot.'),
21
+ .describe('The web framework, such as Express, Next.js, Django, FastAPI, Laravel, Spring Boot or ASP.NET Core.'),
22
22
  }),
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, 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
- "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.",
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, sendora://sdk/dotnet/skill for .NET 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
+ "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, the NuGet package Sendora for .NET 10 or newer, with Sendora.AspNetCore in an ASP.NET Core app, 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. In a .NET app with a host, register the client with builder.Services.AddSendora(builder.Configuration), which reads the same variable. 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).',
30
30
  '5. Add a webhook endpoint that verifies every delivery before it parses it, as sendora://docs/webhooks shows.',
@@ -48,11 +48,24 @@ export function registerPrompts(server) {
48
48
  framework: z
49
49
  .string()
50
50
  .optional()
51
- .describe('The web framework, such as Express, Next.js, Django, FastAPI, Laravel or Spring Boot.'),
51
+ .describe('The web framework, such as Express, Next.js, Django, FastAPI, Laravel, Spring Boot or ASP.NET Core.'),
52
52
  }),
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, 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.",
56
+ "Read sendora://docs/webhooks first. Before anything parses the body, verify it with the SDK for the project's language:",
57
+ '',
58
+ '- 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().',
59
+ '- 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.',
60
+ '- In PHP, WebhookVerifier::verify() with the raw body, the header and the secret.',
61
+ "- In a Laravel app, the package's route, which checks each signature and fires a Laravel event, as sendora://docs/laravel shows.",
62
+ "- In a Symfony app, SendoraRequestParser through Symfony's Webhook component, as sendora://docs/symfony shows.",
63
+ '- In Java or Kotlin, WebhookVerifier.of(secret).verify() with the raw body as bytes and the header.',
64
+ "- In an ASP.NET Core app, MapSendoraWebhooks from Sendora.AspNetCore, which checks each signature and calls your SendoraWebhookHandler's method for the event. It reads the secret from the setting Sendora:WebhookSecret, which the variable Sendora__WebhookSecret sets.",
65
+ '- In any other .NET app, new WebhookVerifier(secret).Verify() with the raw body as bytes and the header.',
66
+ '- 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().',
67
+ '- In any other language, the recipe in sendora://docs/webhooks.',
68
+ '',
69
+ '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
70
  ].join('\n')));
58
71
  }
@@ -52,7 +52,7 @@ export const docsTools = [
52
52
  operations: [],
53
53
  register: (server, { docs }) => server.registerTool('read_doc', {
54
54
  title: 'Read a Sendora document',
55
- description: `Read one of Sendora's documents whole, as Markdown: a guide (sendora://docs/…), an API operation (sendora://reference/…), the error codes (sendora://errors) or an SDK's README and rules for agents (sendora://sdk/readme and sendora://sdk/skill for TypeScript, sendora://sdk/python/readme and sendora://sdk/python/skill for Python, sendora://sdk/php/readme and sendora://sdk/php/skill for PHP, sendora://sdk/laravel/readme for Laravel, sendora://sdk/java/readme and sendora://sdk/java/skill for Java, and sendora://sdk/go/readme and sendora://sdk/go/skill for Go). ${INDEX_URI} lists every document; search_docs finds the right one.`,
55
+ description: `Read one of Sendora's documents whole, as Markdown: a guide (sendora://docs/…), an API operation (sendora://reference/…), the error codes (sendora://errors) or an SDK's README and rules for agents (sendora://sdk/readme and sendora://sdk/skill for TypeScript, sendora://sdk/python/readme and sendora://sdk/python/skill for Python, sendora://sdk/php/readme and sendora://sdk/php/skill for PHP, sendora://sdk/laravel/readme for Laravel, sendora://sdk/java/readme and sendora://sdk/java/skill for Java, sendora://sdk/dotnet/readme and sendora://sdk/dotnet/skill for .NET, and sendora://sdk/go/readme and sendora://sdk/go/skill for Go). ${INDEX_URI} lists every document; search_docs finds the right one.`,
56
56
  inputSchema: z.object({
57
57
  uri: z.string().min(1).describe(`A document's address, such as ${INDEX_URI}.`),
58
58
  }),
@@ -205,7 +205,7 @@ export const createWebhookTool = {
205
205
  operations: ['POST /v1/webhooks'],
206
206
  register: (server, { connection, targets }) => registerServerTool(server, targets, 'create_webhook', {
207
207
  title: 'Add a webhook',
208
- description: "Adds a webhook to this test server and answers its signing secret, shown this once: put it in the project's environment, such as SENDORA_WEBHOOK_SECRET in .env, never in a file under version control, and verify every delivery with the SDK: webhooks.receive or verifyWebhook in TypeScript, verify_webhook in Python, WebhookVerifier::verify() in PHP, the package's route in Laravel, WebhookVerifier.of(secret).verify() in Java or Kotlin, or sendora.NewWebhookHandler or sendora.VerifyWebhook in Go. The API takes only a public https URL, so a local endpoint needs a tunnel. Events arrive as the simulator plays out each message.",
208
+ description: "Adds a webhook to this test server and answers its signing secret, shown this once: put it in the project's environment, such as SENDORA_WEBHOOK_SECRET in .env, never in a file under version control. Verify every delivery with the SDK: webhooks.receive or verifyWebhook in TypeScript, verify_webhook in Python, WebhookVerifier::verify() in PHP, the package's route in Laravel, WebhookVerifier.of(secret).verify() in Java or Kotlin, MapSendoraWebhooks in ASP.NET Core, which reads the secret from the setting Sendora:WebhookSecret that the variable Sendora__WebhookSecret sets, new WebhookVerifier(secret).Verify() in any other .NET app, or sendora.NewWebhookHandler or sendora.VerifyWebhook in Go. The API takes only a public https URL, so a local endpoint needs a tunnel. Events arrive as the simulator plays out each message.",
209
209
  inputSchema: createWebhookInput,
210
210
  outputSchema: createdWebhookOutput,
211
211
  annotations: {
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.13';
2
+ export const MCP_VERSION = '2.0.15';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendora/mcp",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "The official MCP server for Sendora: its documentation and API for coding agents.",
5
5
  "license": "MIT",
6
6
  "type": "module",