@softure-ai/mcp-access 0.2.9 → 0.4.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 +66 -0
- package/README.md +241 -11
- package/dist/cli/run.d.ts +1 -1
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +2 -2
- package/dist/cli/run.js.map +1 -1
- package/dist/contract.d.ts +48 -2
- package/dist/contract.d.ts.map +1 -1
- package/dist/index.d.ts +88 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/jobs/index.d.ts +2 -0
- package/dist/jobs/index.d.ts.map +1 -1
- package/dist/jobs/index.js +5 -2
- package/dist/jobs/index.js.map +1 -1
- package/dist/jobs/operation-state.d.ts +58 -0
- package/dist/jobs/operation-state.d.ts.map +1 -0
- package/dist/jobs/operation-state.js +68 -0
- package/dist/jobs/operation-state.js.map +1 -0
- package/dist/jobs/operation-tasks.d.ts +68 -0
- package/dist/jobs/operation-tasks.d.ts.map +1 -0
- package/dist/jobs/operation-tasks.js +163 -0
- package/dist/jobs/operation-tasks.js.map +1 -0
- package/dist/jobs/operations.d.ts +89 -0
- package/dist/jobs/operations.d.ts.map +1 -0
- package/dist/jobs/operations.js +131 -0
- package/dist/jobs/operations.js.map +1 -0
- package/dist/messages/en.d.ts +55 -0
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/en.js +55 -0
- package/dist/messages/en.js.map +1 -1
- package/dist/messages/index.d.ts +54 -0
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/next/issue-token.d.ts +11 -2
- package/dist/next/issue-token.d.ts.map +1 -1
- package/dist/next/issue-token.js +56 -7
- package/dist/next/issue-token.js.map +1 -1
- package/dist/next/token-manager-props.d.ts +3 -2
- package/dist/next/token-manager-props.d.ts.map +1 -1
- package/dist/next/token-manager-props.js +12 -2
- package/dist/next/token-manager-props.js.map +1 -1
- package/dist/options.d.ts +47 -0
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +53 -0
- package/dist/options.js.map +1 -1
- package/dist/schema.d.ts +214 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +21 -3
- package/dist/schema.js.map +1 -1
- package/dist/server/api-tokens.d.ts +64 -0
- package/dist/server/api-tokens.d.ts.map +1 -0
- package/dist/server/api-tokens.js +176 -0
- package/dist/server/api-tokens.js.map +1 -0
- package/dist/server/confirmation.d.ts +69 -0
- package/dist/server/confirmation.d.ts.map +1 -0
- package/dist/server/confirmation.js +220 -0
- package/dist/server/confirmation.js.map +1 -0
- package/dist/server/health.d.ts.map +1 -1
- package/dist/server/health.js +3 -1
- package/dist/server/health.js.map +1 -1
- package/dist/server/index.d.ts +4 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +3 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/privacy.d.ts +4 -0
- package/dist/server/privacy.d.ts.map +1 -1
- package/dist/server/privacy.js +5 -1
- package/dist/server/privacy.js.map +1 -1
- package/dist/server/prune.d.ts +5 -1
- package/dist/server/prune.d.ts.map +1 -1
- package/dist/server/prune.js +14 -4
- package/dist/server/prune.js.map +1 -1
- package/dist/server/strict-input.d.ts +3 -1
- package/dist/server/strict-input.d.ts.map +1 -1
- package/dist/server/strict-input.js +54 -8
- package/dist/server/strict-input.js.map +1 -1
- package/dist/server/tokens.d.ts +46 -11
- package/dist/server/tokens.d.ts.map +1 -1
- package/dist/server/tokens.js +46 -24
- package/dist/server/tokens.js.map +1 -1
- package/dist/server/tools.d.ts +8 -0
- package/dist/server/tools.d.ts.map +1 -1
- package/dist/server/tools.js +1 -0
- package/dist/server/tools.js.map +1 -1
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +8 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/token-manager.d.ts +18 -2
- package/dist/ui/token-manager.d.ts.map +1 -1
- package/dist/ui/token-manager.js +28 -3
- package/dist/ui/token-manager.js.map +1 -1
- package/migrations/0004_create_used_confirmations.sql +13 -0
- package/migrations/0005_add_api_tokens.sql +15 -0
- package/migrations/0006_create_operation_tasks.sql +18 -0
- package/module.json +9 -3
- package/package.json +7 -2
- package/src/cli/run.ts +2 -2
- package/src/contract.ts +60 -2
- package/src/index.ts +31 -3
- package/src/jobs/index.ts +43 -2
- package/src/jobs/operation-state.ts +119 -0
- package/src/jobs/operation-tasks.ts +234 -0
- package/src/jobs/operations.ts +258 -0
- package/src/messages/en.ts +56 -0
- package/src/next/issue-token.ts +64 -9
- package/src/next/token-manager-props.ts +15 -4
- package/src/options.ts +62 -0
- package/src/schema.ts +23 -3
- package/src/server/api-tokens.ts +224 -0
- package/src/server/confirmation.ts +316 -0
- package/src/server/health.ts +3 -1
- package/src/server/index.ts +32 -2
- package/src/server/privacy.ts +9 -1
- package/src/server/prune.ts +17 -4
- package/src/server/strict-input.ts +62 -13
- package/src/server/tokens.ts +73 -27
- package/src/server/tools.ts +9 -0
- package/src/tokens/index.ts +22 -0
- package/src/ui/index.ts +1 -0
- package/src/ui/token-manager.tsx +140 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-tasks.js","sourceRoot":"","sources":["../../src/jobs/operation-tasks.ts"],"names":[],"mappings":"AAAA,gHAAgH;AAChH,wHAAwH;AACxH,iHAAiH;AACjH,EAAE;AACF,mGAAmG;AACnG,4EAA4E;AAC5E,sGAAsG;AACtG,EAAE;AACF,sHAAsH;AACtH,kHAAkH;AAClH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACpC,aAAa,EACb,iBAAiB,GAGlB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAoB,MAAM,yBAAyB,CAAC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AU,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC;IAC7H,CAAC;IACD,IAAI,MAAM,KAAK,WAAW;QAAE,OAAO,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;IACvG,4GAA4G;IAC5G,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1D,MAAM,MAAM,GAAG,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACnG,OAAO,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;AACjF,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { CallToolResult, McpServer } from "@modelcontextprotocol/server";
|
|
2
|
+
import { type Err, type Ok, type SoftureConfig } from "@softure-ai/core";
|
|
3
|
+
import { type JobsContext } from "@softure-ai/jobs/server";
|
|
4
|
+
import type { McpServerIdentity } from "../contract.js";
|
|
5
|
+
import { type ToolErrorHints } from "../server/tools.js";
|
|
6
|
+
import { type OperationTaskRequest } from "./operation-tasks.js";
|
|
7
|
+
import { type GetOperationOptions, type OperationAnswer, type OperationErrorCode, type OperationPollOptions, type ReadOperationResult } from "./operation-state.js";
|
|
8
|
+
export { getOperationStatus, getPollAfterSeconds, MAX_OPERATION_DEDUP_KEY_LENGTH, OPERATION_CANCEL_TOOL_NAME, OPERATION_ORIGIN, OPERATION_STATUS_TOOL_NAME, OPERATION_STATUSES, type GetOperationOptions, type OperationAnswer, type OperationErrorCode, type OperationJob, type OperationPollOptions, type OperationStatus, type ReadOperationResult, } from "./operation-state.js";
|
|
9
|
+
export interface StartOperationInput {
|
|
10
|
+
/** A queue defined in `jobs({ queues })`. */
|
|
11
|
+
readonly queue: string;
|
|
12
|
+
/** The handler's payload, as `enqueueJob` takes it: ids, not personal data. */
|
|
13
|
+
readonly payload: unknown;
|
|
14
|
+
/**
|
|
15
|
+
* While an operation of this account and queue with the same key runs, starting again joins it (the answer carries
|
|
16
|
+
* its id and status). At most 150 characters. Default: a new operation every time.
|
|
17
|
+
*/
|
|
18
|
+
readonly dedupKey?: string;
|
|
19
|
+
/** The status tool the answer tells the assistant to call. Default `get_operation`. */
|
|
20
|
+
readonly statusToolName?: string;
|
|
21
|
+
readonly poll?: OperationPollOptions;
|
|
22
|
+
/**
|
|
23
|
+
* The tool handler's request context (its second argument). When the client declared the MCP Tasks extension on
|
|
24
|
+
* this request, the answer is a task (`resultType: "task"`) instead of an operation id; any other client gets the
|
|
25
|
+
* operation id as before. Pair it with `registerOperationTasks` on the same server, which serves `tasks/get`.
|
|
26
|
+
*/
|
|
27
|
+
readonly taskRequest?: OperationTaskRequest;
|
|
28
|
+
/** How long a task can be read after it was created, in seconds. Default 86 400 (a day). */
|
|
29
|
+
readonly taskTtlSeconds?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Where an operation tool finds its `{ db, clock, config }`: the request's context as a value, or a getter resolved
|
|
33
|
+
* inside each call (for a server factory that opens the database per call, so registering and listing the tools
|
|
34
|
+
* opens nothing).
|
|
35
|
+
*/
|
|
36
|
+
export type OperationToolContext = {
|
|
37
|
+
/** `{ db, clock, config }` of the request. */
|
|
38
|
+
readonly ctx: JobsContext;
|
|
39
|
+
readonly getContext?: never;
|
|
40
|
+
readonly config?: never;
|
|
41
|
+
} | {
|
|
42
|
+
readonly ctx?: never;
|
|
43
|
+
/** Resolves `{ db, clock, config }` inside each call, once per call. */
|
|
44
|
+
readonly getContext: () => Promise<JobsContext>;
|
|
45
|
+
/** The app's config for the tool description at registration. Default: the built-in English dictionary. */
|
|
46
|
+
readonly config?: SoftureConfig;
|
|
47
|
+
};
|
|
48
|
+
type OperationToolOptions = OperationToolContext & {
|
|
49
|
+
/** The request's identity: operations are scoped to `identity.userId`. */
|
|
50
|
+
readonly identity: McpServerIdentity;
|
|
51
|
+
/** Default: the module dictionary's description. */
|
|
52
|
+
readonly description?: string;
|
|
53
|
+
};
|
|
54
|
+
export type OperationStatusToolOptions = OperationToolOptions & {
|
|
55
|
+
/** Default `get_operation`. */
|
|
56
|
+
readonly name?: string;
|
|
57
|
+
readonly readResult?: ReadOperationResult;
|
|
58
|
+
readonly poll?: OperationPollOptions;
|
|
59
|
+
};
|
|
60
|
+
export type OperationCancelToolOptions = OperationToolOptions & {
|
|
61
|
+
/** Default `cancel_operation`. */
|
|
62
|
+
readonly name?: string;
|
|
63
|
+
/** The status tool the answer points to. Default `get_operation`. */
|
|
64
|
+
readonly statusToolName?: string;
|
|
65
|
+
readonly poll?: OperationPollOptions;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* For a tool handler: enqueues the operation's job and answers its id with the fixed sentence (ask the status tool,
|
|
69
|
+
* do not start again). Throws on an unknown queue or a dedup key over 150 characters (a bug in the caller); database
|
|
70
|
+
* failures propagate, so call it inside `withToolErrors` or let the SDK answer the error.
|
|
71
|
+
*/
|
|
72
|
+
export declare function startOperation(ctx: JobsContext, identity: McpServerIdentity, input: StartOperationInput): Promise<CallToolResult>;
|
|
73
|
+
/** The caller's operation as `get_operation` answers it; `mcp-access.operation_not_found` for any other id. */
|
|
74
|
+
export declare function getOperation(ctx: JobsContext, identity: McpServerIdentity, operationId: string, options?: GetOperationOptions): Promise<Ok<OperationAnswer> | Err<"mcp-access.operation_not_found">>;
|
|
75
|
+
/**
|
|
76
|
+
* Cancels the caller's operation: a queued one ends at once, a running one is asked to stop (its handler's `signal`
|
|
77
|
+
* aborts on the next heartbeat). `mcp-access.operation_finished` once it has ended.
|
|
78
|
+
*/
|
|
79
|
+
export declare function cancelOperation(ctx: JobsContext, identity: McpServerIdentity, operationId: string, options?: Omit<GetOperationOptions, "readResult">): Promise<Ok<OperationAnswer> | Err<OperationErrorCode>>;
|
|
80
|
+
/** Registers the read-only status tool (`get_operation`) for the request's account. */
|
|
81
|
+
export declare function registerOperationStatusTool(server: McpServer, options: OperationStatusToolOptions): void;
|
|
82
|
+
/** Registers the cancel tool (`cancel_operation`), a write: nothing is registered without `identity.canWrite`. */
|
|
83
|
+
export declare function registerOperationCancelTool(server: McpServer, options: OperationCancelToolOptions): void;
|
|
84
|
+
/**
|
|
85
|
+
* The module's sentences for the operation error codes, as `withToolErrors({ hints })` takes them: for an app that
|
|
86
|
+
* wraps `getOperation` or `cancelOperation` in tools of its own.
|
|
87
|
+
*/
|
|
88
|
+
export declare function getOperationErrorHints(config: SoftureConfig): ToolErrorHints;
|
|
89
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/jobs/operations.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAW,KAAK,GAAG,EAAE,KAAK,EAAE,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EAAgC,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,EAA2C,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAO,EAA6E,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5I,OAAO,EAUL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,8BAA8B,EAC9B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,0BAA0B,GAAG,IAAI,CAwBxG;AAED,kHAAkH;AAClH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,0BAA0B,GAAG,IAAI,CAqBxG;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,cAAc,CAG5E"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// Long operations as MCP tools (#952), on top of `@softure-ai/jobs`. A tool whose work takes minutes cannot hold the
|
|
2
|
+
// call open (JSON mode drops mid-call notifications, proxies cut long responses, assistants time out), so it starts a
|
|
3
|
+
// job and answers an operation id at once; the assistant then asks `get_operation` until the operation ends, and may
|
|
4
|
+
// stop it with `cancel_operation`.
|
|
5
|
+
//
|
|
6
|
+
// server.registerTool("render_video", { inputSchema }, (args) => startOperation(ctx, identity, { queue: "video.render", payload: args }));
|
|
7
|
+
// registerOperationStatusTool(server, { ctx, identity, readResult: (job) => findRenderUrl(job.id) });
|
|
8
|
+
// registerOperationCancelTool(server, { ctx, identity });
|
|
9
|
+
//
|
|
10
|
+
// Ownership rides on the job itself: its origin is `mcp` and its dedup key `mcp:<userId>:<key>`, which the jobs table
|
|
11
|
+
// keeps after the job ends. Any other job, or another account's, is "not found".
|
|
12
|
+
import { randomUUID } from "node:crypto";
|
|
13
|
+
import { err, ok } from "@softure-ai/core";
|
|
14
|
+
import { enqueueJob, requestJobCancel } from "@softure-ai/jobs/server";
|
|
15
|
+
import { z } from "zod";
|
|
16
|
+
import { mcpAccessMessages } from "../messages/index.js";
|
|
17
|
+
import { getMcpAccessMessages } from "../server/options.js";
|
|
18
|
+
import { answerValue, toolResult, withToolErrors } from "../server/tools.js";
|
|
19
|
+
import { answerOperationTask, isTasksRequest, isTaskTtlValid, MAX_TASK_TTL_SECONDS } from "./operation-tasks.js";
|
|
20
|
+
import { describeOperation, fillToolName, findOwnedJob, getOwnerPrefix, getPollMin, MAX_OPERATION_DEDUP_KEY_LENGTH, OPERATION_ORIGIN, OPERATION_STATUS_TOOL_NAME, OPERATION_CANCEL_TOOL_NAME, } from "./operation-state.js";
|
|
21
|
+
export { getOperationStatus, getPollAfterSeconds, MAX_OPERATION_DEDUP_KEY_LENGTH, OPERATION_CANCEL_TOOL_NAME, OPERATION_ORIGIN, OPERATION_STATUS_TOOL_NAME, OPERATION_STATUSES, } from "./operation-state.js";
|
|
22
|
+
const operationInput = z.object({ operationId: z.string().min(1).max(100) });
|
|
23
|
+
/**
|
|
24
|
+
* For a tool handler: enqueues the operation's job and answers its id with the fixed sentence (ask the status tool,
|
|
25
|
+
* do not start again). Throws on an unknown queue or a dedup key over 150 characters (a bug in the caller); database
|
|
26
|
+
* failures propagate, so call it inside `withToolErrors` or let the SDK answer the error.
|
|
27
|
+
*/
|
|
28
|
+
export async function startOperation(ctx, identity, input) {
|
|
29
|
+
if (input.dedupKey !== undefined && (input.dedupKey.length === 0 || input.dedupKey.length > MAX_OPERATION_DEDUP_KEY_LENGTH)) {
|
|
30
|
+
throw new Error(`startOperation: the dedup key of queue ${input.queue} must have 1 to ${String(MAX_OPERATION_DEDUP_KEY_LENGTH)} characters`);
|
|
31
|
+
}
|
|
32
|
+
if (input.taskTtlSeconds !== undefined && !isTaskTtlValid(input.taskTtlSeconds)) {
|
|
33
|
+
throw new Error(`startOperation: the task lifetime of queue ${input.queue} must be whole seconds from 60 to ${String(MAX_TASK_TTL_SECONDS)}`);
|
|
34
|
+
}
|
|
35
|
+
const enqueued = await enqueueJob(ctx, {
|
|
36
|
+
queue: input.queue,
|
|
37
|
+
payload: input.payload,
|
|
38
|
+
origin: OPERATION_ORIGIN,
|
|
39
|
+
dedupKey: getOwnerPrefix(identity.userId) + (input.dedupKey ?? randomUUID()),
|
|
40
|
+
});
|
|
41
|
+
const options = { ...(input.poll === undefined ? {} : { poll: input.poll }), statusToolName: input.statusToolName ?? OPERATION_STATUS_TOOL_NAME };
|
|
42
|
+
if (input.taskRequest !== undefined && isTasksRequest(input.taskRequest)) {
|
|
43
|
+
return answerOperationTask(ctx, identity, { jobId: enqueued.id, ...(input.taskTtlSeconds === undefined ? {} : { ttlSeconds: input.taskTtlSeconds }), ...(input.poll === undefined ? {} : { poll: input.poll }) });
|
|
44
|
+
}
|
|
45
|
+
if (enqueued.isDuplicate) {
|
|
46
|
+
const joined = await getOperation(ctx, identity, enqueued.id, options);
|
|
47
|
+
if (joined.ok)
|
|
48
|
+
return toolResult(joined.value);
|
|
49
|
+
}
|
|
50
|
+
const messages = getMcpAccessMessages(ctx.config).operations;
|
|
51
|
+
const answer = {
|
|
52
|
+
operationId: enqueued.id,
|
|
53
|
+
status: "queued",
|
|
54
|
+
progress: null,
|
|
55
|
+
pollAfterSeconds: getPollMin(input.poll),
|
|
56
|
+
message: fillToolName(messages.started, options.statusToolName),
|
|
57
|
+
};
|
|
58
|
+
return toolResult(answer);
|
|
59
|
+
}
|
|
60
|
+
/** The caller's operation as `get_operation` answers it; `mcp-access.operation_not_found` for any other id. */
|
|
61
|
+
export async function getOperation(ctx, identity, operationId, options = {}) {
|
|
62
|
+
const job = await findOwnedJob(ctx, identity, operationId);
|
|
63
|
+
if (job === null)
|
|
64
|
+
return err("mcp-access.operation_not_found");
|
|
65
|
+
return ok(await describeOperation(ctx, job, options));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Cancels the caller's operation: a queued one ends at once, a running one is asked to stop (its handler's `signal`
|
|
69
|
+
* aborts on the next heartbeat). `mcp-access.operation_finished` once it has ended.
|
|
70
|
+
*/
|
|
71
|
+
export async function cancelOperation(ctx, identity, operationId, options = {}) {
|
|
72
|
+
const owned = await findOwnedJob(ctx, identity, operationId);
|
|
73
|
+
if (owned === null)
|
|
74
|
+
return err("mcp-access.operation_not_found");
|
|
75
|
+
const cancelled = await requestJobCancel(ctx, owned.id);
|
|
76
|
+
if (!cancelled.ok)
|
|
77
|
+
return err(cancelled.error === "jobs.not_found" ? "mcp-access.operation_not_found" : "mcp-access.operation_finished");
|
|
78
|
+
return ok(await describeOperation(ctx, cancelled.value, options));
|
|
79
|
+
}
|
|
80
|
+
/** Registers the read-only status tool (`get_operation`) for the request's account. */
|
|
81
|
+
export function registerOperationStatusTool(server, options) {
|
|
82
|
+
const name = options.name ?? OPERATION_STATUS_TOOL_NAME;
|
|
83
|
+
const messages = getRegistrationMessages(options);
|
|
84
|
+
const getOptions = {
|
|
85
|
+
statusToolName: name,
|
|
86
|
+
...(options.readResult === undefined ? {} : { readResult: options.readResult }),
|
|
87
|
+
...(options.poll === undefined ? {} : { poll: options.poll }),
|
|
88
|
+
};
|
|
89
|
+
server.registerTool(name, {
|
|
90
|
+
description: options.description ?? messages.statusToolDescription,
|
|
91
|
+
inputSchema: operationInput,
|
|
92
|
+
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
|
|
93
|
+
}, ({ operationId }) => withToolErrors(async () => {
|
|
94
|
+
const ctx = await resolveOperationContext(options);
|
|
95
|
+
return answerValue(await getOperation(ctx, options.identity, operationId, getOptions), getOperationErrorHints(ctx.config));
|
|
96
|
+
}, { label: name }));
|
|
97
|
+
}
|
|
98
|
+
/** Registers the cancel tool (`cancel_operation`), a write: nothing is registered without `identity.canWrite`. */
|
|
99
|
+
export function registerOperationCancelTool(server, options) {
|
|
100
|
+
if (!options.identity.canWrite)
|
|
101
|
+
return;
|
|
102
|
+
const name = options.name ?? OPERATION_CANCEL_TOOL_NAME;
|
|
103
|
+
const messages = getRegistrationMessages(options);
|
|
104
|
+
const cancelOptions = { statusToolName: options.statusToolName ?? OPERATION_STATUS_TOOL_NAME, ...(options.poll === undefined ? {} : { poll: options.poll }) };
|
|
105
|
+
server.registerTool(name, {
|
|
106
|
+
description: options.description ?? messages.cancelToolDescription,
|
|
107
|
+
inputSchema: operationInput,
|
|
108
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false },
|
|
109
|
+
}, ({ operationId }) => withToolErrors(async () => {
|
|
110
|
+
const ctx = await resolveOperationContext(options);
|
|
111
|
+
return answerValue(await cancelOperation(ctx, options.identity, operationId, cancelOptions), getOperationErrorHints(ctx.config));
|
|
112
|
+
}, { label: name }));
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The module's sentences for the operation error codes, as `withToolErrors({ hints })` takes them: for an app that
|
|
116
|
+
* wraps `getOperation` or `cancelOperation` in tools of its own.
|
|
117
|
+
*/
|
|
118
|
+
export function getOperationErrorHints(config) {
|
|
119
|
+
const messages = getMcpAccessMessages(config).operations;
|
|
120
|
+
return { "mcp-access.operation_not_found": messages.notFound, "mcp-access.operation_finished": messages.finished };
|
|
121
|
+
}
|
|
122
|
+
/** The context of this call: the value given, or the getter resolved now. */
|
|
123
|
+
function resolveOperationContext(source) {
|
|
124
|
+
return source.getContext === undefined ? Promise.resolve(source.ctx) : source.getContext();
|
|
125
|
+
}
|
|
126
|
+
/** The texts a registration needs before any call: from the context or config given, else the English dictionary. */
|
|
127
|
+
function getRegistrationMessages(source) {
|
|
128
|
+
const config = source.getContext === undefined ? source.ctx.config : source.config;
|
|
129
|
+
return config === undefined ? mcpAccessMessages.en.operations : getMcpAccessMessages(config).operations;
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/jobs/operations.ts"],"names":[],"mappings":"AAAA,qHAAqH;AACrH,sHAAsH;AACtH,qHAAqH;AACrH,mCAAmC;AACnC,EAAE;AACF,6IAA6I;AAC7I,wGAAwG;AACxG,4DAA4D;AAC5D,EAAE;AACF,sHAAsH;AACtH,iFAAiF;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,GAAG,EAAE,EAAE,EAAyC,MAAM,kBAAkB,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAoB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC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AAM,CAAC,CAAC,CAAC;IACnI,CAAC,EACD,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CACJ,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAqB;IAC1D,MAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC;IACzD,OAAO,EAAE,gCAAgC,EAAE,QAAQ,CAAC,QAAQ,EAAE,+BAA+B,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AACrH,CAAC;AAED,6EAA6E;AAC7E,SAAS,uBAAuB,CAAC,MAA4B;IAC3D,OAAO,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;AAC7F,CAAC;AAED,qHAAqH;AACrH,SAAS,uBAAuB,CAAC,MAA4B;IAC3D,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IACnF,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC;AAC1G,CAAC"}
|
package/dist/messages/en.d.ts
CHANGED
|
@@ -20,6 +20,28 @@ export declare const en: {
|
|
|
20
20
|
pending: string;
|
|
21
21
|
limit: string;
|
|
22
22
|
};
|
|
23
|
+
apiScopes: {
|
|
24
|
+
title: string;
|
|
25
|
+
lead: string;
|
|
26
|
+
read: string;
|
|
27
|
+
write: string;
|
|
28
|
+
writeUnavailable: string;
|
|
29
|
+
};
|
|
30
|
+
apiIssue: {
|
|
31
|
+
title: string;
|
|
32
|
+
name: string;
|
|
33
|
+
nameHint: string;
|
|
34
|
+
scopes: string;
|
|
35
|
+
submit: string;
|
|
36
|
+
pending: string;
|
|
37
|
+
};
|
|
38
|
+
apiIssued: {
|
|
39
|
+
title: string;
|
|
40
|
+
once: string;
|
|
41
|
+
scopes: string;
|
|
42
|
+
tokenTitle: string;
|
|
43
|
+
headerTitle: string;
|
|
44
|
+
};
|
|
23
45
|
issued: {
|
|
24
46
|
title: string;
|
|
25
47
|
once: string;
|
|
@@ -42,6 +64,8 @@ export declare const en: {
|
|
|
42
64
|
};
|
|
43
65
|
list: {
|
|
44
66
|
title: string;
|
|
67
|
+
kindMcp: string;
|
|
68
|
+
kindApi: string;
|
|
45
69
|
empty: string;
|
|
46
70
|
readOnly: string;
|
|
47
71
|
readWrite: string;
|
|
@@ -91,9 +115,37 @@ export declare const en: {
|
|
|
91
115
|
noFields: string;
|
|
92
116
|
fieldRenamed: string;
|
|
93
117
|
};
|
|
118
|
+
confirmation: {
|
|
119
|
+
ask: string;
|
|
120
|
+
fieldDescription: string;
|
|
121
|
+
invalid: string;
|
|
122
|
+
otherTool: string;
|
|
123
|
+
otherAccount: string;
|
|
124
|
+
expired: string;
|
|
125
|
+
argumentsChanged: string;
|
|
126
|
+
estimateChanged: string;
|
|
127
|
+
used: string;
|
|
128
|
+
};
|
|
94
129
|
serverInfoTool: {
|
|
95
130
|
description: string;
|
|
96
131
|
};
|
|
132
|
+
operations: {
|
|
133
|
+
statusToolDescription: string;
|
|
134
|
+
cancelToolDescription: string;
|
|
135
|
+
started: string;
|
|
136
|
+
queued: string;
|
|
137
|
+
running: string;
|
|
138
|
+
cancelRequested: string;
|
|
139
|
+
succeeded: string;
|
|
140
|
+
failed: string;
|
|
141
|
+
cancelled: string;
|
|
142
|
+
notFound: string;
|
|
143
|
+
finished: string;
|
|
144
|
+
/** The `statusMessage` of an MCP task (#977) while its operation has not ended. */
|
|
145
|
+
taskQueued: string;
|
|
146
|
+
taskRunning: string;
|
|
147
|
+
taskCancelRequested: string;
|
|
148
|
+
};
|
|
97
149
|
errors: {
|
|
98
150
|
"mcp-access": {
|
|
99
151
|
name_required: string;
|
|
@@ -103,6 +155,9 @@ export declare const en: {
|
|
|
103
155
|
grant_not_found: string;
|
|
104
156
|
issue_refused: string;
|
|
105
157
|
write_refused: string;
|
|
158
|
+
api_disabled: string;
|
|
159
|
+
scope_required: string;
|
|
160
|
+
scope_unknown: string;
|
|
106
161
|
};
|
|
107
162
|
auth: {
|
|
108
163
|
unauthenticated: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiJX,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtF,CAAC"}
|
package/dist/messages/en.js
CHANGED
|
@@ -20,6 +20,28 @@ export const en = {
|
|
|
20
20
|
pending: "Creating…",
|
|
21
21
|
limit: "You can hold up to {max} active tokens.",
|
|
22
22
|
},
|
|
23
|
+
apiScopes: {
|
|
24
|
+
title: "What a token for other apps can do",
|
|
25
|
+
lead: "Tokens for other apps, such as a phone Shortcut, an automation tool or a script, call this app's HTTP routes. Each one gets only the access you tick.",
|
|
26
|
+
read: "Reads",
|
|
27
|
+
write: "Changes data",
|
|
28
|
+
writeUnavailable: "Changes data (turned off in this app)",
|
|
29
|
+
},
|
|
30
|
+
apiIssue: {
|
|
31
|
+
title: "New token for other apps",
|
|
32
|
+
name: "Name",
|
|
33
|
+
nameHint: "Where you will use it, e.g. iPhone Shortcut or Make.",
|
|
34
|
+
scopes: "Access",
|
|
35
|
+
submit: "Create token",
|
|
36
|
+
pending: "Creating…",
|
|
37
|
+
},
|
|
38
|
+
apiIssued: {
|
|
39
|
+
title: "Token created: {name}",
|
|
40
|
+
once: "Copy it now. It is shown only once; after you leave this page, only its name remains.",
|
|
41
|
+
scopes: "Access: {scopes}.",
|
|
42
|
+
tokenTitle: "Token",
|
|
43
|
+
headerTitle: "Authorization header",
|
|
44
|
+
},
|
|
23
45
|
issued: {
|
|
24
46
|
title: "Token created: {name}",
|
|
25
47
|
once: "Copy it now. It is shown only once; after you leave this page, only its name remains.",
|
|
@@ -42,6 +64,8 @@ export const en = {
|
|
|
42
64
|
},
|
|
43
65
|
list: {
|
|
44
66
|
title: "Your tokens",
|
|
67
|
+
kindMcp: "AI assistant",
|
|
68
|
+
kindApi: "Other apps",
|
|
45
69
|
empty: "You have no tokens yet.",
|
|
46
70
|
readOnly: "Read only",
|
|
47
71
|
readWrite: "Read and change",
|
|
@@ -91,9 +115,37 @@ export const en = {
|
|
|
91
115
|
noFields: "none",
|
|
92
116
|
fieldRenamed: "input.field_renamed: the field \"{field}\" is now \"{renamed}\". Send it as \"{renamed}\".",
|
|
93
117
|
},
|
|
118
|
+
confirmation: {
|
|
119
|
+
ask: "Nothing was done yet. Show the person this estimate and ask whether to go ahead. Only after they agree in the chat, call the tool again with the same arguments and \"confirmation\" set to the value above, before {expiresAt}.",
|
|
120
|
+
fieldDescription: "Leave it out on the first call. Set it only to the confirmation the first call answered, after the person agreed to its estimate.",
|
|
121
|
+
invalid: "input.confirmation_invalid: this is not a confirmation this tool issued. Call the tool again without \"confirmation\" for a new estimate.",
|
|
122
|
+
otherTool: "input.confirmation_other_tool: the confirmation was issued for another tool. Call this tool without \"confirmation\" for its own estimate.",
|
|
123
|
+
otherAccount: "input.confirmation_other_account: the confirmation was issued to another account or access token. Call the tool again without \"confirmation\" for a new estimate.",
|
|
124
|
+
expired: "input.confirmation_expired: the confirmation has expired. Call the tool again without \"confirmation\" for a new estimate and ask the person again.",
|
|
125
|
+
argumentsChanged: "input.confirmation_arguments_changed: the arguments differ from the ones the person agreed to. Call the tool again without \"confirmation\" for an estimate of these arguments and ask the person again.",
|
|
126
|
+
estimateChanged: "input.confirmation_estimate_changed: the estimate has changed since the person agreed. Call the tool again without \"confirmation\" for the new estimate and ask the person again.",
|
|
127
|
+
used: "input.confirmation_used: the confirmation was used already; nothing was done again. Call the tool again without \"confirmation\" if the person wants it done once more.",
|
|
128
|
+
},
|
|
94
129
|
serverInfoTool: {
|
|
95
130
|
description: "Tells which build of this server answers: its name and version (the version changes whenever a tool changes), the release, the commit, when it was built and started, and the changelog when the app publishes one. Use it to check that a change is live.",
|
|
96
131
|
},
|
|
132
|
+
operations: {
|
|
133
|
+
statusToolDescription: "Tells how a long operation started by another tool is going: queued, running (with its progress), succeeded (with its result), failed (with an error code) or cancelled. Call it again after pollAfterSeconds while the operation runs.",
|
|
134
|
+
cancelToolDescription: "Stops a long operation started by another tool. A queued one ends at once; a running one stops at its next safe point.",
|
|
135
|
+
started: "The operation has started and runs in the background. Call {tool} with this operationId after pollAfterSeconds to follow it. Do not call the starting tool again.",
|
|
136
|
+
queued: "The operation is waiting to start. Call {tool} again after pollAfterSeconds.",
|
|
137
|
+
running: "The operation is running. Call {tool} again after pollAfterSeconds.",
|
|
138
|
+
cancelRequested: "The operation was asked to stop and will end shortly. Call {tool} again after pollAfterSeconds.",
|
|
139
|
+
succeeded: "The operation has finished.",
|
|
140
|
+
failed: "The operation failed. Tell the user; start it again only if they ask.",
|
|
141
|
+
cancelled: "The operation was cancelled.",
|
|
142
|
+
notFound: "No operation with this id belongs to this account.",
|
|
143
|
+
finished: "The operation has already ended, so it cannot be cancelled.",
|
|
144
|
+
/** The `statusMessage` of an MCP task (#977) while its operation has not ended. */
|
|
145
|
+
taskQueued: "The operation is waiting to start.",
|
|
146
|
+
taskRunning: "The operation is running.",
|
|
147
|
+
taskCancelRequested: "The operation was asked to stop and will end shortly.",
|
|
148
|
+
},
|
|
97
149
|
errors: {
|
|
98
150
|
"mcp-access": {
|
|
99
151
|
name_required: "Give the token a name, so you can tell it from the others.",
|
|
@@ -103,6 +155,9 @@ export const en = {
|
|
|
103
155
|
grant_not_found: "This app is no longer connected.",
|
|
104
156
|
issue_refused: "Your account cannot create tokens right now.",
|
|
105
157
|
write_refused: "Your account cannot create tokens with write access. Create a read-only token instead.",
|
|
158
|
+
api_disabled: "This app does not offer tokens for other apps.",
|
|
159
|
+
scope_required: "Tick at least one kind of access.",
|
|
160
|
+
scope_unknown: "This app does not offer that access. Reload the page and try again.",
|
|
106
161
|
},
|
|
107
162
|
auth: {
|
|
108
163
|
unauthenticated: "Your session has ended. Log in again.",
|
package/dist/messages/en.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../src/messages/en.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,IAAI,EAAE;QACJ,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,uIAAuI;KAC9I;IACD,KAAK,EAAE;QACL,KAAK,EAAE,0BAA0B;QACjC,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,cAAc;QACrB,gBAAgB,EAAE,uCAAuC;KAC1D;IACD,KAAK,EAAE;QACL,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,uDAAuD;QACjE,QAAQ,EAAE,eAAe;QACzB,YAAY,EAAE,0CAA0C;QACxD,MAAM,EAAE,cAAc;QACtB,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,yCAAyC;KACjD;IACD,MAAM,EAAE;QACN,KAAK,EAAE,uBAAuB;QAC9B,IAAI,EAAE,uFAAuF;QAC7F,OAAO,EAAE,qBAAqB;QAC9B,QAAQ,EAAE,2BAA2B;QACrC,SAAS,EAAE,sCAAsC;QACjD,WAAW,EAAE,oCAAoC;Q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,yOAAyO;QAC3O,qBAAqB,EAAE,wHAAwH;QAC/I,OAAO,EAAE,mKAAmK;QAC5K,MAAM,EAAE,8EAA8E;QACtF,OAAO,EAAE,qEAAqE;QAC9E,eAAe,EAAE,iGAAiG;QAClH,SAAS,EAAE,6BAA6B;QACxC,MAAM,EAAE,uEAAuE;QAC/E,SAAS,EAAE,8BAA8B;QACzC,QAAQ,EAAE,oDAAoD;QAC9D,QAAQ,EAAE,6DAA6D;QACvE,mFAAmF;QACnF,UAAU,EAAE,oCAAoC;QAChD,WAAW,EAAE,2BAA2B;QACxC,mBAAmB,EAAE,uDAAuD;KAC7E;IACD,MAAM,EAAE;QACN,YAAY,EAAE;YACZ,aAAa,EAAE,4DAA4D;YAC3E,aAAa,EAAE,uBAAuB;YACtC,mBAAmB,EAAE,sFAAsF;YAC3G,eAAe,EAAE,gEAAgE;YACjF,eAAe,EAAE,kCAAkC;YACnD,aAAa,EAAE,8CAA8C;YAC7D,aAAa,EAAE,wFAAwF;YACvG,YAAY,EAAE,gDAAgD;YAC9D,cAAc,EAAE,mCAAmC;YACnD,aAAa,EAAE,qEAAqE;SACrF;QACD,IAAI,EAAE;YACJ,eAAe,EAAE,uCAAuC;SACzD;QACD,IAAI,EAAE;YACJ,eAAe,EAAE,0DAA0D;YAC3E,UAAU,EAAE,0DAA0D;SACvE;KACF;CACF,CAAC"}
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -24,6 +24,28 @@ export declare const mcpAccessMessages: {
|
|
|
24
24
|
pending: string;
|
|
25
25
|
limit: string;
|
|
26
26
|
};
|
|
27
|
+
apiScopes: {
|
|
28
|
+
title: string;
|
|
29
|
+
lead: string;
|
|
30
|
+
read: string;
|
|
31
|
+
write: string;
|
|
32
|
+
writeUnavailable: string;
|
|
33
|
+
};
|
|
34
|
+
apiIssue: {
|
|
35
|
+
title: string;
|
|
36
|
+
name: string;
|
|
37
|
+
nameHint: string;
|
|
38
|
+
scopes: string;
|
|
39
|
+
submit: string;
|
|
40
|
+
pending: string;
|
|
41
|
+
};
|
|
42
|
+
apiIssued: {
|
|
43
|
+
title: string;
|
|
44
|
+
once: string;
|
|
45
|
+
scopes: string;
|
|
46
|
+
tokenTitle: string;
|
|
47
|
+
headerTitle: string;
|
|
48
|
+
};
|
|
27
49
|
issued: {
|
|
28
50
|
title: string;
|
|
29
51
|
once: string;
|
|
@@ -46,6 +68,8 @@ export declare const mcpAccessMessages: {
|
|
|
46
68
|
};
|
|
47
69
|
list: {
|
|
48
70
|
title: string;
|
|
71
|
+
kindMcp: string;
|
|
72
|
+
kindApi: string;
|
|
49
73
|
empty: string;
|
|
50
74
|
readOnly: string;
|
|
51
75
|
readWrite: string;
|
|
@@ -95,9 +119,36 @@ export declare const mcpAccessMessages: {
|
|
|
95
119
|
noFields: string;
|
|
96
120
|
fieldRenamed: string;
|
|
97
121
|
};
|
|
122
|
+
confirmation: {
|
|
123
|
+
ask: string;
|
|
124
|
+
fieldDescription: string;
|
|
125
|
+
invalid: string;
|
|
126
|
+
otherTool: string;
|
|
127
|
+
otherAccount: string;
|
|
128
|
+
expired: string;
|
|
129
|
+
argumentsChanged: string;
|
|
130
|
+
estimateChanged: string;
|
|
131
|
+
used: string;
|
|
132
|
+
};
|
|
98
133
|
serverInfoTool: {
|
|
99
134
|
description: string;
|
|
100
135
|
};
|
|
136
|
+
operations: {
|
|
137
|
+
statusToolDescription: string;
|
|
138
|
+
cancelToolDescription: string;
|
|
139
|
+
started: string;
|
|
140
|
+
queued: string;
|
|
141
|
+
running: string;
|
|
142
|
+
cancelRequested: string;
|
|
143
|
+
succeeded: string;
|
|
144
|
+
failed: string;
|
|
145
|
+
cancelled: string;
|
|
146
|
+
notFound: string;
|
|
147
|
+
finished: string;
|
|
148
|
+
taskQueued: string;
|
|
149
|
+
taskRunning: string;
|
|
150
|
+
taskCancelRequested: string;
|
|
151
|
+
};
|
|
101
152
|
errors: {
|
|
102
153
|
"mcp-access": {
|
|
103
154
|
name_required: string;
|
|
@@ -107,6 +158,9 @@ export declare const mcpAccessMessages: {
|
|
|
107
158
|
grant_not_found: string;
|
|
108
159
|
issue_refused: string;
|
|
109
160
|
write_refused: string;
|
|
161
|
+
api_disabled: string;
|
|
162
|
+
scope_required: string;
|
|
163
|
+
scope_unknown: string;
|
|
110
164
|
};
|
|
111
165
|
auth: {
|
|
112
166
|
unauthenticated: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,0GAA0G;AAC1G,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,0GAA0G;AAC1G,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAS,CAAC;AAExC,MAAM,MAAM,iBAAiB,GAAG,OAAO,EAAE,CAAC;AAE1C,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAOlG"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { type Err, type Ok } from "@softure-ai/core";
|
|
2
|
-
import type { IssueTokenFormState, McpIssueRefusal, McpIssueRefusalCode } from "../contract.js";
|
|
2
|
+
import type { AccessTokenKind, IssueTokenFormState, McpIssueRefusal, McpIssueRefusalCode } from "../contract.js";
|
|
3
3
|
/** What the gate learns about the token about to be issued. */
|
|
4
4
|
export interface IssueGateInput {
|
|
5
5
|
readonly userId: string;
|
|
6
|
+
/** For an API token: whether any asked scope writes. */
|
|
6
7
|
readonly canWrite: boolean;
|
|
8
|
+
/** `mcp` for an assistant, `api` for the app's HTTP routes (the form's `kind` field). */
|
|
9
|
+
readonly kind: AccessTokenKind;
|
|
10
|
+
/** The scopes asked for an API token, as the form sent them; empty for an MCP token. */
|
|
11
|
+
readonly scopes: readonly string[];
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
14
|
* How the gate answers: `ok()` lets the token through, `err(code)` refuses with the code's copy,
|
|
@@ -15,7 +20,11 @@ export type BeforeIssueGate = (input: IssueGateInput) => IssueGateResult | Promi
|
|
|
15
20
|
export interface IssueTokenOptions {
|
|
16
21
|
readonly beforeIssue?: BeforeIssueGate;
|
|
17
22
|
}
|
|
18
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Issues a token for the signed-in user, after the gate, and returns its plaintext once: an MCP token with
|
|
25
|
+
* the setup snippets (`ok`), or, when the form sends `kind=api`, an API token with the ticked `scope:<name>`
|
|
26
|
+
* fields and the app's examples (`api-ok`).
|
|
27
|
+
*/
|
|
19
28
|
export declare function issueToken(_previous: IssueTokenFormState, formData: FormData, options?: IssueTokenOptions): Promise<IssueTokenFormState>;
|
|
20
29
|
/** A gate's refusal with the app's own text, which the token page shows instead of the code's copy. */
|
|
21
30
|
export declare function refuseIssue(code: McpIssueRefusalCode, message: string): McpIssueRefusal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-token.d.ts","sourceRoot":"","sources":["../../src/next/issue-token.ts"],"names":[],"mappings":"AAaA,OAAO,EAA6D,KAAK,GAAG,EAAE,KAAK,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAKhH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,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