@pidgeon-ai/mcp 1.6.0 → 1.7.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.0
4
+
5
+ - The registry entry names the hosted server again: `https://pidgeon.ai/mcp`
6
+ (Streamable HTTP, sign-in by OAuth), beside the npm package.
7
+ - `update_site` and `rotate_site_secret`.
8
+
3
9
  ## 1.6.0
4
10
 
5
11
  - `send_message`, `reply_to_message`, `create_draft` and `update_draft` take
package/README.md CHANGED
@@ -53,8 +53,8 @@ session is refreshed from then on. On a machine with no browser, set
53
53
  `get_domain`, `enable_domain_mail`, `check_domain`
54
54
  - **Calendar:** `get_agenda`, `get_calendar_event`, `create_calendar_event`, `update_calendar_event`,
55
55
  `delete_calendar_event`
56
- - **Auth:** `list_sites`, `register_site`, `remove_site`, `request_mandate`,
57
- `list_mandates`, `revoke_mandate`
56
+ - **Auth:** `list_sites`, `register_site`, `update_site`, `rotate_site_secret`,
57
+ `remove_site`, `request_mandate`, `list_mandates`, `revoke_mandate`
58
58
 
59
59
  `send_message`, `reply_to_message`, `create_draft` and `update_draft` take
60
60
  `attachment_ids`: files uploaded with an SDK or the API, since no tool
package/dist/tools.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
9
9
  import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
10
10
  import { type Pidgeon } from '@pidgeon-ai/sdk';
11
- export declare const VERSION = "1.6.0";
11
+ export declare const VERSION = "1.7.0";
12
12
  export declare const json: (value: unknown) => CallToolResult;
13
13
  export declare const failed: (text: string) => CallToolResult;
14
14
  /** Run a tool's work and answer its result, or the API's refusal in words the model can act on. */
package/dist/tools.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { PidgeonError, WEBHOOK_EVENTS } from '@pidgeon-ai/sdk';
3
- export const VERSION = '1.6.0';
3
+ export const VERSION = '1.7.0';
4
4
  export const json = (value) => ({
5
5
  content: [{ type: 'text', text: JSON.stringify(value ?? { ok: true }, null, 2) }],
6
6
  });
@@ -662,6 +662,27 @@ export function registerApiTools(server, pidgeon, signInHint) {
662
662
  },
663
663
  annotations: WRITE,
664
664
  }, ({ name, redirect_uris, pod_id }) => answer(() => pidgeon.sites.create({ name, redirectUris: redirect_uris, podId: pod_id })));
665
+ server.registerTool('update_site', {
666
+ title: 'Edit a site',
667
+ description: 'Rename a Sign in with Pidgeon site, or replace its return addresses (send the whole new list). Its client_id and secret stay.',
668
+ inputSchema: {
669
+ client_id: z.string(),
670
+ name: z.string().min(1).max(120).optional(),
671
+ redirect_uris: z
672
+ .array(z.string().url())
673
+ .min(1)
674
+ .max(20)
675
+ .optional()
676
+ .describe('The whole new list: https addresses (http on localhost), matched exactly.'),
677
+ },
678
+ annotations: WRITE,
679
+ }, ({ client_id, name, redirect_uris }) => answer(() => pidgeon.sites.update(client_id, { name, redirectUris: redirect_uris })));
680
+ server.registerTool('rotate_site_secret', {
681
+ title: 'Rotate a site’s secret',
682
+ description: 'Give a site a new client_secret, answered once: put it on the site’s server. The old one stops working at once, so the site cannot sign anyone in until it has the new one.',
683
+ inputSchema: { client_id: z.string() },
684
+ annotations: DESTROY,
685
+ }, ({ client_id }) => answer(() => pidgeon.sites.rotateSecret(client_id)));
665
686
  server.registerTool('remove_site', {
666
687
  title: 'Remove a site',
667
688
  description: 'Remove a Sign in with Pidgeon site; its sign-ins stop working.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pidgeon-ai/mcp",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Pidgeon's MCP server: a coding agent sets an agent up end to end (registered, keyed on your machine, published, its reputation read) and works its inboxes.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@modelcontextprotocol/sdk": "^1.32.2",
47
47
  "zod": "^4.6.7",
48
- "@pidgeon-ai/sdk": "^2.4.0"
48
+ "@pidgeon-ai/sdk": "^2.5.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^24.10.1",
package/server.json CHANGED
@@ -9,13 +9,15 @@
9
9
  "source": "github",
10
10
  "subfolder": "packages/mcp"
11
11
  },
12
- "version": "1.6.0",
12
+ "version": "1.7.0",
13
13
  "packages": [
14
14
  {
15
15
  "registryType": "npm",
16
16
  "identifier": "@pidgeon-ai/mcp",
17
- "version": "1.6.0",
18
- "transport": { "type": "stdio" },
17
+ "version": "1.7.0",
18
+ "transport": {
19
+ "type": "stdio"
20
+ },
19
21
  "environmentVariables": [
20
22
  {
21
23
  "name": "PIDGEON_API_KEY",
@@ -25,5 +27,11 @@
25
27
  }
26
28
  ]
27
29
  }
30
+ ],
31
+ "remotes": [
32
+ {
33
+ "type": "streamable-http",
34
+ "url": "https://pidgeon.ai/mcp"
35
+ }
28
36
  ]
29
37
  }