@posty5/mcp 0.0.0-stage → 1.1.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/LICENSE +21 -0
- package/README.md +202 -2
- package/dist/bin/stdio.js +4197 -0
- package/dist/bin/stdio.js.map +1 -0
- package/dist/bin/stdio.mjs +4195 -0
- package/dist/bin/stdio.mjs.map +1 -0
- package/dist/index.d.mts +374 -0
- package/dist/index.d.ts +374 -0
- package/dist/index.js +4321 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4299 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +75 -5
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/server';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AccountClient } from '@posty5/account';
|
|
4
|
+
import { HtmlHostingClient } from '@posty5/html-hosting';
|
|
5
|
+
import { HtmlHostingFormSubmissionClient } from '@posty5/html-hosting-form-submission';
|
|
6
|
+
import { HtmlHostingVariablesClient } from '@posty5/html-hosting-variables';
|
|
7
|
+
import { QRCodeClient, QRCodeTemplateClient } from '@posty5/qr-code';
|
|
8
|
+
import { ShortLinkClient, LinkCampaignClient } from '@posty5/short-link';
|
|
9
|
+
import { SocialPublisherPostClient } from '@posty5/social-publisher-post';
|
|
10
|
+
import { SocialPublisherWorkspaceClient, SocialPublisherAccountClient } from '@posty5/social-publisher-workspace';
|
|
11
|
+
import { StoreClient } from '@posty5/store';
|
|
12
|
+
import * as node_http from 'node:http';
|
|
13
|
+
import { IncomingMessage } from 'node:http';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* What a connection may do (mcp-server feature, decision 4). The access level
|
|
17
|
+
* is the security boundary: a tool above it is not listed AND is refused if
|
|
18
|
+
* called anyway.
|
|
19
|
+
*/
|
|
20
|
+
declare const ACCESS_LEVELS: readonly ["read", "write", "full"];
|
|
21
|
+
type AccessLevel = (typeof ACCESS_LEVELS)[number];
|
|
22
|
+
/** A connection with no stated level gets this. */
|
|
23
|
+
declare const DEFAULT_ACCESS: AccessLevel;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The tool groups (mcp-server feature, decision 5). Names are a public
|
|
27
|
+
* contract: the API stores them on MCP tokens (`api/packages/common/src/
|
|
28
|
+
* constants/mcp.const.ts` keeps the same list) and users put them in URLs.
|
|
29
|
+
* Order here is catalogue order — `tools/list` answers in it.
|
|
30
|
+
*/
|
|
31
|
+
declare const TOOLSET_NAMES: readonly ["account", "short-links", "qr-codes", "html-hosting", "social-publisher", "store", "store-catalog", "store-orders", "store-shipping", "store-dropshipping"];
|
|
32
|
+
type ToolsetName = (typeof TOOLSET_NAMES)[number];
|
|
33
|
+
/** What a new connection gets when it names no toolsets. The store groups are opt-in. */
|
|
34
|
+
declare const DEFAULT_TOOLSETS: ToolsetName[];
|
|
35
|
+
/** Display label and one-line description per toolset, for `listToolsets()` and the dashboard picker. */
|
|
36
|
+
declare const TOOLSET_INFO: Record<ToolsetName, {
|
|
37
|
+
label: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* How one tool call reaches the Posty5 API — what a host (the hosted MCP
|
|
43
|
+
* server) hands the package per call. The package builds the SDK client from
|
|
44
|
+
* it, so a host never imports `@posty5/core` itself (inside the api monorepo
|
|
45
|
+
* that name belongs to another package).
|
|
46
|
+
*/
|
|
47
|
+
interface IPosty5McpConnection {
|
|
48
|
+
/** The API key the call acts with. */
|
|
49
|
+
apiKey: string;
|
|
50
|
+
/** API base URL; the hosted server points it at the internal gateway. */
|
|
51
|
+
baseUrl?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Extra headers, sent after the package's own: a host passes its
|
|
54
|
+
* `X-Posty5-Client`, the `X-Posty5-Agent` value it signed and the signature.
|
|
55
|
+
*/
|
|
56
|
+
headers?: Record<string, string>;
|
|
57
|
+
/** Request timeout in milliseconds. */
|
|
58
|
+
timeout?: number;
|
|
59
|
+
/** Retries after a retryable failure; writes are never retried once answered. */
|
|
60
|
+
maxRetries?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** The SDK clients a tool runs against — built per call over that call's HttpClient. */
|
|
64
|
+
interface IPosty5Clients {
|
|
65
|
+
account: AccountClient;
|
|
66
|
+
shortLinks: ShortLinkClient;
|
|
67
|
+
linkCampaigns: LinkCampaignClient;
|
|
68
|
+
qrCodes: QRCodeClient;
|
|
69
|
+
qrTemplates: QRCodeTemplateClient;
|
|
70
|
+
htmlPages: HtmlHostingClient;
|
|
71
|
+
htmlVariables: HtmlHostingVariablesClient;
|
|
72
|
+
formSubmissions: HtmlHostingFormSubmissionClient;
|
|
73
|
+
workspaces: SocialPublisherWorkspaceClient;
|
|
74
|
+
socialAccounts: SocialPublisherAccountClient;
|
|
75
|
+
posts: SocialPublisherPostClient;
|
|
76
|
+
store: StoreClient;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Where the model name of a call came from (mcp-server feature, decision 8). */
|
|
80
|
+
type AgentModelSource = "agent" | "connection" | "unknown";
|
|
81
|
+
/** One tool call, as hooks and the HTTP client factory see it. */
|
|
82
|
+
interface IToolCallContext {
|
|
83
|
+
tool: string;
|
|
84
|
+
toolset: ToolsetName;
|
|
85
|
+
/** The connection's access level. */
|
|
86
|
+
access: AccessLevel;
|
|
87
|
+
/** The tool's own level: `read` tools change nothing; `write` and `full` tools do. */
|
|
88
|
+
toolAccess: AccessLevel;
|
|
89
|
+
/** The MCP client, from the protocol (`clientInfo`). */
|
|
90
|
+
client: {
|
|
91
|
+
name: string;
|
|
92
|
+
version?: string;
|
|
93
|
+
};
|
|
94
|
+
/** The model id after precedence (argument → connection → "unknown") and normalisation. */
|
|
95
|
+
model: string;
|
|
96
|
+
modelSource: AgentModelSource;
|
|
97
|
+
/** The assistant's idempotency key, when it sent one. */
|
|
98
|
+
idempotencyKey?: string;
|
|
99
|
+
/** Set by a host (the hosted server) to tie the call to its log row. */
|
|
100
|
+
callId?: string;
|
|
101
|
+
/** The raw tool arguments — a host's logger must redact them before storing. */
|
|
102
|
+
args: Record<string, unknown>;
|
|
103
|
+
startedAt: number;
|
|
104
|
+
}
|
|
105
|
+
/** Behaviour hints for clients (MCP tool annotations); `readOnlyHint` follows from `access: "read"`. */
|
|
106
|
+
interface IToolAnnotations {
|
|
107
|
+
destructive?: boolean;
|
|
108
|
+
idempotent?: boolean;
|
|
109
|
+
/** True when the result contains text other people wrote (form submissions, orders, captions…). */
|
|
110
|
+
openWorld?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/** A confirmation with data the user decides on: a quote, an import preview. */
|
|
113
|
+
interface IConfirmationDescription {
|
|
114
|
+
/** One or two sentences for the user: what the call would do and whether it can be undone. */
|
|
115
|
+
action: string;
|
|
116
|
+
/** Returned beside `action` unchanged, e.g. the SDK's quote or preview result. */
|
|
117
|
+
details?: unknown;
|
|
118
|
+
}
|
|
119
|
+
/** What a tool needing `confirm: true` says it would do, without doing it. Reads only. */
|
|
120
|
+
interface IToolConfirmation {
|
|
121
|
+
/** One or two sentences (or a sentence plus details) for the user: what the call would do and whether it can be undone. */
|
|
122
|
+
describe(args: any, ctx: IToolRunContext): string | IConfirmationDescription | Promise<string | IConfirmationDescription>;
|
|
123
|
+
/** Operation whose live credit price is quoted alongside, e.g. "socialMediaPublisher.removePost". */
|
|
124
|
+
costFeaturePath?: string;
|
|
125
|
+
}
|
|
126
|
+
/** What a call created or touched, for a host's activity log. */
|
|
127
|
+
interface IToolEntity {
|
|
128
|
+
entityType: string;
|
|
129
|
+
entityId?: string;
|
|
130
|
+
count?: number;
|
|
131
|
+
}
|
|
132
|
+
/** What a tool's `run` receives besides its arguments. */
|
|
133
|
+
interface IToolRunContext {
|
|
134
|
+
clients: IPosty5Clients;
|
|
135
|
+
call: IToolCallContext;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* One MCP tool. `input` holds the tool's own fields only: `aiModel` and
|
|
139
|
+
* `idempotencyKey` are added to every write/full tool, and `confirm` to every
|
|
140
|
+
* tool with a `confirm` rule, by the catalogue — never declare them here.
|
|
141
|
+
*/
|
|
142
|
+
interface IToolDefinition<TInput extends z.ZodObject<any> = z.ZodObject<any>> {
|
|
143
|
+
/** `<resource>_<verb>`, snake_case, ≤ 64 chars. Stable forever once published. */
|
|
144
|
+
name: string;
|
|
145
|
+
toolset: ToolsetName;
|
|
146
|
+
access: AccessLevel;
|
|
147
|
+
title: string;
|
|
148
|
+
/** What it does, what it needs (and where to get it), side effects. Never a price. */
|
|
149
|
+
description: string;
|
|
150
|
+
input: TInput;
|
|
151
|
+
annotations?: IToolAnnotations;
|
|
152
|
+
confirm?: IToolConfirmation;
|
|
153
|
+
run(args: z.infer<TInput>, ctx: IToolRunContext): Promise<unknown>;
|
|
154
|
+
/** What the call created, for the activity log. */
|
|
155
|
+
entity?(result: any, args: z.infer<TInput>): IToolEntity | undefined;
|
|
156
|
+
}
|
|
157
|
+
/** A tool as `listTools()` describes it — no handler. */
|
|
158
|
+
interface IToolDescriptor {
|
|
159
|
+
name: string;
|
|
160
|
+
toolset: ToolsetName;
|
|
161
|
+
access: AccessLevel;
|
|
162
|
+
title: string;
|
|
163
|
+
description: string;
|
|
164
|
+
requiresConfirm: boolean;
|
|
165
|
+
annotations: {
|
|
166
|
+
readOnlyHint: boolean;
|
|
167
|
+
destructiveHint: boolean;
|
|
168
|
+
idempotentHint: boolean;
|
|
169
|
+
openWorldHint: boolean;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** How a call ended, for a host's activity log. */
|
|
174
|
+
type ToolOutcomeStatus = "ok" | "toolError" | "denied" | "rateLimited" | "failed";
|
|
175
|
+
/** What a host learns after each call. */
|
|
176
|
+
interface IToolOutcome {
|
|
177
|
+
status: ToolOutcomeStatus;
|
|
178
|
+
errorCode?: string;
|
|
179
|
+
errorMessage?: string;
|
|
180
|
+
durationMs: number;
|
|
181
|
+
entity?: IToolEntity;
|
|
182
|
+
replayed?: boolean;
|
|
183
|
+
/** True when a `confirm` tool only described itself. */
|
|
184
|
+
awaitingConfirmation?: boolean;
|
|
185
|
+
}
|
|
186
|
+
/** A host refusing a call before it runs (limits, access). */
|
|
187
|
+
interface IToolRefusal {
|
|
188
|
+
status: "denied" | "rateLimited";
|
|
189
|
+
message: string;
|
|
190
|
+
retryAfterSeconds?: number;
|
|
191
|
+
}
|
|
192
|
+
/** A remembered result of a write, replayed when the same idempotency key comes back. */
|
|
193
|
+
interface IStoredToolResult {
|
|
194
|
+
result: unknown;
|
|
195
|
+
storedAt: number;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Where write results are remembered by idempotency key. The package ships an
|
|
199
|
+
* in-process store; the hosted server plugs in Redis.
|
|
200
|
+
*/
|
|
201
|
+
interface IIdempotencyStore {
|
|
202
|
+
get(key: string): Promise<IStoredToolResult | undefined>;
|
|
203
|
+
/** Claim the key for an in-flight call; false when another call holds it. */
|
|
204
|
+
acquire(key: string, ttlMs: number): Promise<boolean>;
|
|
205
|
+
set(key: string, result: unknown, ttlMs: number): Promise<void>;
|
|
206
|
+
/** Release a claim without storing a result (the call failed). */
|
|
207
|
+
release(key: string): Promise<void>;
|
|
208
|
+
}
|
|
209
|
+
/** What a host (the hosted MCP server) plugs into every call. */
|
|
210
|
+
interface IPosty5McpHooks {
|
|
211
|
+
/**
|
|
212
|
+
* Runs before a call; a refusal is answered as a tool error and the call does
|
|
213
|
+
* not run. It may set `call.callId` — `connection(call)` runs after it.
|
|
214
|
+
*/
|
|
215
|
+
beforeToolCall?(call: IToolCallContext): Promise<IToolRefusal | void> | IToolRefusal | void;
|
|
216
|
+
/** Runs after every call, whatever its outcome. Must not throw. */
|
|
217
|
+
afterToolCall?(call: IToolCallContext, outcome: IToolOutcome): void;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** How to build a Posty5 MCP server (`createPosty5McpServer`). */
|
|
221
|
+
interface IPosty5McpOptions {
|
|
222
|
+
/** What the connection may do. Default `write`. */
|
|
223
|
+
access?: AccessLevel;
|
|
224
|
+
/** Which tool groups to expose (`ToolsetName`s; unknown names are ignored). Default: the five defaults; `account` is always added. */
|
|
225
|
+
toolsets?: readonly (ToolsetName | (string & {}))[];
|
|
226
|
+
/** A model id declared on the connection (`?model=`, `POSTY5_AI_MODEL`); a tool's `aiModel` argument wins over it. */
|
|
227
|
+
connectionModel?: string;
|
|
228
|
+
/**
|
|
229
|
+
* The MCP client when the protocol does not name it on this request — a
|
|
230
|
+
* 2025-era client's identity carried by the HTTP layer between stateless
|
|
231
|
+
* requests, or its User-Agent. The protocol's own value wins when present.
|
|
232
|
+
*/
|
|
233
|
+
clientInfo?: {
|
|
234
|
+
name: string;
|
|
235
|
+
version?: string;
|
|
236
|
+
};
|
|
237
|
+
/** Stdio path: the API key every call uses. Ignored when `connection` is given. */
|
|
238
|
+
apiKey?: string;
|
|
239
|
+
/** Stdio path: the API base URL. */
|
|
240
|
+
baseUrl?: string;
|
|
241
|
+
/** Hosted path: how this call reaches the API — the owner's key, the internal gateway, the signed agent headers. */
|
|
242
|
+
connection?(call: IToolCallContext): IPosty5McpConnection;
|
|
243
|
+
hooks?: IPosty5McpHooks;
|
|
244
|
+
/** Where write results are remembered by idempotency key. Default: in-process. */
|
|
245
|
+
idempotencyStore?: IIdempotencyStore;
|
|
246
|
+
/** Overrides of the server's MCP identity. */
|
|
247
|
+
serverInfo?: {
|
|
248
|
+
name?: string;
|
|
249
|
+
title?: string;
|
|
250
|
+
version?: string;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* A Posty5 MCP server exposing the tools `options.toolsets` and
|
|
256
|
+
* `options.access` allow. Stdio: pass `apiKey` (or set `POSTY5_API_KEY`).
|
|
257
|
+
* Hosted: pass `connection`, `hooks` and a shared `idempotencyStore`.
|
|
258
|
+
*/
|
|
259
|
+
declare function createPosty5McpServer(options?: IPosty5McpOptions): McpServer;
|
|
260
|
+
|
|
261
|
+
/** A request the host will not serve: unknown token, revoked key, wrong origin… */
|
|
262
|
+
interface IPosty5McpHttpRefusal {
|
|
263
|
+
status: number;
|
|
264
|
+
/** Shown to the user by most clients — say what to do, e.g. create a new MCP link. */
|
|
265
|
+
message: string;
|
|
266
|
+
headers?: Record<string, string>;
|
|
267
|
+
}
|
|
268
|
+
/** What the host decided for one HTTP request. */
|
|
269
|
+
type Posty5McpHttpResolution = {
|
|
270
|
+
options: IPosty5McpOptions;
|
|
271
|
+
} | {
|
|
272
|
+
refusal: IPosty5McpHttpRefusal;
|
|
273
|
+
};
|
|
274
|
+
/** How a host serves MCP over HTTP (`createPosty5McpNodeHandler`). */
|
|
275
|
+
interface IPosty5McpHttpOptions {
|
|
276
|
+
/** Turns one request (its token, query, headers) into server options, or refuses it. Runs before the body is read by MCP. */
|
|
277
|
+
resolve(req: IncomingMessage): Promise<Posty5McpHttpResolution> | Posty5McpHttpResolution;
|
|
278
|
+
/**
|
|
279
|
+
* Signs the 2025-era session ids that carry the client's identity between
|
|
280
|
+
* stateless requests. Required — without it a legacy client's calls are
|
|
281
|
+
* attributed to its User-Agent at best.
|
|
282
|
+
*/
|
|
283
|
+
sessionSecret: string;
|
|
284
|
+
/** Default `HTTP_MAX_REQUEST_BYTES`. */
|
|
285
|
+
maxRequestBodySize?: number;
|
|
286
|
+
/** Out-of-band errors (reporting only). Never given request bodies or tokens. */
|
|
287
|
+
onerror?(error: Error): void;
|
|
288
|
+
}
|
|
289
|
+
/** The node-style handler `createPosty5McpNodeHandler` returns; Express's `next` as third argument is ignored. */
|
|
290
|
+
type Posty5McpNodeHandler = (req: IncomingMessage, res: node_http.ServerResponse, parsedBody?: unknown) => Promise<void>;
|
|
291
|
+
|
|
292
|
+
declare function createPosty5McpNodeHandler(http: IPosty5McpHttpOptions): Posty5McpNodeHandler;
|
|
293
|
+
|
|
294
|
+
/** A toolset as `listToolsets()` describes it. */
|
|
295
|
+
interface IToolsetDescriptor {
|
|
296
|
+
name: ToolsetName;
|
|
297
|
+
label: string;
|
|
298
|
+
description: string;
|
|
299
|
+
defaultOn: boolean;
|
|
300
|
+
alwaysOn: boolean;
|
|
301
|
+
toolCount: number;
|
|
302
|
+
tools: {
|
|
303
|
+
name: string;
|
|
304
|
+
access: AccessLevel;
|
|
305
|
+
}[];
|
|
306
|
+
}
|
|
307
|
+
/** Narrows `listTools()`. */
|
|
308
|
+
interface IToolFilter {
|
|
309
|
+
toolsets?: ToolsetName[];
|
|
310
|
+
/** Only tools this level may use. */
|
|
311
|
+
access?: AccessLevel;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
declare const CATALOGUE: readonly IToolDefinition[];
|
|
315
|
+
/** Every tool, optionally narrowed by toolset and access level, in catalogue order. */
|
|
316
|
+
declare function listTools(filter?: IToolFilter): IToolDescriptor[];
|
|
317
|
+
/** Every toolset with its tools, in catalogue order. */
|
|
318
|
+
declare function listToolsets(): IToolsetDescriptor[];
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* The in-process idempotency store the stdio server uses. Results live as
|
|
322
|
+
* long as the process (bounded by TTL and entry count); the hosted server
|
|
323
|
+
* replaces it with Redis so retries that land on another process are caught.
|
|
324
|
+
*/
|
|
325
|
+
declare class MemoryIdempotencyStore implements IIdempotencyStore {
|
|
326
|
+
private readonly results;
|
|
327
|
+
private readonly locks;
|
|
328
|
+
get(key: string): Promise<IStoredToolResult | undefined>;
|
|
329
|
+
acquire(key: string, ttlMs: number): Promise<boolean>;
|
|
330
|
+
set(key: string, result: unknown, ttlMs: number): Promise<void>;
|
|
331
|
+
release(key: string): Promise<void>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/** Trimmed, control characters removed, at most `max` characters; `undefined` for anything that is not text. */
|
|
335
|
+
declare function normaliseAgentText(value: unknown, max?: number): string | undefined;
|
|
336
|
+
/** The model id as reported, `"unknown"` when absent, `"invalid"` when it does not look like one. */
|
|
337
|
+
declare function normaliseModel(value: unknown): string;
|
|
338
|
+
/** The call's model: the tool argument wins, then the connection's, else "unknown". */
|
|
339
|
+
declare function resolveModel(argument: unknown, connectionModel: unknown): {
|
|
340
|
+
model: string;
|
|
341
|
+
modelSource: AgentModelSource;
|
|
342
|
+
};
|
|
343
|
+
/** `X-Posty5-Agent`'s value for a call: base64url JSON the API reads (unsigned here). */
|
|
344
|
+
declare function encodeAgentHeader(call: IToolCallContext, nowSeconds?: number): string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* The toolsets a connection gets: the requested ones (or the defaults),
|
|
348
|
+
* `account` always, `store` whenever a `store-*` group is on — in catalogue
|
|
349
|
+
* order, unknown names dropped.
|
|
350
|
+
*/
|
|
351
|
+
declare function resolveToolsets(requested?: readonly string[]): ToolsetName[];
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* How the package reports which assistant and model made a call
|
|
355
|
+
* (mcp-server feature, decision 8). A copy of the API's rules in
|
|
356
|
+
* `api/packages/common/src/constants/agent-identity.config.ts`; both sides
|
|
357
|
+
* normalise the same fixtures (`__tests__/mcp-agent-origin.test.ts`).
|
|
358
|
+
*/
|
|
359
|
+
/** Header carrying the agent payload (base64url JSON). */
|
|
360
|
+
declare const AGENT_ORIGIN_HEADER = "X-Posty5-Agent";
|
|
361
|
+
/** Header naming the client software on every request. */
|
|
362
|
+
declare const CLIENT_HEADER = "X-Posty5-Client";
|
|
363
|
+
/** The `createdFrom` label records created through MCP carry. */
|
|
364
|
+
declare const MCP_CREATED_FROM = "mcp";
|
|
365
|
+
|
|
366
|
+
/** This package's version — kept in step with package.json (a test pins them). */
|
|
367
|
+
declare const PACKAGE_VERSION = "1.1.0";
|
|
368
|
+
/**
|
|
369
|
+
* What every assistant is told when it connects (MCP server `instructions`).
|
|
370
|
+
* Short on purpose: it is in the model's context for the whole session.
|
|
371
|
+
*/
|
|
372
|
+
declare const SERVER_INSTRUCTIONS: string;
|
|
373
|
+
|
|
374
|
+
export { ACCESS_LEVELS, AGENT_ORIGIN_HEADER, type AccessLevel, type AgentModelSource, CATALOGUE, CLIENT_HEADER, DEFAULT_ACCESS, DEFAULT_TOOLSETS, type IIdempotencyStore, type IPosty5McpConnection, type IPosty5McpHooks, type IPosty5McpHttpOptions, type IPosty5McpHttpRefusal, type IPosty5McpOptions, type IStoredToolResult, type IToolCallContext, type IToolDescriptor, type IToolEntity, type IToolFilter, type IToolOutcome, type IToolRefusal, type IToolsetDescriptor, MCP_CREATED_FROM, MemoryIdempotencyStore, PACKAGE_VERSION, type Posty5McpHttpResolution, type Posty5McpNodeHandler, SERVER_INSTRUCTIONS, TOOLSET_INFO, TOOLSET_NAMES, type ToolOutcomeStatus, type ToolsetName, createPosty5McpNodeHandler, createPosty5McpServer, encodeAgentHeader, listTools, listToolsets, normaliseAgentText, normaliseModel, resolveModel, resolveToolsets };
|