@chronary/mcp 0.1.2
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 +12 -0
- package/LICENSE +189 -0
- package/README.md +259 -0
- package/dist/args.js +76 -0
- package/dist/args.js.map +1 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +58 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@chronary/mcp` will be documented in this file starting with the soft-launch release.
|
|
4
|
+
|
|
5
|
+
## 0.1.2 — 2026-05-20
|
|
6
|
+
|
|
7
|
+
- Initial public release as **`@chronary/mcp`** on npm (scoped, org-owned).
|
|
8
|
+
- Renamed from the unscoped `chronary-mcp` (briefly published 2026-05-20 then unpublished within the 72-hour window — never publicly consumed). The rename brings the package in line with the `@chronary/sdk`, `@chronary/toolkit`, and `@chronary/schemas` siblings and makes it discoverable on https://www.npmjs.com/org/chronary.
|
|
9
|
+
- The CLI binary name remains **`chronary-mcp`** — only the npm install path changed:
|
|
10
|
+
- Old: `npx -y chronary-mcp`
|
|
11
|
+
- New: `npx -y @chronary/mcp`
|
|
12
|
+
- Add `CONTRIBUTING.md` to the public mirror documenting that this repo is generated from a private monorepo; PRs are welcome as proof-of-concept but can't be merged directly. No behavioral change.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding any notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2026 Chronary
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# @chronary/mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [Chronary](https://chronary.ai) — calendar tools for AI assistants.
|
|
4
|
+
|
|
5
|
+
Drops 23 calendar tools (list/create/update/delete events, check availability, manage webhooks, iCal subscriptions, usage) into any MCP-compatible client: Claude Desktop, Cursor, VS Code Copilot, Claude Code, Windsurf.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
1. A Chronary account — sign up at [chronary.ai](https://chronary.ai).
|
|
10
|
+
2. An API key from the console (starts with `chr_sk_`).
|
|
11
|
+
3. Node.js ≥ 18 on the machine where the MCP client runs.
|
|
12
|
+
|
|
13
|
+
## Client configurations
|
|
14
|
+
|
|
15
|
+
All examples use `npx -y @chronary/mcp`, which downloads and runs the latest version on demand. No install step required.
|
|
16
|
+
|
|
17
|
+
### Claude Desktop
|
|
18
|
+
|
|
19
|
+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
20
|
+
|
|
21
|
+
**macOS / Linux:**
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"chronary": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "@chronary/mcp"],
|
|
29
|
+
"env": {
|
|
30
|
+
"CHRONARY_API_KEY": "chr_sk_..."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Windows** (uses `cmd /c` because `spawn` can't resolve `npx.cmd` directly):
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"mcpServers": {
|
|
42
|
+
"chronary": {
|
|
43
|
+
"command": "cmd",
|
|
44
|
+
"args": ["/c", "npx", "-y", "@chronary/mcp"],
|
|
45
|
+
"env": {
|
|
46
|
+
"CHRONARY_API_KEY": "chr_sk_..."
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Restart Claude Desktop after saving.
|
|
54
|
+
|
|
55
|
+
### Cursor
|
|
56
|
+
|
|
57
|
+
Edit `.cursor/mcp.json` (project-level) or `~/.cursor/mcp.json` (user-level):
|
|
58
|
+
|
|
59
|
+
**macOS / Linux:**
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"mcpServers": {
|
|
64
|
+
"chronary": {
|
|
65
|
+
"command": "npx",
|
|
66
|
+
"args": ["-y", "@chronary/mcp"],
|
|
67
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Windows:**
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"mcpServers": {
|
|
78
|
+
"chronary": {
|
|
79
|
+
"command": "cmd",
|
|
80
|
+
"args": ["/c", "npx", "-y", "@chronary/mcp"],
|
|
81
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### VS Code Copilot
|
|
88
|
+
|
|
89
|
+
Edit `.vscode/mcp.json` (workspace) or run the **MCP: Open User Configuration** command for a user-level config. VS Code uses a different top-level key (`servers`) and requires an explicit `type`:
|
|
90
|
+
|
|
91
|
+
**macOS / Linux:**
|
|
92
|
+
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"servers": {
|
|
96
|
+
"chronary": {
|
|
97
|
+
"type": "stdio",
|
|
98
|
+
"command": "npx",
|
|
99
|
+
"args": ["-y", "@chronary/mcp"],
|
|
100
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Windows:**
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
{
|
|
110
|
+
"servers": {
|
|
111
|
+
"chronary": {
|
|
112
|
+
"type": "stdio",
|
|
113
|
+
"command": "cmd",
|
|
114
|
+
"args": ["/c", "npx", "-y", "@chronary/mcp"],
|
|
115
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Claude Code
|
|
122
|
+
|
|
123
|
+
Edit `.mcp.json` at the project root, or `~/.claude.json` for user-level:
|
|
124
|
+
|
|
125
|
+
**macOS / Linux:**
|
|
126
|
+
|
|
127
|
+
```json
|
|
128
|
+
{
|
|
129
|
+
"mcpServers": {
|
|
130
|
+
"chronary": {
|
|
131
|
+
"command": "npx",
|
|
132
|
+
"args": ["-y", "@chronary/mcp"],
|
|
133
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Windows:**
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"mcpServers": {
|
|
144
|
+
"chronary": {
|
|
145
|
+
"command": "cmd",
|
|
146
|
+
"args": ["/c", "npx", "-y", "@chronary/mcp"],
|
|
147
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Windsurf
|
|
154
|
+
|
|
155
|
+
Edit `~/.codeium/windsurf/mcp_config.json` (`%USERPROFILE%\.codeium\windsurf\mcp_config.json` on Windows):
|
|
156
|
+
|
|
157
|
+
**macOS / Linux:**
|
|
158
|
+
|
|
159
|
+
```json
|
|
160
|
+
{
|
|
161
|
+
"mcpServers": {
|
|
162
|
+
"chronary": {
|
|
163
|
+
"command": "npx",
|
|
164
|
+
"args": ["-y", "@chronary/mcp"],
|
|
165
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Windows:**
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"mcpServers": {
|
|
176
|
+
"chronary": {
|
|
177
|
+
"command": "cmd",
|
|
178
|
+
"args": ["/c", "npx", "-y", "@chronary/mcp"],
|
|
179
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
> **Windsurf limit:** Cascade enforces a hard cap of 100 total tools across all MCP servers and 20 tool calls per prompt. Chronary exposes 23; consider `--tools` filtering if you stack multiple servers.
|
|
186
|
+
|
|
187
|
+
## Reducing context with `--tools`
|
|
188
|
+
|
|
189
|
+
Exposing all 23 tools uses ~3–5k LLM tokens per request. For focused workflows, whitelist only what you need:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"mcpServers": {
|
|
194
|
+
"chronary": {
|
|
195
|
+
"command": "npx",
|
|
196
|
+
"args": [
|
|
197
|
+
"-y", "@chronary/mcp",
|
|
198
|
+
"--tools", "list_events,check_availability,create_event"
|
|
199
|
+
],
|
|
200
|
+
"env": { "CHRONARY_API_KEY": "chr_sk_..." }
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Pointing at a non-production API
|
|
207
|
+
|
|
208
|
+
For self-hosted Chronary instances or development against a local API:
|
|
209
|
+
|
|
210
|
+
```json
|
|
211
|
+
{
|
|
212
|
+
"args": ["-y", "@chronary/mcp", "--base-url", "http://localhost:8787"]
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Tools exposed
|
|
217
|
+
|
|
218
|
+
| Tool | Read-only | Destructive |
|
|
219
|
+
|------|-----------|-------------|
|
|
220
|
+
| `list_calendars`, `get_calendar` | ✓ | |
|
|
221
|
+
| `create_calendar`, `update_calendar` | | |
|
|
222
|
+
| `delete_calendar` | | ✓ |
|
|
223
|
+
| `list_events`, `get_event` | ✓ | |
|
|
224
|
+
| `create_event`, `update_event` | | |
|
|
225
|
+
| `delete_event` | | ✓ |
|
|
226
|
+
| `check_availability` | ✓ | |
|
|
227
|
+
| `list_webhooks`, `get_webhook` | ✓ | |
|
|
228
|
+
| `create_webhook`, `update_webhook` | | |
|
|
229
|
+
| `delete_webhook` | | ✓ |
|
|
230
|
+
| `list_ical_subscriptions`, `get_ical_subscription` | ✓ | |
|
|
231
|
+
| `create_ical_subscription`, `update_ical_subscription`, `sync_ical_subscription` | | |
|
|
232
|
+
| `delete_ical_subscription` | | ✓ |
|
|
233
|
+
| `get_usage` | ✓ | |
|
|
234
|
+
|
|
235
|
+
Tool annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`) are surfaced to MCP clients so hosts can decide whether to require user confirmation.
|
|
236
|
+
|
|
237
|
+
## Troubleshooting
|
|
238
|
+
|
|
239
|
+
**"spawn npx ENOENT" on Windows** — use the `cmd /c npx ...` form shown above.
|
|
240
|
+
|
|
241
|
+
**"CHRONARY_API_KEY is required"** — the env block must be nested under the server entry, not at the top of the config file.
|
|
242
|
+
|
|
243
|
+
**Tools aren't showing up** — restart the MCP client after editing the config. Most clients only read the config on startup.
|
|
244
|
+
|
|
245
|
+
**Verify the binary runs locally:**
|
|
246
|
+
|
|
247
|
+
```sh
|
|
248
|
+
CHRONARY_API_KEY=test npx -y @chronary/mcp --help
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Links
|
|
252
|
+
|
|
253
|
+
- [Chronary docs](https://docs.chronary.ai)
|
|
254
|
+
- [MCP spec](https://modelcontextprotocol.io)
|
|
255
|
+
- [Report an issue](https://github.com/Chronary/chronary/issues)
|
|
256
|
+
|
|
257
|
+
## License
|
|
258
|
+
|
|
259
|
+
Apache-2.0
|
package/dist/args.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TOOL_NAMES } from '@chronary/toolkit';
|
|
2
|
+
const VALID_TOOL_NAMES = new Set(TOOL_NAMES);
|
|
3
|
+
/**
|
|
4
|
+
* Parse CLI arguments. Pure function — no side effects, no process.exit.
|
|
5
|
+
* Caller decides what to do with errors.
|
|
6
|
+
*/
|
|
7
|
+
export function parseArgs(argv) {
|
|
8
|
+
const result = {};
|
|
9
|
+
for (let i = 0; i < argv.length; i++) {
|
|
10
|
+
const arg = argv[i];
|
|
11
|
+
switch (arg) {
|
|
12
|
+
case '--version':
|
|
13
|
+
case '-v':
|
|
14
|
+
result.version = true;
|
|
15
|
+
break;
|
|
16
|
+
case '--help':
|
|
17
|
+
case '-h':
|
|
18
|
+
result.help = true;
|
|
19
|
+
break;
|
|
20
|
+
case '--tools': {
|
|
21
|
+
const value = argv[i + 1];
|
|
22
|
+
if (!value || value.startsWith('-')) {
|
|
23
|
+
return { ok: false, error: '--tools requires a comma-separated list of tool names' };
|
|
24
|
+
}
|
|
25
|
+
const requested = value.split(',').map((t) => t.trim()).filter(Boolean);
|
|
26
|
+
if (requested.length === 0) {
|
|
27
|
+
return { ok: false, error: '--tools list cannot be empty' };
|
|
28
|
+
}
|
|
29
|
+
const invalid = requested.filter((t) => !VALID_TOOL_NAMES.has(t));
|
|
30
|
+
if (invalid.length > 0) {
|
|
31
|
+
return { ok: false, error: `unknown tool name(s): ${invalid.join(', ')}` };
|
|
32
|
+
}
|
|
33
|
+
result.tools = requested;
|
|
34
|
+
i++;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
case '--base-url': {
|
|
38
|
+
const value = argv[i + 1];
|
|
39
|
+
if (!value || value.startsWith('-')) {
|
|
40
|
+
return { ok: false, error: '--base-url requires a URL' };
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
new URL(value);
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return { ok: false, error: `--base-url is not a valid URL: ${value}` };
|
|
47
|
+
}
|
|
48
|
+
result.baseUrl = value;
|
|
49
|
+
i++;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
return { ok: false, error: `unknown argument: ${arg}` };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return { ok: true, value: result };
|
|
57
|
+
}
|
|
58
|
+
export const HELP_TEXT = `chronary-mcp — MCP server for Chronary
|
|
59
|
+
|
|
60
|
+
Usage:
|
|
61
|
+
chronary-mcp [options]
|
|
62
|
+
|
|
63
|
+
Environment:
|
|
64
|
+
CHRONARY_API_KEY Required. Your Chronary API key (chr_sk_...).
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
--tools <names> Comma-separated list of tool names to expose (default: all 23 tools).
|
|
68
|
+
Example: --tools list_events,check_availability,create_event
|
|
69
|
+
--base-url <url> Override the API base URL (default: https://api.chronary.ai).
|
|
70
|
+
--version, -v Print version and exit.
|
|
71
|
+
--help, -h Print this help and exit.
|
|
72
|
+
|
|
73
|
+
Docs:
|
|
74
|
+
https://docs.chronary.ai
|
|
75
|
+
`;
|
|
76
|
+
//# sourceMappingURL=args.js.map
|
package/dist/args.js.map
ADDED
|
@@ -0,0 +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,CAAC;AAErD;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,IAAuB;IAC/C,MAAM,MAAM,GAAe,EAAE,CAAC;IAE9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,QAAQ,GAAG,EAAE,CAAC;YACZ,KAAK,WAAW,CAAC;YACjB,KAAK,IAAI;gBACP,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;gBACtB,MAAM;YAER,KAAK,QAAQ,CAAC;YACd,KAAK,IAAI;gBACP,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;gBACnB,MAAM;YAER,KAAK,SAAS,CAA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,EAAE,CAAC;gBAC3D,CAAC;gBACD,IAAI,CAAC;oBACH,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;gBACjB,CAAC;gBAAC,MAAM,CAAC;oBACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,kCAAkC,KAAK,EAAE,EAAE,CAAC;gBACzE,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;;;;;;;;;;;;;;;;;CAiBxB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// MCP uses stdout exclusively for JSON-RPC — redirect any accidental console.log to stderr
|
|
3
|
+
// so library/transitive writes don't corrupt the transport stream.
|
|
4
|
+
console.log = console.error;
|
|
5
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
6
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
7
|
+
import { ChronaryToolkit } from '@chronary/toolkit/mcp';
|
|
8
|
+
import { parseArgs, HELP_TEXT } from './args.js';
|
|
9
|
+
import { VERSION } from './version.js';
|
|
10
|
+
const parsed = parseArgs(process.argv.slice(2));
|
|
11
|
+
if (!parsed.ok) {
|
|
12
|
+
console.error(`Error: ${parsed.error}`);
|
|
13
|
+
console.error(`Run 'chronary-mcp --help' for usage.`);
|
|
14
|
+
process.exit(2);
|
|
15
|
+
}
|
|
16
|
+
if (parsed.value.help) {
|
|
17
|
+
console.error(HELP_TEXT);
|
|
18
|
+
process.exit(0);
|
|
19
|
+
}
|
|
20
|
+
if (parsed.value.version) {
|
|
21
|
+
console.error(VERSION);
|
|
22
|
+
process.exit(0);
|
|
23
|
+
}
|
|
24
|
+
const apiKey = process.env.CHRONARY_API_KEY;
|
|
25
|
+
if (!apiKey) {
|
|
26
|
+
console.error('Error: CHRONARY_API_KEY environment variable is required.');
|
|
27
|
+
console.error(`Run 'chronary-mcp --help' for usage.`);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
const toolkit = new ChronaryToolkit({
|
|
31
|
+
apiKey,
|
|
32
|
+
baseUrl: parsed.value.baseUrl,
|
|
33
|
+
tools: parsed.value.tools,
|
|
34
|
+
// Identify MCP traffic to the API for analytics. UA stays as `chronary-ts/...`
|
|
35
|
+
// from the underlying SDK; this header surfaces the wrapper identity.
|
|
36
|
+
extraHeaders: { 'X-Chronary-Client': `chronary-mcp/${VERSION}` },
|
|
37
|
+
});
|
|
38
|
+
const server = new McpServer({ name: 'chronary-mcp', version: VERSION });
|
|
39
|
+
toolkit.registerAll(server);
|
|
40
|
+
const transport = new StdioServerTransport();
|
|
41
|
+
const shutdown = async (signal) => {
|
|
42
|
+
console.error(`\nReceived ${signal}, shutting down chronary-mcp...`);
|
|
43
|
+
try {
|
|
44
|
+
await server.close();
|
|
45
|
+
}
|
|
46
|
+
catch (err) {
|
|
47
|
+
console.error('Error during shutdown:', err);
|
|
48
|
+
}
|
|
49
|
+
process.exit(0);
|
|
50
|
+
};
|
|
51
|
+
process.on('SIGINT', () => { void shutdown('SIGINT'); });
|
|
52
|
+
process.on('SIGTERM', () => { void shutdown('SIGTERM'); });
|
|
53
|
+
await server.connect(transport);
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,2FAA2F;AAC3F,mEAAmE;AACnE,OAAO,CAAC,GAAG,GAAG,OA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OAAO,GAAG,OAAO,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chronary/mcp",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "MCP server for Chronary — calendar tools for AI assistants (Claude Desktop, Cursor, VS Code, Windsurf)",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"chronary-mcp": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"CHANGELOG.md"
|
|
15
|
+
],
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"mcp",
|
|
21
|
+
"model-context-protocol",
|
|
22
|
+
"chronary",
|
|
23
|
+
"calendar",
|
|
24
|
+
"ai",
|
|
25
|
+
"ai-agent",
|
|
26
|
+
"claude",
|
|
27
|
+
"cursor",
|
|
28
|
+
"vscode"
|
|
29
|
+
],
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/Chronary/chronary-mcp"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://docs.chronary.ai",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/Chronary/chronary-mcp/issues"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
43
|
+
"zod": "^3.23",
|
|
44
|
+
"@chronary/sdk": "0.1.4",
|
|
45
|
+
"@chronary/toolkit": "0.1.3"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^22.0.0",
|
|
49
|
+
"typescript": "^5.7.0",
|
|
50
|
+
"vitest": "^3.0.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsc",
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"test:watch": "vitest"
|
|
57
|
+
}
|
|
58
|
+
}
|