@taghost/mcp 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,230 @@
1
+ import {
2
+ ALL_MCP_SCOPES,
3
+ MCP_SCOPES,
4
+ TagHostClient,
5
+ bundleDirectory,
6
+ bundleVirtualFiles,
7
+ createTagHostMcpServer,
8
+ findProjectBinding,
9
+ getApiUrl,
10
+ hasMcpScope,
11
+ normalizeMcpScopes,
12
+ resolveAuthToken,
13
+ sanitizeAuthToken,
14
+ startServer,
15
+ validateReadOnlySql
16
+ } from "./chunk-ZSIUY6WV.js";
17
+
18
+ // src/index.ts
19
+ import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
20
+
21
+ // src/openapi.ts
22
+ var TAGHOST_OPENAPI_SPEC = {
23
+ openapi: "3.1.0",
24
+ info: {
25
+ title: "TagHost Cloud Agent API",
26
+ description: "Unified Edge Cloud platform API for autonomous AI agents, ChatGPT Actions, and Codex. Enables provisioning projects, headless collections, commerce orders, domains, and serverless D1 SQL.",
27
+ version: "1.0.0",
28
+ contact: {
29
+ name: "TagHost Platform Support",
30
+ url: "https://taghost.io",
31
+ email: "support@taghost.io"
32
+ }
33
+ },
34
+ servers: [
35
+ {
36
+ url: "https://api.taghost.io",
37
+ description: "Production TagHost Control Plane"
38
+ }
39
+ ],
40
+ paths: {
41
+ "/mcp": {
42
+ post: {
43
+ operationId: "callMcpJsonRpc",
44
+ summary: "Execute Model Context Protocol (MCP) JSON-RPC Request",
45
+ description: "Execute any of the 53 TagHost MCP platform tools via standard JSON-RPC 2.0.",
46
+ requestBody: {
47
+ required: true,
48
+ content: {
49
+ "application/json": {
50
+ schema: {
51
+ type: "object",
52
+ required: ["jsonrpc", "method"],
53
+ properties: {
54
+ jsonrpc: { type: "string", example: "2.0" },
55
+ id: { type: ["string", "number"], example: 1 },
56
+ method: { type: "string", example: "tools/call" },
57
+ params: { type: "object" }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ },
63
+ responses: {
64
+ 200: {
65
+ description: "JSON-RPC response from MCP Server",
66
+ content: {
67
+ "application/json": {
68
+ schema: { type: "object" }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "/projects": {
76
+ get: {
77
+ operationId: "listProjects",
78
+ summary: "List all workspace projects",
79
+ description: "Retrieve all web hosting and application projects belonging to the authenticated workspace.",
80
+ responses: {
81
+ 200: {
82
+ description: "List of projects"
83
+ }
84
+ }
85
+ },
86
+ post: {
87
+ operationId: "createProject",
88
+ summary: "Create a new project",
89
+ description: "Provisions a new web project with an instant live edge URL.",
90
+ requestBody: {
91
+ required: true,
92
+ content: {
93
+ "application/json": {
94
+ schema: {
95
+ type: "object",
96
+ required: ["name"],
97
+ properties: {
98
+ name: { type: "string", description: "Project name" },
99
+ slug: { type: "string", description: "Custom subdomain slug" },
100
+ framework: { type: "string", description: "Detected framework (react, next, astro, vite, html)" }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ },
106
+ responses: {
107
+ 201: { description: "Project created successfully" }
108
+ }
109
+ }
110
+ },
111
+ "/projects/{id}": {
112
+ get: {
113
+ operationId: "getProject",
114
+ summary: "Get project details",
115
+ parameters: [
116
+ {
117
+ name: "id",
118
+ in: "path",
119
+ required: true,
120
+ schema: { type: "string" },
121
+ description: "Project ID"
122
+ }
123
+ ],
124
+ responses: {
125
+ 200: { description: "Project details" }
126
+ }
127
+ }
128
+ },
129
+ "/projects/{id}/collections": {
130
+ get: {
131
+ operationId: "listCollections",
132
+ summary: "List CMS collections",
133
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
134
+ responses: { 200: { description: "List of collections" } }
135
+ },
136
+ post: {
137
+ operationId: "createCollection",
138
+ summary: "Create a new CMS collection schema",
139
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
140
+ requestBody: {
141
+ required: true,
142
+ content: {
143
+ "application/json": {
144
+ schema: {
145
+ type: "object",
146
+ required: ["name", "fields"],
147
+ properties: {
148
+ name: { type: "string" },
149
+ description: { type: "string" },
150
+ fields: { type: "array", items: { type: "object" } }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ responses: { 201: { description: "Collection created" } }
157
+ }
158
+ },
159
+ "/projects/{id}/orders": {
160
+ get: {
161
+ operationId: "listOrders",
162
+ summary: "List storefront commerce orders",
163
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
164
+ responses: { 200: { description: "List of orders" } }
165
+ }
166
+ },
167
+ "/projects/{id}/sql/query": {
168
+ post: {
169
+ operationId: "querySql",
170
+ summary: "Execute read-only SQL on project D1 database",
171
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
172
+ requestBody: {
173
+ required: true,
174
+ content: {
175
+ "application/json": {
176
+ schema: {
177
+ type: "object",
178
+ required: ["query"],
179
+ properties: {
180
+ query: { type: "string" },
181
+ params: { type: "array", items: { type: "string" } }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ },
187
+ responses: {
188
+ 200: { description: "SQL query results" },
189
+ 403: { description: "Mutations blocked \u2014 read-only access only" }
190
+ }
191
+ }
192
+ },
193
+ "/domains/check": {
194
+ get: {
195
+ operationId: "checkDomain",
196
+ summary: "Check domain availability and pricing",
197
+ parameters: [{ name: "domain", in: "query", required: true, schema: { type: "string" } }],
198
+ responses: { 200: { description: "Domain availability status" } }
199
+ }
200
+ }
201
+ },
202
+ components: {
203
+ securitySchemes: {
204
+ bearerAuth: {
205
+ type: "http",
206
+ scheme: "bearer",
207
+ bearerFormat: "API Token"
208
+ }
209
+ }
210
+ },
211
+ security: [{ bearerAuth: [] }]
212
+ };
213
+ export {
214
+ ALL_MCP_SCOPES,
215
+ InMemoryTransport,
216
+ MCP_SCOPES,
217
+ TAGHOST_OPENAPI_SPEC,
218
+ TagHostClient,
219
+ bundleDirectory,
220
+ bundleVirtualFiles,
221
+ createTagHostMcpServer,
222
+ findProjectBinding,
223
+ getApiUrl,
224
+ hasMcpScope,
225
+ normalizeMcpScopes,
226
+ resolveAuthToken,
227
+ sanitizeAuthToken,
228
+ startServer,
229
+ validateReadOnlySql
230
+ };
@@ -0,0 +1,208 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ interface TagHostClientOptions {
4
+ apiUrl?: string;
5
+ token?: string;
6
+ }
7
+ declare class TagHostClient {
8
+ apiUrl: string;
9
+ private token;
10
+ constructor(options?: TagHostClientOptions);
11
+ private request;
12
+ resolveProjectId(explicitId?: string): Promise<string>;
13
+ getMe(): Promise<any>;
14
+ listProjects(): Promise<any>;
15
+ getProject(projectId: string): Promise<any>;
16
+ createProject(data: {
17
+ name: string;
18
+ slug?: string;
19
+ framework?: string;
20
+ }): Promise<any>;
21
+ getProjectEnv(projectId: string): Promise<any>;
22
+ setProjectEnv(projectId: string, key: string, value: string, target?: 'production' | 'preview' | 'all'): Promise<any>;
23
+ deleteProjectEnv(projectId: string, key: string): Promise<any>;
24
+ deployBundle(projectId: string, zipBytes: Uint8Array, options?: {
25
+ branch?: string;
26
+ preview?: boolean;
27
+ commitMessage?: string;
28
+ }): Promise<any>;
29
+ getProjectFiles(projectId: string): Promise<any>;
30
+ publishProjectFiles(projectId: string, data: {
31
+ files?: Record<string, string>;
32
+ deletedPaths?: string[];
33
+ message?: string;
34
+ }): Promise<any>;
35
+ listDeployments(projectId: string): Promise<any>;
36
+ rollbackDeployment(projectId: string, deploymentId: string): Promise<any>;
37
+ setDeploymentExpiry(projectId: string, deploymentId: string, ttlSeconds?: number, neverExpire?: boolean): Promise<any>;
38
+ checkDomainAvailability(domain: string): Promise<any>;
39
+ searchDomains(query: string): Promise<any>;
40
+ checkoutDomain(projectId: string, data: {
41
+ domain: string;
42
+ years?: number;
43
+ registrantContact?: any;
44
+ }): Promise<any>;
45
+ attachDomain(projectId: string, domain: string): Promise<any>;
46
+ verifyDomain(projectId: string, domain: string): Promise<any>;
47
+ listDnsRecords(projectId: string, domain: string): Promise<any>;
48
+ createDnsRecord(projectId: string, domain: string, record: {
49
+ type: string;
50
+ name: string;
51
+ content: string;
52
+ ttl?: number;
53
+ priority?: number;
54
+ }): Promise<any>;
55
+ updateDnsRecord(projectId: string, domain: string, recordId: string, record: {
56
+ type?: string;
57
+ name?: string;
58
+ content?: string;
59
+ ttl?: number;
60
+ priority?: number;
61
+ }): Promise<any>;
62
+ deleteDnsRecord(projectId: string, domain: string, recordId: string): Promise<any>;
63
+ listMailThreads(projectId: string, options?: {
64
+ mailboxId?: string;
65
+ query?: string;
66
+ limit?: number;
67
+ }): Promise<any>;
68
+ getMailThread(projectId: string, threadId: string): Promise<any>;
69
+ sendMail(projectId: string, data: {
70
+ mailboxId?: string;
71
+ to: string;
72
+ subject: string;
73
+ text?: string;
74
+ html?: string;
75
+ cc?: string[];
76
+ bcc?: string[];
77
+ }): Promise<any>;
78
+ listMailboxes(projectId: string): Promise<any>;
79
+ createMailbox(projectId: string, data: {
80
+ localPart: string;
81
+ domain?: string;
82
+ displayName?: string;
83
+ password?: string;
84
+ }): Promise<any>;
85
+ getMailDomainVerification(projectId: string, domain: string): Promise<any>;
86
+ getCommerceTheme(projectId: string): Promise<any>;
87
+ updateCommerceTheme(projectId: string, theme: Record<string, any>): Promise<any>;
88
+ getCommerceGateways(projectId: string): Promise<any>;
89
+ updateCommerceGateway(projectId: string, provider: 'paystack' | 'stripe', config: Record<string, any>): Promise<any>;
90
+ migrateWooCommerce(projectId: string, payload: Record<string, any>): Promise<any>;
91
+ cloneWordPressSite(projectId: string, payload: Record<string, any>): Promise<any>;
92
+ listOrders(projectId: string, options?: {
93
+ status?: string;
94
+ limit?: number;
95
+ }): Promise<any>;
96
+ getOrder(projectId: string, orderId: string): Promise<any>;
97
+ updateOrder(projectId: string, orderId: string, data: {
98
+ status?: string;
99
+ trackingNumber?: string;
100
+ trackingCarrier?: string;
101
+ trackingUrl?: string;
102
+ }): Promise<any>;
103
+ listCoupons(projectId: string): Promise<any>;
104
+ createCoupon(projectId: string, coupon: {
105
+ code: string;
106
+ discountType: 'percentage' | 'fixed';
107
+ discountAmount: number;
108
+ maxUses?: number;
109
+ expiresAt?: number;
110
+ }): Promise<any>;
111
+ deleteCoupon(projectId: string, couponId: string): Promise<any>;
112
+ listCollections(projectId: string): Promise<any>;
113
+ createCollection(projectId: string, data: {
114
+ name: string;
115
+ displayName?: string;
116
+ schemaFields?: any[];
117
+ }): Promise<any>;
118
+ listCollectionItems(projectId: string, collectionId: string): Promise<any>;
119
+ upsertCollectionItem(projectId: string, collectionId: string, data: Record<string, any>, itemId?: string): Promise<any>;
120
+ publishCollectionItem(projectId: string, collectionId: string, itemId: string, publish?: boolean): Promise<any>;
121
+ getContent(projectId: string): Promise<any>;
122
+ patchContent(projectId: string, patches: Record<string, string>): Promise<any>;
123
+ getFormSubmissions(projectId: string, options?: {
124
+ formName?: string;
125
+ limit?: number;
126
+ }): Promise<any>;
127
+ listSequences(projectId: string): Promise<any>;
128
+ createSequence(projectId: string, data: {
129
+ name: string;
130
+ triggerEvent?: string;
131
+ steps?: any[];
132
+ }): Promise<any>;
133
+ enrollSequenceLead(projectId: string, sequenceId: string, data: {
134
+ leadEmail: string;
135
+ leadName?: string;
136
+ metadata?: Record<string, any>;
137
+ }): Promise<any>;
138
+ listWebhooks(projectId: string): Promise<any>;
139
+ createWebhook(projectId: string, data: {
140
+ url: string;
141
+ events: string[];
142
+ secret?: string;
143
+ }): Promise<any>;
144
+ deleteWebhook(projectId: string, webhookId: string): Promise<any>;
145
+ listSqlTables(projectId: string): Promise<any>;
146
+ executeSqlQuery(projectId: string, query: string, params?: any[]): Promise<any>;
147
+ getWorkspaceUsage(): Promise<any>;
148
+ resolveWorkspaceId(explicitId?: string): Promise<string>;
149
+ listTasks(workspaceId: string, options?: {
150
+ completed?: boolean;
151
+ threadId?: string;
152
+ }): Promise<any>;
153
+ createTask(workspaceId: string, data: {
154
+ title: string;
155
+ description?: string;
156
+ dueAt?: number | null;
157
+ priority?: 'urgent' | 'high' | 'medium' | 'low';
158
+ color?: string | null;
159
+ threadId?: string | null;
160
+ assigneeId?: string | null;
161
+ }): Promise<any>;
162
+ updateTask(workspaceId: string, taskId: string, data: Record<string, any>): Promise<any>;
163
+ deleteTask(workspaceId: string, taskId: string): Promise<any>;
164
+ listCalendarEvents(workspaceId: string, options?: {
165
+ start?: number;
166
+ end?: number;
167
+ mailboxId?: string;
168
+ }): Promise<any>;
169
+ createCalendarEvent(workspaceId: string, data: {
170
+ title: string;
171
+ description?: string;
172
+ location?: string;
173
+ startAt: number;
174
+ endAt: number;
175
+ allDay?: boolean;
176
+ recurrence?: string;
177
+ attendees?: any;
178
+ color?: string;
179
+ mailboxId?: string;
180
+ }): Promise<any>;
181
+ updateCalendarEvent(workspaceId: string, eventId: string, data: Record<string, any>): Promise<any>;
182
+ deleteCalendarEvent(workspaceId: string, eventId: string): Promise<any>;
183
+ createMeetRoom(data: {
184
+ name?: string;
185
+ scheduledStartAt?: number;
186
+ allowGuests?: boolean;
187
+ recordRoom?: boolean;
188
+ lockRoom?: boolean;
189
+ }): Promise<any>;
190
+ listNotes(workspaceId: string): Promise<any>;
191
+ createNote(workspaceId: string, data: {
192
+ title: string;
193
+ content?: string;
194
+ color?: string;
195
+ }): Promise<any>;
196
+ }
197
+
198
+ interface ServerOptions extends TagHostClientOptions {
199
+ name?: string;
200
+ version?: string;
201
+ }
202
+ declare function createTagHostMcpServer(options?: ServerOptions): {
203
+ server: McpServer;
204
+ client: TagHostClient;
205
+ };
206
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
207
+
208
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };
@@ -0,0 +1,208 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ interface TagHostClientOptions {
4
+ apiUrl?: string;
5
+ token?: string;
6
+ }
7
+ declare class TagHostClient {
8
+ apiUrl: string;
9
+ private token;
10
+ constructor(options?: TagHostClientOptions);
11
+ private request;
12
+ resolveProjectId(explicitId?: string): Promise<string>;
13
+ getMe(): Promise<any>;
14
+ listProjects(): Promise<any>;
15
+ getProject(projectId: string): Promise<any>;
16
+ createProject(data: {
17
+ name: string;
18
+ slug?: string;
19
+ framework?: string;
20
+ }): Promise<any>;
21
+ getProjectEnv(projectId: string): Promise<any>;
22
+ setProjectEnv(projectId: string, key: string, value: string, target?: 'production' | 'preview' | 'all'): Promise<any>;
23
+ deleteProjectEnv(projectId: string, key: string): Promise<any>;
24
+ deployBundle(projectId: string, zipBytes: Uint8Array, options?: {
25
+ branch?: string;
26
+ preview?: boolean;
27
+ commitMessage?: string;
28
+ }): Promise<any>;
29
+ getProjectFiles(projectId: string): Promise<any>;
30
+ publishProjectFiles(projectId: string, data: {
31
+ files?: Record<string, string>;
32
+ deletedPaths?: string[];
33
+ message?: string;
34
+ }): Promise<any>;
35
+ listDeployments(projectId: string): Promise<any>;
36
+ rollbackDeployment(projectId: string, deploymentId: string): Promise<any>;
37
+ setDeploymentExpiry(projectId: string, deploymentId: string, ttlSeconds?: number, neverExpire?: boolean): Promise<any>;
38
+ checkDomainAvailability(domain: string): Promise<any>;
39
+ searchDomains(query: string): Promise<any>;
40
+ checkoutDomain(projectId: string, data: {
41
+ domain: string;
42
+ years?: number;
43
+ registrantContact?: any;
44
+ }): Promise<any>;
45
+ attachDomain(projectId: string, domain: string): Promise<any>;
46
+ verifyDomain(projectId: string, domain: string): Promise<any>;
47
+ listDnsRecords(projectId: string, domain: string): Promise<any>;
48
+ createDnsRecord(projectId: string, domain: string, record: {
49
+ type: string;
50
+ name: string;
51
+ content: string;
52
+ ttl?: number;
53
+ priority?: number;
54
+ }): Promise<any>;
55
+ updateDnsRecord(projectId: string, domain: string, recordId: string, record: {
56
+ type?: string;
57
+ name?: string;
58
+ content?: string;
59
+ ttl?: number;
60
+ priority?: number;
61
+ }): Promise<any>;
62
+ deleteDnsRecord(projectId: string, domain: string, recordId: string): Promise<any>;
63
+ listMailThreads(projectId: string, options?: {
64
+ mailboxId?: string;
65
+ query?: string;
66
+ limit?: number;
67
+ }): Promise<any>;
68
+ getMailThread(projectId: string, threadId: string): Promise<any>;
69
+ sendMail(projectId: string, data: {
70
+ mailboxId?: string;
71
+ to: string;
72
+ subject: string;
73
+ text?: string;
74
+ html?: string;
75
+ cc?: string[];
76
+ bcc?: string[];
77
+ }): Promise<any>;
78
+ listMailboxes(projectId: string): Promise<any>;
79
+ createMailbox(projectId: string, data: {
80
+ localPart: string;
81
+ domain?: string;
82
+ displayName?: string;
83
+ password?: string;
84
+ }): Promise<any>;
85
+ getMailDomainVerification(projectId: string, domain: string): Promise<any>;
86
+ getCommerceTheme(projectId: string): Promise<any>;
87
+ updateCommerceTheme(projectId: string, theme: Record<string, any>): Promise<any>;
88
+ getCommerceGateways(projectId: string): Promise<any>;
89
+ updateCommerceGateway(projectId: string, provider: 'paystack' | 'stripe', config: Record<string, any>): Promise<any>;
90
+ migrateWooCommerce(projectId: string, payload: Record<string, any>): Promise<any>;
91
+ cloneWordPressSite(projectId: string, payload: Record<string, any>): Promise<any>;
92
+ listOrders(projectId: string, options?: {
93
+ status?: string;
94
+ limit?: number;
95
+ }): Promise<any>;
96
+ getOrder(projectId: string, orderId: string): Promise<any>;
97
+ updateOrder(projectId: string, orderId: string, data: {
98
+ status?: string;
99
+ trackingNumber?: string;
100
+ trackingCarrier?: string;
101
+ trackingUrl?: string;
102
+ }): Promise<any>;
103
+ listCoupons(projectId: string): Promise<any>;
104
+ createCoupon(projectId: string, coupon: {
105
+ code: string;
106
+ discountType: 'percentage' | 'fixed';
107
+ discountAmount: number;
108
+ maxUses?: number;
109
+ expiresAt?: number;
110
+ }): Promise<any>;
111
+ deleteCoupon(projectId: string, couponId: string): Promise<any>;
112
+ listCollections(projectId: string): Promise<any>;
113
+ createCollection(projectId: string, data: {
114
+ name: string;
115
+ displayName?: string;
116
+ schemaFields?: any[];
117
+ }): Promise<any>;
118
+ listCollectionItems(projectId: string, collectionId: string): Promise<any>;
119
+ upsertCollectionItem(projectId: string, collectionId: string, data: Record<string, any>, itemId?: string): Promise<any>;
120
+ publishCollectionItem(projectId: string, collectionId: string, itemId: string, publish?: boolean): Promise<any>;
121
+ getContent(projectId: string): Promise<any>;
122
+ patchContent(projectId: string, patches: Record<string, string>): Promise<any>;
123
+ getFormSubmissions(projectId: string, options?: {
124
+ formName?: string;
125
+ limit?: number;
126
+ }): Promise<any>;
127
+ listSequences(projectId: string): Promise<any>;
128
+ createSequence(projectId: string, data: {
129
+ name: string;
130
+ triggerEvent?: string;
131
+ steps?: any[];
132
+ }): Promise<any>;
133
+ enrollSequenceLead(projectId: string, sequenceId: string, data: {
134
+ leadEmail: string;
135
+ leadName?: string;
136
+ metadata?: Record<string, any>;
137
+ }): Promise<any>;
138
+ listWebhooks(projectId: string): Promise<any>;
139
+ createWebhook(projectId: string, data: {
140
+ url: string;
141
+ events: string[];
142
+ secret?: string;
143
+ }): Promise<any>;
144
+ deleteWebhook(projectId: string, webhookId: string): Promise<any>;
145
+ listSqlTables(projectId: string): Promise<any>;
146
+ executeSqlQuery(projectId: string, query: string, params?: any[]): Promise<any>;
147
+ getWorkspaceUsage(): Promise<any>;
148
+ resolveWorkspaceId(explicitId?: string): Promise<string>;
149
+ listTasks(workspaceId: string, options?: {
150
+ completed?: boolean;
151
+ threadId?: string;
152
+ }): Promise<any>;
153
+ createTask(workspaceId: string, data: {
154
+ title: string;
155
+ description?: string;
156
+ dueAt?: number | null;
157
+ priority?: 'urgent' | 'high' | 'medium' | 'low';
158
+ color?: string | null;
159
+ threadId?: string | null;
160
+ assigneeId?: string | null;
161
+ }): Promise<any>;
162
+ updateTask(workspaceId: string, taskId: string, data: Record<string, any>): Promise<any>;
163
+ deleteTask(workspaceId: string, taskId: string): Promise<any>;
164
+ listCalendarEvents(workspaceId: string, options?: {
165
+ start?: number;
166
+ end?: number;
167
+ mailboxId?: string;
168
+ }): Promise<any>;
169
+ createCalendarEvent(workspaceId: string, data: {
170
+ title: string;
171
+ description?: string;
172
+ location?: string;
173
+ startAt: number;
174
+ endAt: number;
175
+ allDay?: boolean;
176
+ recurrence?: string;
177
+ attendees?: any;
178
+ color?: string;
179
+ mailboxId?: string;
180
+ }): Promise<any>;
181
+ updateCalendarEvent(workspaceId: string, eventId: string, data: Record<string, any>): Promise<any>;
182
+ deleteCalendarEvent(workspaceId: string, eventId: string): Promise<any>;
183
+ createMeetRoom(data: {
184
+ name?: string;
185
+ scheduledStartAt?: number;
186
+ allowGuests?: boolean;
187
+ recordRoom?: boolean;
188
+ lockRoom?: boolean;
189
+ }): Promise<any>;
190
+ listNotes(workspaceId: string): Promise<any>;
191
+ createNote(workspaceId: string, data: {
192
+ title: string;
193
+ content?: string;
194
+ color?: string;
195
+ }): Promise<any>;
196
+ }
197
+
198
+ interface ServerOptions extends TagHostClientOptions {
199
+ name?: string;
200
+ version?: string;
201
+ }
202
+ declare function createTagHostMcpServer(options?: ServerOptions): {
203
+ server: McpServer;
204
+ client: TagHostClient;
205
+ };
206
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
207
+
208
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };