@taghost/mcp 0.0.0-stage → 1.0.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/dist/index.js ADDED
@@ -0,0 +1,220 @@
1
+ import {
2
+ TagHostClient,
3
+ bundleDirectory,
4
+ bundleVirtualFiles,
5
+ createTagHostMcpServer,
6
+ findProjectBinding,
7
+ getApiUrl,
8
+ resolveAuthToken,
9
+ startServer,
10
+ validateReadOnlySql
11
+ } from "./chunk-OXMBSGNP.js";
12
+
13
+ // src/index.ts
14
+ import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
15
+
16
+ // src/openapi.ts
17
+ var TAGHOST_OPENAPI_SPEC = {
18
+ openapi: "3.1.0",
19
+ info: {
20
+ title: "TagHost Cloud Agent API",
21
+ 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.",
22
+ version: "1.0.0",
23
+ contact: {
24
+ name: "TagHost Platform Support",
25
+ url: "https://taghost.io",
26
+ email: "support@taghost.io"
27
+ }
28
+ },
29
+ servers: [
30
+ {
31
+ url: "https://api.taghost.io",
32
+ description: "Production TagHost Control Plane"
33
+ }
34
+ ],
35
+ paths: {
36
+ "/mcp": {
37
+ post: {
38
+ operationId: "callMcpJsonRpc",
39
+ summary: "Execute Model Context Protocol (MCP) JSON-RPC Request",
40
+ description: "Execute any of the 53 TagHost MCP platform tools via standard JSON-RPC 2.0.",
41
+ requestBody: {
42
+ required: true,
43
+ content: {
44
+ "application/json": {
45
+ schema: {
46
+ type: "object",
47
+ required: ["jsonrpc", "method"],
48
+ properties: {
49
+ jsonrpc: { type: "string", example: "2.0" },
50
+ id: { type: ["string", "number"], example: 1 },
51
+ method: { type: "string", example: "tools/call" },
52
+ params: { type: "object" }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ },
58
+ responses: {
59
+ 200: {
60
+ description: "JSON-RPC response from MCP Server",
61
+ content: {
62
+ "application/json": {
63
+ schema: { type: "object" }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ },
70
+ "/projects": {
71
+ get: {
72
+ operationId: "listProjects",
73
+ summary: "List all workspace projects",
74
+ description: "Retrieve all web hosting and application projects belonging to the authenticated workspace.",
75
+ responses: {
76
+ 200: {
77
+ description: "List of projects"
78
+ }
79
+ }
80
+ },
81
+ post: {
82
+ operationId: "createProject",
83
+ summary: "Create a new project",
84
+ description: "Provisions a new web project with an instant live edge URL.",
85
+ requestBody: {
86
+ required: true,
87
+ content: {
88
+ "application/json": {
89
+ schema: {
90
+ type: "object",
91
+ required: ["name"],
92
+ properties: {
93
+ name: { type: "string", description: "Project name" },
94
+ slug: { type: "string", description: "Custom subdomain slug" },
95
+ framework: { type: "string", description: "Detected framework (react, next, astro, vite, html)" }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ },
101
+ responses: {
102
+ 201: { description: "Project created successfully" }
103
+ }
104
+ }
105
+ },
106
+ "/projects/{id}": {
107
+ get: {
108
+ operationId: "getProject",
109
+ summary: "Get project details",
110
+ parameters: [
111
+ {
112
+ name: "id",
113
+ in: "path",
114
+ required: true,
115
+ schema: { type: "string" },
116
+ description: "Project ID"
117
+ }
118
+ ],
119
+ responses: {
120
+ 200: { description: "Project details" }
121
+ }
122
+ }
123
+ },
124
+ "/projects/{id}/collections": {
125
+ get: {
126
+ operationId: "listCollections",
127
+ summary: "List CMS collections",
128
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
129
+ responses: { 200: { description: "List of collections" } }
130
+ },
131
+ post: {
132
+ operationId: "createCollection",
133
+ summary: "Create a new CMS collection schema",
134
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
135
+ requestBody: {
136
+ required: true,
137
+ content: {
138
+ "application/json": {
139
+ schema: {
140
+ type: "object",
141
+ required: ["name", "fields"],
142
+ properties: {
143
+ name: { type: "string" },
144
+ description: { type: "string" },
145
+ fields: { type: "array", items: { type: "object" } }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ },
151
+ responses: { 201: { description: "Collection created" } }
152
+ }
153
+ },
154
+ "/projects/{id}/orders": {
155
+ get: {
156
+ operationId: "listOrders",
157
+ summary: "List storefront commerce orders",
158
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
159
+ responses: { 200: { description: "List of orders" } }
160
+ }
161
+ },
162
+ "/projects/{id}/sql/query": {
163
+ post: {
164
+ operationId: "querySql",
165
+ summary: "Execute read-only SQL on project D1 database",
166
+ parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
167
+ requestBody: {
168
+ required: true,
169
+ content: {
170
+ "application/json": {
171
+ schema: {
172
+ type: "object",
173
+ required: ["query"],
174
+ properties: {
175
+ query: { type: "string" },
176
+ params: { type: "array", items: { type: "string" } }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ },
182
+ responses: {
183
+ 200: { description: "SQL query results" },
184
+ 403: { description: "Mutations blocked \u2014 read-only access only" }
185
+ }
186
+ }
187
+ },
188
+ "/domains/check": {
189
+ get: {
190
+ operationId: "checkDomain",
191
+ summary: "Check domain availability and pricing",
192
+ parameters: [{ name: "domain", in: "query", required: true, schema: { type: "string" } }],
193
+ responses: { 200: { description: "Domain availability status" } }
194
+ }
195
+ }
196
+ },
197
+ components: {
198
+ securitySchemes: {
199
+ bearerAuth: {
200
+ type: "http",
201
+ scheme: "bearer",
202
+ bearerFormat: "API Token"
203
+ }
204
+ }
205
+ },
206
+ security: [{ bearerAuth: [] }]
207
+ };
208
+ export {
209
+ InMemoryTransport,
210
+ TAGHOST_OPENAPI_SPEC,
211
+ TagHostClient,
212
+ bundleDirectory,
213
+ bundleVirtualFiles,
214
+ createTagHostMcpServer,
215
+ findProjectBinding,
216
+ getApiUrl,
217
+ resolveAuthToken,
218
+ startServer,
219
+ validateReadOnlySql
220
+ };
@@ -0,0 +1,206 @@
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
+ listOrders(projectId: string, options?: {
91
+ status?: string;
92
+ limit?: number;
93
+ }): Promise<any>;
94
+ getOrder(projectId: string, orderId: string): Promise<any>;
95
+ updateOrder(projectId: string, orderId: string, data: {
96
+ status?: string;
97
+ trackingNumber?: string;
98
+ trackingCarrier?: string;
99
+ trackingUrl?: string;
100
+ }): Promise<any>;
101
+ listCoupons(projectId: string): Promise<any>;
102
+ createCoupon(projectId: string, coupon: {
103
+ code: string;
104
+ discountType: 'percentage' | 'fixed';
105
+ discountAmount: number;
106
+ maxUses?: number;
107
+ expiresAt?: number;
108
+ }): Promise<any>;
109
+ deleteCoupon(projectId: string, couponId: string): Promise<any>;
110
+ listCollections(projectId: string): Promise<any>;
111
+ createCollection(projectId: string, data: {
112
+ name: string;
113
+ displayName?: string;
114
+ schemaFields?: any[];
115
+ }): Promise<any>;
116
+ listCollectionItems(projectId: string, collectionId: string): Promise<any>;
117
+ upsertCollectionItem(projectId: string, collectionId: string, data: Record<string, any>, itemId?: string): Promise<any>;
118
+ publishCollectionItem(projectId: string, collectionId: string, itemId: string, publish?: boolean): Promise<any>;
119
+ getContent(projectId: string): Promise<any>;
120
+ patchContent(projectId: string, patches: Record<string, string>): Promise<any>;
121
+ getFormSubmissions(projectId: string, options?: {
122
+ formName?: string;
123
+ limit?: number;
124
+ }): Promise<any>;
125
+ listSequences(projectId: string): Promise<any>;
126
+ createSequence(projectId: string, data: {
127
+ name: string;
128
+ triggerEvent?: string;
129
+ steps?: any[];
130
+ }): Promise<any>;
131
+ enrollSequenceLead(projectId: string, sequenceId: string, data: {
132
+ leadEmail: string;
133
+ leadName?: string;
134
+ metadata?: Record<string, any>;
135
+ }): Promise<any>;
136
+ listWebhooks(projectId: string): Promise<any>;
137
+ createWebhook(projectId: string, data: {
138
+ url: string;
139
+ events: string[];
140
+ secret?: string;
141
+ }): Promise<any>;
142
+ deleteWebhook(projectId: string, webhookId: string): Promise<any>;
143
+ listSqlTables(projectId: string): Promise<any>;
144
+ executeSqlQuery(projectId: string, query: string, params?: any[]): Promise<any>;
145
+ getWorkspaceUsage(): Promise<any>;
146
+ resolveWorkspaceId(explicitId?: string): Promise<string>;
147
+ listTasks(workspaceId: string, options?: {
148
+ completed?: boolean;
149
+ threadId?: string;
150
+ }): Promise<any>;
151
+ createTask(workspaceId: string, data: {
152
+ title: string;
153
+ description?: string;
154
+ dueAt?: number | null;
155
+ priority?: 'urgent' | 'high' | 'medium' | 'low';
156
+ color?: string | null;
157
+ threadId?: string | null;
158
+ assigneeId?: string | null;
159
+ }): Promise<any>;
160
+ updateTask(workspaceId: string, taskId: string, data: Record<string, any>): Promise<any>;
161
+ deleteTask(workspaceId: string, taskId: string): Promise<any>;
162
+ listCalendarEvents(workspaceId: string, options?: {
163
+ start?: number;
164
+ end?: number;
165
+ mailboxId?: string;
166
+ }): Promise<any>;
167
+ createCalendarEvent(workspaceId: string, data: {
168
+ title: string;
169
+ description?: string;
170
+ location?: string;
171
+ startAt: number;
172
+ endAt: number;
173
+ allDay?: boolean;
174
+ recurrence?: string;
175
+ attendees?: any;
176
+ color?: string;
177
+ mailboxId?: string;
178
+ }): Promise<any>;
179
+ updateCalendarEvent(workspaceId: string, eventId: string, data: Record<string, any>): Promise<any>;
180
+ deleteCalendarEvent(workspaceId: string, eventId: string): Promise<any>;
181
+ createMeetRoom(data: {
182
+ name?: string;
183
+ scheduledStartAt?: number;
184
+ allowGuests?: boolean;
185
+ recordRoom?: boolean;
186
+ lockRoom?: boolean;
187
+ }): Promise<any>;
188
+ listNotes(workspaceId: string): Promise<any>;
189
+ createNote(workspaceId: string, data: {
190
+ title: string;
191
+ content?: string;
192
+ color?: string;
193
+ }): Promise<any>;
194
+ }
195
+
196
+ interface ServerOptions extends TagHostClientOptions {
197
+ name?: string;
198
+ version?: string;
199
+ }
200
+ declare function createTagHostMcpServer(options?: ServerOptions): {
201
+ server: McpServer;
202
+ client: TagHostClient;
203
+ };
204
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
205
+
206
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };
@@ -0,0 +1,206 @@
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
+ listOrders(projectId: string, options?: {
91
+ status?: string;
92
+ limit?: number;
93
+ }): Promise<any>;
94
+ getOrder(projectId: string, orderId: string): Promise<any>;
95
+ updateOrder(projectId: string, orderId: string, data: {
96
+ status?: string;
97
+ trackingNumber?: string;
98
+ trackingCarrier?: string;
99
+ trackingUrl?: string;
100
+ }): Promise<any>;
101
+ listCoupons(projectId: string): Promise<any>;
102
+ createCoupon(projectId: string, coupon: {
103
+ code: string;
104
+ discountType: 'percentage' | 'fixed';
105
+ discountAmount: number;
106
+ maxUses?: number;
107
+ expiresAt?: number;
108
+ }): Promise<any>;
109
+ deleteCoupon(projectId: string, couponId: string): Promise<any>;
110
+ listCollections(projectId: string): Promise<any>;
111
+ createCollection(projectId: string, data: {
112
+ name: string;
113
+ displayName?: string;
114
+ schemaFields?: any[];
115
+ }): Promise<any>;
116
+ listCollectionItems(projectId: string, collectionId: string): Promise<any>;
117
+ upsertCollectionItem(projectId: string, collectionId: string, data: Record<string, any>, itemId?: string): Promise<any>;
118
+ publishCollectionItem(projectId: string, collectionId: string, itemId: string, publish?: boolean): Promise<any>;
119
+ getContent(projectId: string): Promise<any>;
120
+ patchContent(projectId: string, patches: Record<string, string>): Promise<any>;
121
+ getFormSubmissions(projectId: string, options?: {
122
+ formName?: string;
123
+ limit?: number;
124
+ }): Promise<any>;
125
+ listSequences(projectId: string): Promise<any>;
126
+ createSequence(projectId: string, data: {
127
+ name: string;
128
+ triggerEvent?: string;
129
+ steps?: any[];
130
+ }): Promise<any>;
131
+ enrollSequenceLead(projectId: string, sequenceId: string, data: {
132
+ leadEmail: string;
133
+ leadName?: string;
134
+ metadata?: Record<string, any>;
135
+ }): Promise<any>;
136
+ listWebhooks(projectId: string): Promise<any>;
137
+ createWebhook(projectId: string, data: {
138
+ url: string;
139
+ events: string[];
140
+ secret?: string;
141
+ }): Promise<any>;
142
+ deleteWebhook(projectId: string, webhookId: string): Promise<any>;
143
+ listSqlTables(projectId: string): Promise<any>;
144
+ executeSqlQuery(projectId: string, query: string, params?: any[]): Promise<any>;
145
+ getWorkspaceUsage(): Promise<any>;
146
+ resolveWorkspaceId(explicitId?: string): Promise<string>;
147
+ listTasks(workspaceId: string, options?: {
148
+ completed?: boolean;
149
+ threadId?: string;
150
+ }): Promise<any>;
151
+ createTask(workspaceId: string, data: {
152
+ title: string;
153
+ description?: string;
154
+ dueAt?: number | null;
155
+ priority?: 'urgent' | 'high' | 'medium' | 'low';
156
+ color?: string | null;
157
+ threadId?: string | null;
158
+ assigneeId?: string | null;
159
+ }): Promise<any>;
160
+ updateTask(workspaceId: string, taskId: string, data: Record<string, any>): Promise<any>;
161
+ deleteTask(workspaceId: string, taskId: string): Promise<any>;
162
+ listCalendarEvents(workspaceId: string, options?: {
163
+ start?: number;
164
+ end?: number;
165
+ mailboxId?: string;
166
+ }): Promise<any>;
167
+ createCalendarEvent(workspaceId: string, data: {
168
+ title: string;
169
+ description?: string;
170
+ location?: string;
171
+ startAt: number;
172
+ endAt: number;
173
+ allDay?: boolean;
174
+ recurrence?: string;
175
+ attendees?: any;
176
+ color?: string;
177
+ mailboxId?: string;
178
+ }): Promise<any>;
179
+ updateCalendarEvent(workspaceId: string, eventId: string, data: Record<string, any>): Promise<any>;
180
+ deleteCalendarEvent(workspaceId: string, eventId: string): Promise<any>;
181
+ createMeetRoom(data: {
182
+ name?: string;
183
+ scheduledStartAt?: number;
184
+ allowGuests?: boolean;
185
+ recordRoom?: boolean;
186
+ lockRoom?: boolean;
187
+ }): Promise<any>;
188
+ listNotes(workspaceId: string): Promise<any>;
189
+ createNote(workspaceId: string, data: {
190
+ title: string;
191
+ content?: string;
192
+ color?: string;
193
+ }): Promise<any>;
194
+ }
195
+
196
+ interface ServerOptions extends TagHostClientOptions {
197
+ name?: string;
198
+ version?: string;
199
+ }
200
+ declare function createTagHostMcpServer(options?: ServerOptions): {
201
+ server: McpServer;
202
+ client: TagHostClient;
203
+ };
204
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
205
+
206
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };