posterly-mcp-server 0.61.0 → 0.62.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/README.md CHANGED
@@ -123,7 +123,7 @@ Add the same server definition to your Cursor MCP settings:
123
123
 
124
124
  ## Available tools
125
125
 
126
- `posterly-mcp-server@0.61.0` exposes 74 tools covering 119 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 71 tools covering 116 actions.
126
+ `posterly-mcp-server@0.62.1` exposes 75 tools covering 120 actions. The hosted HTTP endpoint exposes the same catalog minus the three signup tools: 72 tools covering 117 actions.
127
127
 
128
128
  Many tools pick what to do with one parameter: `view` (reads), `action` (writes), or `type`. A few pick their mode from which parameters you pass (for example `update_post` with `status` changes the status instead of editing). Every tool description names all of its views and actions.
129
129
 
@@ -143,6 +143,7 @@ Accounts, posting, media, schedule, analytics, and support. What most assistants
143
143
 
144
144
  | Tool | What it does |
145
145
  | --- | --- |
146
+ | `complete_onboarding` | Complete onboarding in the chat (name and timezone), for AI app signups |
146
147
  | `disconnect_account` | Disconnect an account |
147
148
  | `connect_account` | Connect with credentials |
148
149
  | `create_connect_session` | Start a connect session |
@@ -604,6 +605,6 @@ The package reads:
604
605
 
605
606
  The optional directory profile provides 54 tools over HTTP or 57 tools over local stdio for social publishing, existing-media uploads, analytics, and inbox work. AI image and video generation, generation-job helpers, billing mutations, and legacy tool aliases are unavailable in this profile. Text caption suggestions and read-only subscription information remain available. Tool descriptions are functional summaries; input schemas retain their validation constraints.
606
607
 
607
- Hosted endpoint: `https://www.poster.ly/api/mcp?profile=claude`. For local stdio, set `POSTERLY_DIRECTORY_PROFILE=claude` alongside the existing API key. The default catalogs remain 71 hosted tools and 74 local tools. This profile does not grant authorization, bypass scopes, or change the existing preview and confirmation checks.
608
+ Hosted endpoint: `https://www.poster.ly/api/mcp?profile=claude`. For local stdio, set `POSTERLY_DIRECTORY_PROFILE=claude` alongside the existing API key. The default catalogs remain 72 hosted tools and 74 local tools. This profile does not grant authorization, bypass scopes, or change the existing preview and confirmation checks.
608
609
 
609
610
  Directory approval remains Anthropic's decision. This profile addresses the generation and financial-transaction restrictions in the [Anthropic Software Directory Policy](https://support.claude.com/en/articles/13145358-anthropic-software-directory-policy).
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ import { getAgentSignupInfoTool } from './tools/get-agent-signup-info.js';
15
15
  import { getSignupSessionTool } from './tools/get-signup-session.js';
16
16
  import { startSignupTool } from './tools/start-signup.js';
17
17
  import { whoamiTool } from './tools/whoami.js';
18
+ import { completeOnboardingTool } from './tools/complete-onboarding.js';
18
19
  import { listAccountsTool } from './tools/list-accounts.js';
19
20
  import { disconnectAccountTool } from './tools/disconnect-account.js';
20
21
  import { connectAccountTool } from './tools/connect-account.js';
