@chronary/mcp 1.7.1 → 1.8.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 +17 -0
- package/README.md +21 -1
- package/dist/args.js +5 -1
- package/dist/args.js.map +1 -1
- package/dist/index.js +6 -19
- package/dist/index.js.map +1 -1
- package/dist/server.js +42 -0
- package/dist/server.js.map +1 -0
- package/dist/setup.js +178 -0
- package/dist/setup.js.map +1 -0
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@chronary/mcp` will be documented in this file starting with the soft-launch release.
|
|
4
4
|
|
|
5
|
+
## 1.8.0 — unreleased
|
|
6
|
+
|
|
7
|
+
- `CHRONARY_API_KEY` is now optional (#2335). Without it, the server no longer exits. It starts with one tool, `sign_up_anonymous` (`agent_name?`, `tos_version?`), plus the usual prompts and resources.
|
|
8
|
+
- `sign_up_anonymous` signs up with no email through `POST /v1/agent/sign-up/anonymous`:
|
|
9
|
+
- It returns `api_key`, `org_id`, `agent_id`, `claim_url`, `expires_at`, `plan` and `next_steps`.
|
|
10
|
+
- On success it loads the full tool set (still filtered by `--tools`) with the new key in the same process, then removes itself. Clients receive `notifications/tools/list_changed`.
|
|
11
|
+
- The organization runs on Sandbox limits, with no email and no webhook endpoints.
|
|
12
|
+
- Give `claim_url` to the person who should own the calendar. If nobody claims it, the key stops working and the data is deleted after 72 hours.
|
|
13
|
+
- The key lives only in the running process, so set `CHRONARY_API_KEY` to keep it.
|
|
14
|
+
- Calling the tool accepts the Terms of Service for the person or organization the agent acts for.
|
|
15
|
+
- Without a `tos_version`, it uses the current version and retries once on 409 `tos_version_stale`. A `tos_version` you pass is never swapped: its 409 comes back with `current_version`.
|
|
16
|
+
- It never retries a refusal (503) or a per-network 429.
|
|
17
|
+
- A lost response (timeout or connection error) returns `connection_error`, with a hint: the organization may already exist, and calling again creates another one.
|
|
18
|
+
- The server is built in `src/server.ts` (`createChronaryMcpServer`), so tests drive the same server in process.
|
|
19
|
+
- Started with a key, the server is unchanged: still 65 tools.
|
|
20
|
+
- `server.json`: `CHRONARY_API_KEY` is `isRequired: false`.
|
|
21
|
+
|
|
5
22
|
## 1.7.1 — 2026-11-16
|
|
6
23
|
|
|
7
24
|
- Server instructions and proposal tool descriptions (from `@chronary/toolkit` 1.7.1): scheduling proposals and temporal holds need a Developer or Pro plan, not Pro; `cancel_proposal` works on every plan (#2331). Still 65 tools.
|
package/README.md
CHANGED
|
@@ -12,6 +12,26 @@ Published to the [Official MCP Registry](https://registry.modelcontextprotocol.i
|
|
|
12
12
|
2. An API key from the console (starts with `chr_sk_`).
|
|
13
13
|
3. Node.js ≥ 18 on the machine where the MCP client runs.
|
|
14
14
|
|
|
15
|
+
No account yet? The server can also start without a key (see [Start without a key](#start-without-a-key)).
|
|
16
|
+
|
|
17
|
+
## Start without a key
|
|
18
|
+
|
|
19
|
+
If you leave `CHRONARY_API_KEY` unset, the server starts with a single tool, `sign_up_anonymous`. When the agent calls it:
|
|
20
|
+
|
|
21
|
+
1. It signs up with no email and creates a **claimable** calendar organization. The key works at once at Sandbox limits.
|
|
22
|
+
2. It loads every calendar tool with the new key in the same session (clients get `notifications/tools/list_changed`).
|
|
23
|
+
3. It returns `api_key`, `claim_url` and `expires_at`.
|
|
24
|
+
|
|
25
|
+
Then:
|
|
26
|
+
|
|
27
|
+
- **Claim it.** The agent gives `claim_url` to the person who should own the calendar. When that person opens it while signed in to the [console](https://console.chronary.ai), the agent, calendar and events move into their account, and the key stops working. The link works once.
|
|
28
|
+
- **Or let it expire.** If nobody claims it within 72 hours, the key stops working and the data is deleted.
|
|
29
|
+
- **Know the limits.** The organization sends no email and cannot create webhook endpoints.
|
|
30
|
+
- **Keep the key.** The key lives only in the running server. To keep it across restarts, put it in your client config as `CHRONARY_API_KEY`.
|
|
31
|
+
- **Terms.** Calling the tool accepts the [Terms of Service](https://chronary.ai/terms) for the person or organization the agent acts for.
|
|
32
|
+
|
|
33
|
+
The no-email sign-up is not switched on everywhere. Where it is off, the tool returns `anonymous_signup_disabled`. Guide: https://docs.chronary.ai/guides/claimable-calendars/
|
|
34
|
+
|
|
15
35
|
## Client configurations
|
|
16
36
|
|
|
17
37
|
All examples use `npx -y @chronary/mcp`, which downloads and runs the latest version on demand. No install step required.
|
|
@@ -261,7 +281,7 @@ Some event and webhook text is written by people outside your organization: a bo
|
|
|
261
281
|
|
|
262
282
|
**"spawn npx ENOENT" on Windows** — use the `cmd /c npx ...` form shown above.
|
|
263
283
|
|
|
264
|
-
**"CHRONARY_API_KEY is
|
|
284
|
+
**Only `sign_up_anonymous` shows up** — the server did not get a key (it logs "CHRONARY_API_KEY is not set" to stderr). The env block must be nested under the server entry, not at the top of the config file.
|
|
265
285
|
|
|
266
286
|
**Tools aren't showing up** — restart the MCP client after editing the config. Most clients only read the config on startup.
|
|
267
287
|
|
package/dist/args.js
CHANGED
|
@@ -72,7 +72,11 @@ Usage:
|
|
|
72
72
|
chronary-mcp [options]
|
|
73
73
|
|
|
74
74
|
Environment:
|
|
75
|
-
CHRONARY_API_KEY
|
|
75
|
+
CHRONARY_API_KEY Your Chronary API key (chr_sk_... or chr_ak_...).
|
|
76
|
+
Without it the server offers one tool, sign_up_anonymous:
|
|
77
|
+
it signs up with no email (a claimable calendar, deleted
|
|
78
|
+
after 72 hours unless a person claims it) and then loads
|
|
79
|
+
every tool with the new key.
|
|
76
80
|
|
|
77
81
|
Options:
|
|
78
82
|
--tools <names> Comma-separated list of tool names to expose (default: all ${TOOL_NAMES.length} tools).
|
package/dist/args.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,mBAAmB,CAAC;AAa9D,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAS,UAAU,CAAC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E,EAAE,KAAK,EAAE,KAAK,EAAE,kCAAkC,KAAK,EAAE,EAAE,CAAC;gBACzE,CAAC;gBACD,sEAAsE;gBACtE,6DAA6D;gBAC7D,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;oBACjG,OAAO;wBACL,EAAE,EAAE,KAAK;wBACT,KAAK,EAAE,6FAA6F,KAAK,EAAE;qBAC5G,CAAC;gBACJ,CAAC;gBACD,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC;gBACvB,CAAC,EAAE,CAAC;gBACJ,MAAM;YACR,CAAC;YAED;gBACE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,qBAAqB,GAAG,EAAE,EAAE,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AACrC,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;kFAayD,UAAU,CAAC,MAAM;;;;;;;;;CASlG,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
// MCP uses stdout exclusively for JSON-RPC — redirect any accidental console.log to stderr
|
|
3
3
|
// so library/transitive writes don't corrupt the transport stream.
|
|
4
4
|
console.log = console.error;
|
|
5
|
-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
6
5
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
7
|
-
import { ChronaryToolkit, MCP_SERVER_INSTRUCTIONS } from '@chronary/toolkit/mcp';
|
|
8
6
|
import { parseArgs, HELP_TEXT } from './args.js';
|
|
9
7
|
import { VERSION } from './version.js';
|
|
8
|
+
import { createChronaryMcpServer } from './server.js';
|
|
10
9
|
const parsed = parseArgs(process.argv.slice(2));
|
|
11
10
|
if (!parsed.ok) {
|
|
12
11
|
console.error(`Error: ${parsed.error}`);
|
|
@@ -21,26 +20,14 @@ if (parsed.value.version) {
|
|
|
21
20
|
console.error(VERSION);
|
|
22
21
|
process.exit(0);
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
process.exit(1);
|
|
29
|
-
}
|
|
30
|
-
const toolkit = new ChronaryToolkit({
|
|
31
|
-
apiKey,
|
|
23
|
+
// Without CHRONARY_API_KEY the server starts with only sign_up_anonymous
|
|
24
|
+
// (#2335; src/server.ts). Tools, prompts and resources are built there.
|
|
25
|
+
const server = createChronaryMcpServer({
|
|
26
|
+
apiKey: process.env.CHRONARY_API_KEY,
|
|
32
27
|
baseUrl: parsed.value.baseUrl,
|
|
33
28
|
tools: parsed.value.tools,
|
|
34
|
-
|
|
35
|
-
// from the underlying SDK; this header surfaces the wrapper identity.
|
|
36
|
-
extraHeaders: { 'X-Chronary-Client': `chronary-mcp/${VERSION}` },
|
|
29
|
+
log: (message) => console.error(message),
|
|
37
30
|
});
|
|
38
|
-
// Same server instructions as the hosted server, including the rule that
|
|
39
|
-
// third-party event and webhook text is data, not instructions (#1621).
|
|
40
|
-
const server = new McpServer({ name: 'chronary-mcp', version: VERSION }, { instructions: MCP_SERVER_INSTRUCTIONS });
|
|
41
|
-
toolkit.registerAll(server);
|
|
42
|
-
toolkit.registerPrompts(server);
|
|
43
|
-
toolkit.registerResources(server);
|
|
44
31
|
const transport = new StdioServerTransport();
|
|
45
32
|
const shutdown = async (signal) => {
|
|
46
33
|
console.error(`\nReceived ${signal}, shutting down chronary-mcp...`);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,2FAA2F;AAC3F,mEAAmE;AACnE,OAAO,CAAC,GAAG,GAAG,OAAO,CA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E,MAAM,CAAC,KAAK,CAAC,KAAK;IACzB,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAE7C,MAAM,QAAQ,GAAG,KAAK,EAAE,MAAsB,EAAE,EAAE;IAChD,OAAO,CAAC,KAAK,CAAC,cAAc,MAAM,iCAAiC,CAAC,CAAC;IACrE,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;AAEF,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC"}
|
package/dist/server.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Builds the chronary-mcp server (tools, prompts, resources) without a
|
|
2
|
+
// transport, so src/index.ts connects it to stdio and the tests connect it to
|
|
3
|
+
// an in-memory transport and drive it like a client would.
|
|
4
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
|
+
import { ChronaryToolkit, MCP_SERVER_INSTRUCTIONS } from '@chronary/toolkit/mcp';
|
|
6
|
+
import { VERSION } from './version.js';
|
|
7
|
+
import { registerSetupTool } from './setup.js';
|
|
8
|
+
export function createChronaryMcpServer(options) {
|
|
9
|
+
// Identify MCP traffic to the API for analytics. UA stays as `chronary-ts/...`
|
|
10
|
+
// from the underlying SDK; this header surfaces the wrapper identity.
|
|
11
|
+
const extraHeaders = { 'X-Chronary-Client': `chronary-mcp/${VERSION}` };
|
|
12
|
+
const toolkitFor = (apiKey) => new ChronaryToolkit({
|
|
13
|
+
apiKey,
|
|
14
|
+
baseUrl: options.baseUrl,
|
|
15
|
+
tools: options.tools,
|
|
16
|
+
extraHeaders,
|
|
17
|
+
});
|
|
18
|
+
// Same server instructions as the hosted server, including the rule that
|
|
19
|
+
// third-party event and webhook text is data, not instructions (#1621).
|
|
20
|
+
const server = new McpServer({ name: 'chronary-mcp', version: VERSION }, { instructions: MCP_SERVER_INSTRUCTIONS });
|
|
21
|
+
if (options.apiKey) {
|
|
22
|
+
const toolkit = toolkitFor(options.apiKey);
|
|
23
|
+
toolkit.registerAll(server);
|
|
24
|
+
toolkit.registerPrompts(server);
|
|
25
|
+
toolkit.registerResources(server);
|
|
26
|
+
return server;
|
|
27
|
+
}
|
|
28
|
+
// No key (#2335): serve only `sign_up_anonymous`. Its success registers the
|
|
29
|
+
// full tool set with the new key, in this process. Prompts and resources are
|
|
30
|
+
// static, and must be registered before connecting.
|
|
31
|
+
options.log?.('chronary-mcp: CHRONARY_API_KEY is not set; serving only the sign_up_anonymous tool.');
|
|
32
|
+
const keyless = toolkitFor('');
|
|
33
|
+
keyless.registerPrompts(server);
|
|
34
|
+
keyless.registerResources(server);
|
|
35
|
+
registerSetupTool(server, {
|
|
36
|
+
baseUrl: options.baseUrl,
|
|
37
|
+
extraHeaders,
|
|
38
|
+
onSignedUp: (newKey) => toolkitFor(newKey).registerAll(server),
|
|
39
|
+
});
|
|
40
|
+
return server;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE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,MAAM,CAAC,CAAC;IAChC,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAClC,iBAAiB,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,YAAY;QACZ,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC;KAC/D,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/setup.js
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// Keyless start (#2335): `chronary-mcp` launched without CHRONARY_API_KEY
|
|
2
|
+
// serves one tool, `sign_up_anonymous`. It creates a claimable organization
|
|
3
|
+
// (POST /v1/agent/sign-up/anonymous: no email, a key that works at once at
|
|
4
|
+
// Sandbox limits, a one-time claim link for a person, deleted after 72 hours
|
|
5
|
+
// unclaimed). On success the caller registers the full tool set with the new
|
|
6
|
+
// key in this same process, and this tool goes away.
|
|
7
|
+
//
|
|
8
|
+
// The hosted server (https://api.chronary.ai/mcp) has no such tool: it runs
|
|
9
|
+
// tools only with a key, and a key issued mid-session can't be written into a
|
|
10
|
+
// hosted client's config. A stdio process can swap its key in place.
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import { Chronary, ChronaryError } from '@chronary/sdk';
|
|
13
|
+
export const SETUP_TOOL_NAME = 'sign_up_anonymous';
|
|
14
|
+
export const DEFAULT_BASE_URL = 'https://api.chronary.ai';
|
|
15
|
+
export const DEFAULT_AGENT_NAME = 'MCP agent';
|
|
16
|
+
export const SETUP_TOOL_DESCRIPTION = [
|
|
17
|
+
'Sign up for Chronary without an email and get a working calendar API key. This server was started without CHRONARY_API_KEY, so this is the only tool until you call it.',
|
|
18
|
+
'It creates a claimable organization: an agent, an Organization key that works at once (Sandbox plan: small monthly quotas; no email, no webhook endpoints), and a one-time claim_url.',
|
|
19
|
+
'Give claim_url to the person who should own the calendar: opening it while signed in to the Chronary console moves the agent, calendar and events into their account. Unclaimed, the key stops working and everything is deleted after 72 hours (expires_at).',
|
|
20
|
+
'After it succeeds the full set of calendar tools is available in this session.',
|
|
21
|
+
'Calling it accepts the Terms of Service (https://chronary.ai/terms) for the person or organization you act for.',
|
|
22
|
+
].join(' ');
|
|
23
|
+
export const setupInputSchema = {
|
|
24
|
+
agent_name: z
|
|
25
|
+
.string()
|
|
26
|
+
.min(1)
|
|
27
|
+
.max(100)
|
|
28
|
+
.optional()
|
|
29
|
+
.describe(`Display name for the new agent (default "${DEFAULT_AGENT_NAME}").`),
|
|
30
|
+
tos_version: z
|
|
31
|
+
.string()
|
|
32
|
+
.min(1)
|
|
33
|
+
.max(64)
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('Terms of Service version you accept. Omit it to accept the current version (read from GET /v1/auth/terms/current). A version you pass is never replaced: if it is out of date, the tool returns the current one.'),
|
|
36
|
+
};
|
|
37
|
+
/** GET /v1/auth/terms/current → the version a sign-up must accept. */
|
|
38
|
+
export async function fetchCurrentTermsVersion(baseUrl, fetchFn = fetch) {
|
|
39
|
+
const res = await fetchFn(`${baseUrl.replace(/\/+$/, '')}/v1/auth/terms/current`, {
|
|
40
|
+
headers: { Accept: 'application/json' },
|
|
41
|
+
});
|
|
42
|
+
const body = (await res.json().catch(() => null));
|
|
43
|
+
if (!res.ok || typeof body?.version !== 'string' || body.version === '') {
|
|
44
|
+
throw new Error(`Could not read the current Terms version (HTTP ${res.status}).`);
|
|
45
|
+
}
|
|
46
|
+
return body.version;
|
|
47
|
+
}
|
|
48
|
+
function staleCurrentVersion(err) {
|
|
49
|
+
if (!(err instanceof ChronaryError) || err.status !== 409 || err.errorType !== 'tos_version_stale')
|
|
50
|
+
return undefined;
|
|
51
|
+
const v = err.body?.current_version;
|
|
52
|
+
return typeof v === 'string' && v !== '' ? v : undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Sign up with no email. Without a `tos_version` it reads the current one and,
|
|
56
|
+
* on 409 `tos_version_stale` (the Terms moved between the two calls), retries
|
|
57
|
+
* once with `current_version`. A `tos_version` the caller passed is never
|
|
58
|
+
* swapped for another: its 409 goes back to the caller with the current
|
|
59
|
+
* version (setupErrorResult).
|
|
60
|
+
*/
|
|
61
|
+
export async function signUpAnonymous(client, params, termsVersion) {
|
|
62
|
+
const agentName = params.agent_name ?? DEFAULT_AGENT_NAME;
|
|
63
|
+
const pinned = params.tos_version !== undefined;
|
|
64
|
+
const first = params.tos_version ?? (await termsVersion());
|
|
65
|
+
try {
|
|
66
|
+
return await client.agentAuth.signUpAnonymous({ agent_name: agentName, tos_version: first });
|
|
67
|
+
}
|
|
68
|
+
catch (err) {
|
|
69
|
+
const current = staleCurrentVersion(err);
|
|
70
|
+
if (pinned || !current || current === first)
|
|
71
|
+
throw err;
|
|
72
|
+
return await client.agentAuth.signUpAnonymous({ agent_name: agentName, tos_version: current });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const text = (value, isError = false) => ({
|
|
76
|
+
content: [{ type: 'text', text: JSON.stringify(value) }],
|
|
77
|
+
...(isError ? { isError: true } : {}),
|
|
78
|
+
});
|
|
79
|
+
/** A tool error the model can act on; API errors keep their type and message. */
|
|
80
|
+
export function setupErrorResult(err) {
|
|
81
|
+
if (err instanceof ChronaryError) {
|
|
82
|
+
const current = staleCurrentVersion(err);
|
|
83
|
+
const hint = err.errorType === 'anonymous_signup_disabled'
|
|
84
|
+
? 'Sign-up without an email is not available on this API. Create an account at https://console.chronary.ai (or sign up with an email through POST /v1/agent/sign-up), then restart this server with CHRONARY_API_KEY set.'
|
|
85
|
+
: err.status === 429
|
|
86
|
+
? 'Too many sign-ups from this network. Try again later (see retry_after_seconds), or sign up with an email.'
|
|
87
|
+
: current
|
|
88
|
+
? `The tos_version you passed is out of date; the current version is ${current}. Read https://chronary.ai/terms, then call again with tos_version "${current}" (or without tos_version) to accept it.`
|
|
89
|
+
: err.status === 0
|
|
90
|
+
? // A lost response (timeout or connection error): the request may have
|
|
91
|
+
// reached the API. Calling again signs up a second organization.
|
|
92
|
+
'The sign-up response was lost (timeout or connection error). The organization may already exist; calling sign_up_anonymous again creates another one and spends more of this network\'s sign-up budget (3 an hour). Check the connection before retrying.'
|
|
93
|
+
: undefined;
|
|
94
|
+
const retryAfter = err.headers?.get?.('retry-after');
|
|
95
|
+
return text({
|
|
96
|
+
error: {
|
|
97
|
+
type: err.errorType ?? (err.status === 0 ? 'connection_error' : `http_${err.status}`),
|
|
98
|
+
message: err.message,
|
|
99
|
+
...(current ? { current_version: current } : {}),
|
|
100
|
+
...(retryAfter ? { retry_after_seconds: Number(retryAfter) || retryAfter } : {}),
|
|
101
|
+
...(hint ? { hint } : {}),
|
|
102
|
+
},
|
|
103
|
+
}, true);
|
|
104
|
+
}
|
|
105
|
+
return text({ error: { type: 'setup_failed', message: err instanceof Error ? err.message : String(err) } }, true);
|
|
106
|
+
}
|
|
107
|
+
/** What the agent should do next; returned with the key. */
|
|
108
|
+
export function nextSteps(toolsLoaded = true) {
|
|
109
|
+
return [
|
|
110
|
+
'Give claim_url to the person who should own this calendar now: it is shown only here and works once. Opening it while signed in to https://console.chronary.ai moves the agent, calendar and events into their account; this key then stops working.',
|
|
111
|
+
'Unclaimed, the key stops working at expires_at (72 hours) and the calendar and its events are deleted.',
|
|
112
|
+
toolsLoaded
|
|
113
|
+
? 'The calendar tools are now available in this session. The key lives only in this server process: to keep using it after a restart, set CHRONARY_API_KEY to api_key in this MCP server\'s configuration. If your client does not show the new tools, restart it with that variable set.'
|
|
114
|
+
: 'The calendar tools could not be loaded in this session. Restart this MCP server with CHRONARY_API_KEY set to api_key.',
|
|
115
|
+
'Sandbox plan: no email and no webhook endpoints.',
|
|
116
|
+
];
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Register `sign_up_anonymous`. A second call while one is running shares
|
|
120
|
+
* it; after a success the tool removes itself (the server then announces the
|
|
121
|
+
* changed tool list) and a stale call answers that the key is already set.
|
|
122
|
+
*/
|
|
123
|
+
export function registerSetupTool(server, deps) {
|
|
124
|
+
const baseUrl = deps.baseUrl ?? DEFAULT_BASE_URL;
|
|
125
|
+
// No retries: a 503 here is a refusal (switched off, paused, daily cap), a
|
|
126
|
+
// network-budget 429 can say "in 20 minutes", and a retried POST after a
|
|
127
|
+
// lost response would create a second org. The agent decides what next.
|
|
128
|
+
const createClient = deps.createClient ??
|
|
129
|
+
(() => new Chronary({ apiKey: '', baseUrl, extraHeaders: deps.extraHeaders, maxRetries: 0 }));
|
|
130
|
+
let inflight = null;
|
|
131
|
+
let done = false;
|
|
132
|
+
const run = async (params) => {
|
|
133
|
+
let result;
|
|
134
|
+
try {
|
|
135
|
+
result = await signUpAnonymous(createClient(), {
|
|
136
|
+
agent_name: typeof params.agent_name === 'string' ? params.agent_name : undefined,
|
|
137
|
+
tos_version: typeof params.tos_version === 'string' ? params.tos_version : undefined,
|
|
138
|
+
}, () => fetchCurrentTermsVersion(baseUrl, deps.fetch));
|
|
139
|
+
}
|
|
140
|
+
catch (err) {
|
|
141
|
+
return setupErrorResult(err);
|
|
142
|
+
}
|
|
143
|
+
// The org exists now: whatever happens next, the key and claim link go
|
|
144
|
+
// back to the agent, or nobody could ever claim or use it.
|
|
145
|
+
done = true;
|
|
146
|
+
let loaded = true;
|
|
147
|
+
try {
|
|
148
|
+
deps.onSignedUp(result.api_key);
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
loaded = false;
|
|
152
|
+
}
|
|
153
|
+
handle?.remove?.();
|
|
154
|
+
return text({ ...result, next_steps: nextSteps(loaded) });
|
|
155
|
+
};
|
|
156
|
+
const handle = server.registerTool(SETUP_TOOL_NAME, {
|
|
157
|
+
description: SETUP_TOOL_DESCRIPTION,
|
|
158
|
+
inputSchema: setupInputSchema,
|
|
159
|
+
annotations: {
|
|
160
|
+
title: 'Sign up without an email',
|
|
161
|
+
readOnlyHint: false,
|
|
162
|
+
destructiveHint: false,
|
|
163
|
+
idempotentHint: false,
|
|
164
|
+
openWorldHint: true,
|
|
165
|
+
},
|
|
166
|
+
}, async (params) => {
|
|
167
|
+
if (done) {
|
|
168
|
+
return text({ error: { type: 'already_signed_up', message: 'This server already has a key; use the calendar tools.' } }, true);
|
|
169
|
+
}
|
|
170
|
+
if (!inflight) {
|
|
171
|
+
inflight = run(params).finally(() => {
|
|
172
|
+
inflight = null;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
return inflight;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,4EAA4E;AAC5E,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,qDAAqD;AACrD,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,qEAAqE;AACrE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGxD,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAEnD,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE9C,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,yKAAyK;IACzK,uLAAuL;IACvL,+PAA+P;IAC/P,gFAAgF;IAChF,iHAAiH;CAClH,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4CAA4C,kBAAkB,KAAK,CAAC;IAChF,WAAW,EAAE,CAAC;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
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chronary/mcp",
|
|
3
3
|
"mcpName": "ai.chronary/mcp",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"description": "MCP server for Chronary — calendar tools for AI assistants (Claude Desktop, Cursor, VS Code, Windsurf)",
|
|
6
6
|
"author": "Chronary (https://chronary.ai)",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@chronary/sdk": "^0.
|
|
45
|
-
"@chronary/toolkit": "^1.7.
|
|
44
|
+
"@chronary/sdk": "^0.13.0",
|
|
45
|
+
"@chronary/toolkit": "^1.7.2",
|
|
46
46
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
47
47
|
"zod": "^4.6"
|
|
48
48
|
},
|