@@ -95,6 +96,7 @@ const STDIO_TOOLS = [
95
96
  startSignupTool,
96
97
  getSignupSessionTool,
97
98
  whoamiTool,
99
+ completeOnboardingTool,
98
100
  listAccountsTool,
99
101
  disconnectAccountTool,
100
102
  connectAccountTool,
@@ -947,6 +947,25 @@ export interface Workspace {
947
947
  timezone?: string | null;
948
948
  role?: string;
949
949
  }
950
+ export interface CompleteOnboardingResponse {
951
+ saved: {
952
+ name: string | null;
953
+ name_adjusted: boolean;
954
+ timezone: string | null;
955
+ onboarding_completed: boolean;
956
+ };
957
+ onboarding: {
958
+ completed: boolean;
959
+ next_step: string;
960
+ next_step_label: string;
961
+ instruction: string;
962
+ profile?: {
963
+ name: string | null;
964
+ timezone: string | null;
965
+ };
966
+ accounts_connected?: number;
967
+ } | null;
968
+ }
950
969
  export interface WhoamiOnboarding {
951
970
  completed: boolean;
952
971
  next_step: string;
@@ -1567,6 +1586,12 @@ export declare class PosterlyClient {
1567
1586
  startSignup(data: PublicSignupPayload): Promise<PublicSignupResponse>;
1568
1587
  getSignupSession(sessionId: string): Promise<PublicSignupSessionResponse>;
1569
1588
  whoami(): Promise<Whoami>;
1589
+ /** Issue #1683: save onboarding About you (name, IANA timezone) and mark it complete. */
1590
+ completeOnboarding(data: {
1591
+ name?: string;
1592
+ timezone?: string;
1593
+ complete?: boolean;
1594
+ }): Promise<CompleteOnboardingResponse>;
1570
1595
  listApiKeys(): Promise<{
1571
1596
  api_keys: Array<{
1572
1597
  id: string;
@@ -245,6 +245,10 @@ export class PosterlyClient {
245
245
  async whoami() {
246
246
  return this.request('GET', '/whoami');
247
247
  }
248
+ /** Issue #1683: save onboarding About you (name, IANA timezone) and mark it complete. */
249
+ async completeOnboarding(data) {
250
+ return this.request('POST', '/onboarding', data);
251
+ }
248
252
  async listApiKeys() {
249
253
  return this.request('GET', '/api-keys');
250
254
  }
@@ -243,4 +243,6 @@ export declare function resolveCalledTool(registry: ToolRegistry, calledName: st
243
243
  * The initialize `instructions` text: which tool sets exist, that they are
244
244
  * all on by default, how to load fewer, and how preview then confirm works.
245
245
  */
246
+ /** Issue #1683: AI app signups onboard in the chat, and returning users are never asked again. */
247
+ export declare const ONBOARDING_INSTRUCTION = "Start each session with whoami. If onboarding.completed is false, run onboarding in this chat: ask what to call the user and their IANA timezone, save them with complete_onboarding, then offer create_connect_session for their first network (its link opens the network sign-in directly). Never send the user to /onboarding-v2, and never ask the onboarding questions again once onboarding.completed is true.";
246
248
  export declare function toolsetInstructions(registry: ToolRegistry, surface: ToolSurface): string;
@@ -395,6 +395,8 @@ export function resolveCalledTool(registry, calledName) {
395
395
  * The initialize `instructions` text: which tool sets exist, that they are
396
396
  * all on by default, how to load fewer, and how preview then confirm works.
397
397
  */
398
+ /** Issue #1683: AI app signups onboard in the chat, and returning users are never asked again. */
399
+ export const ONBOARDING_INSTRUCTION = 'Start each session with whoami. If onboarding.completed is false, run onboarding in this chat: ask what to call the user and their IANA timezone, save them with complete_onboarding, then offer create_connect_session for their first network (its link opens the network sign-in directly). Never send the user to /onboarding-v2, and never ask the onboarding questions again once onboarding.completed is true.';
398
400
  export function toolsetInstructions(registry, surface) {
399
401
  const sets = Object.entries(registry.toolsets)
400
402
  .filter(([, set]) => !set.surfaces || set.surfaces.includes(surface))
@@ -407,5 +409,6 @@ export function toolsetInstructions(registry, surface) {
407
409
  `Every set is on by default. ${howTo} Sets only change which tools are listed; any tool can still be called by name.`,
408
410
  'Merged tools pick what to do with a view, action, or type param; each tool description names every option.',
409
411
  'Tools that post publicly or delete things use preview then confirm: call once without confirm to get a preview and a preview_id, show it to the user, then call again with confirm: true and that preview_id.',
412
+ ONBOARDING_INSTRUCTION,
410
413
  ].join(' ');
411
414
  }
@@ -1 +1 @@
1
- export declare const POSTERLY_MCP_VERSION = "0.61.0";
1
+ export declare const POSTERLY_MCP_VERSION = "0.62.1";
@@ -5,4 +5,4 @@
5
5
  // tool set (minus the intentional pre-auth signup tools that only this stdio
6
6
  // package exposes). `npm run check:mcp-parity` enforces both the version match
7
7
  // and the tool-list match, and runs in the pre-commit hook.
8
- export const POSTERLY_MCP_VERSION = '0.61.0';
8
+ export const POSTERLY_MCP_VERSION = '0.62.1';
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ import type { PosterlyClient } from '../lib/api-client.js';
3
+ export declare const completeOnboardingTool: {
4
+ name: string;
5
+ description: string;
6
+ inputSchema: z.ZodObject<{
7
+ name: z.ZodOptional<z.ZodString>;
8
+ timezone: z.ZodOptional<z.ZodString>;
9
+ complete: z.ZodOptional<z.ZodBoolean>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ timezone?: string | undefined;
12
+ name?: string | undefined;
13
+ complete?: boolean | undefined;
14
+ }, {
15
+ timezone?: string | undefined;
16
+ name?: string | undefined;
17
+ complete?: boolean | undefined;
18
+ }>;
19
+ execute(client: PosterlyClient, input: {
20
+ name?: string;
21
+ timezone?: string;
22
+ complete?: boolean;
23
+ }): Promise<string>;
24
+ };
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ import { code, mdSuccess } from '../lib/format.js';
3
+ export const completeOnboardingTool = {
4
+ name: 'complete_onboarding',
5
+ description: 'Finish posterly onboarding IN THIS conversation, for people who signed up through an AI app. Call whoami first: only when onboarding.completed is false, ask what to call them and their IANA timezone (for example Europe/London), then call this with name and timezone. It saves the same About you answers as the web onboarding and marks onboarding complete, so the dashboard and connect links open directly. Never call it, and never ask the onboarding questions, when onboarding.completed is already true. Next, offer create_connect_session for the network they want to post to first.',
6
+ inputSchema: z.object({
7
+ name: z
8
+ .string()
9
+ .min(1)
10
+ .max(36)
11
+ .optional()
12
+ .describe('What to call the user (their display name in posterly). A name already taken gets a short suffix, which the result reports.'),
13
+ timezone: z
14
+ .string()
15
+ .optional()
16
+ .describe('IANA timezone such as Europe/London or America/New_York. Free text such as a city name is rejected so you can ask again.'),
17
+ complete: z
18
+ .boolean()
19
+ .optional()
20
+ .describe('Mark onboarding complete (default true). Pass false to save name or timezone only.'),
21
+ }),
22
+ async execute(client, input) {
23
+ const result = await client.completeOnboarding({
24
+ ...(input.name !== undefined ? { name: input.name } : {}),
25
+ ...(input.timezone !== undefined ? { timezone: input.timezone } : {}),
26
+ ...(input.complete === false ? { complete: false } : {}),
27
+ });
28
+ const rows = [
29
+ ['Name', result.saved.name ? code(result.saved.name) : 'unchanged'],
30
+ ['Timezone', result.saved.timezone ? code(result.saved.timezone) : 'unchanged'],
31
+ ['Onboarding', result.onboarding?.completed ? 'complete' : 'not complete yet'],
32
+ ];
33
+ if (result.saved.name_adjusted)
34
+ rows.push(['Note', 'That name was taken, so a short suffix was added.']);
35
+ const accounts = result.onboarding?.accounts_connected ?? 0;
36
+ const next = accounts > 0
37
+ ? 'Help the user schedule a post.'
38
+ : 'Ask which network they want first, then call create_connect_session and share its connect_url.';
39
+ return mdSuccess('Onboarding saved', rows, next);
40
+ },
41
+ };
@@ -6,7 +6,7 @@ import { validateArgs } from '../lib/tool-runtime.js';
6
6
  const NPM_LATEST_URL = 'https://registry.npmjs.org/posterly-mcp-server/latest';
7
7
  export const whoamiTool = {
8
8
  name: 'whoami',
9
- description: 'Who you are and how posterly is connected. view=identity (default): the authenticated user, API key scopes, workspaces, and onboarding next step. Pass include=api_keys to also list this account\'s API keys (name, prefix, scopes, created, last used). The secret is never included. ALWAYS call this at the start of a session; if onboarding.completed is false, walk the remaining onboarding steps IN THIS conversation (about you, connect, brand voice, first post) and do not send the user to /onboarding-v2 or the dashboard composer wizard. view=status: MCP server version, latest npm version, endpoint and API key health, and update guidance; works before POSTERLY_API_KEY is configured.',
9
+ description: 'Who you are and how posterly is connected. view=identity (default): the authenticated user, API key scopes, workspaces, and onboarding next step. Pass include=api_keys to also list this account\'s API keys (name, prefix, scopes, created, last used). The secret is never included. Call this first. If onboarding.completed is false, run onboarding IN THIS conversation: ask what to call the user and their IANA timezone, save them with complete_onboarding, then offer create_connect_session; do not send the user to /onboarding-v2. If onboarding.completed is true, never ask the onboarding questions again. view=status: MCP server version, latest npm version, endpoint and API key health, and update guidance; works before POSTERLY_API_KEY is configured.',
10
10
  inputSchema: z.object({
11
11
  view: z
12
12
  .enum(['identity', 'status'])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posterly-mcp-server",
3
- "version": "0.61.0",
3
+ "version": "0.62.1",
4
4
  "mcpName": "io.github.awpthorp/posterly",
5
5
  "description": "MCP server for posterly: schedule and publish social media posts across 18 platforms from any MCP client (Claude, ChatGPT, Cursor, Windsurf, Cline, and more)",
6
6
  "license": "MIT",
package/server.json CHANGED
@@ -3,8 +3,17 @@
3
3
  "name": "io.github.awpthorp/posterly",
4
4
  "title": "posterly",
5
5
  "description": "Validate, schedule, publish, and analyze social content across 18 platforms with posterly.",
6
- "version": "0.61.0",
6
+ "version": "0.62.1",
7
7
  "websiteUrl": "https://www.poster.ly/mcp",
8
+ "icons": [
9
+ {
10
+ "src": "https://www.poster.ly/android-chrome-512x512.png",
11
+ "mimeType": "image/png",
12
+ "sizes": [
13
+ "512x512"
14
+ ]
15
+ }
16
+ ],
8
17
  "repository": {
9
18
  "url": "https://github.com/awpthorp/posterly-mcp-server",
10
19
  "source": "github"
@@ -13,7 +22,7 @@
13
22
  {
14
23
  "registryType": "npm",
15
24
  "identifier": "posterly-mcp-server",
16
- "version": "0.61.0",
25
+ "version": "0.62.1",
17
26
  "transport": {
18
27
  "type": "stdio"
19
28
  },
@@ -4,6 +4,7 @@
4
4
  "start_signup",
5
5
  "get_signup_session",
6
6
  "whoami",
7
+ "complete_onboarding",
7
8
  "create_api_key",
8
9
  "delete_api_key",
9
10
  "list_workspace_members",
@@ -135,6 +136,7 @@
135
136
  "manage_x_posting_addon"
136
137
  ],
137
138
  "idempotentMutationTools": [
139
+ "complete_onboarding",
138
140
  "delete_api_key",
139
141
  "disconnect_account",
140
142
  "connect_account",
@@ -3,8 +3,8 @@
3
3
  "version": 1,
4
4
  "designRules": "on",
5
5
  "budgets": {
6
- "maxTotal": 71,
7
- "maxCore": 30
6
+ "maxTotal": 72,
7
+ "maxCore": 31
8
8
  },
9
9
  "sunset": "2027-01-12",
10
10
  "toolsets": {
@@ -117,6 +117,19 @@
117
117
  }
118
118
  }
119
119
  },
120
+ "complete_onboarding": {
121
+ "set": "core",
122
+ "label": "Complete onboarding",
123
+ "exception": {
124
+ "category": "signup",
125
+ "reason": "Finishes signup onboarding in the chat: saves the About you answers (display name, IANA timezone) and marks onboarding complete, so AI app signups never need the web onboarding. Read the status with whoami."
126
+ },
127
+ "readOnly": false,
128
+ "destructive": false,
129
+ "idempotent": true,
130
+ "openWorld": false,
131
+ "confirm": "none"
132
+ },
120
133
  "create_api_key": {
121
134
  "set": "admin",
122
135
  "label": "Create an API key",