@taghost/mcp 1.0.0 → 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/README.md +98 -4
- package/dist/chunk-JKPKXGK7.js +3384 -0
- package/dist/chunk-NP37ZIKB.js +3469 -0
- package/dist/chunk-ZM4TEOAC.js +3446 -0
- package/dist/chunk-ZSIUY6WV.js +3607 -0
- package/dist/index.cjs +583 -343
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +11 -1
- package/dist/server-BAkdXx6J.d.cts +208 -0
- package/dist/server-BAkdXx6J.d.ts +208 -0
- package/dist/server-BzjamriK.d.cts +215 -0
- package/dist/server-BzjamriK.d.ts +215 -0
- package/dist/server-XvrYGhnU.d.cts +209 -0
- package/dist/server-XvrYGhnU.d.ts +209 -0
- package/dist/server.cjs +561 -343
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
- package/smithery.yaml +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as ServerOptions, T as TagHostClient, a as TagHostClientOptions, c as createTagHostMcpServer, s as startServer } from './server-
|
|
1
|
+
export { S as ServerOptions, T as TagHostClient, a as TagHostClientOptions, c as createTagHostMcpServer, s as startServer } from './server-BzjamriK.cjs';
|
|
2
2
|
export { InMemoryTransport } from '@modelcontextprotocol/sdk/inMemory.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
|
|
@@ -292,6 +292,7 @@ declare const TAGHOST_OPENAPI_SPEC: {
|
|
|
292
292
|
};
|
|
293
293
|
|
|
294
294
|
declare function getApiUrl(): string;
|
|
295
|
+
declare function sanitizeAuthToken(value?: string | null): string | null;
|
|
295
296
|
declare function resolveAuthToken(): string | null;
|
|
296
297
|
|
|
297
298
|
declare function findProjectBinding(startDir?: string): {
|
|
@@ -321,4 +322,23 @@ interface BundledResult {
|
|
|
321
322
|
declare function bundleDirectory(dirPath: string): BundledResult;
|
|
322
323
|
declare function bundleVirtualFiles(files: Record<string, string | Uint8Array>): BundledResult;
|
|
323
324
|
|
|
324
|
-
|
|
325
|
+
type McpScopeId = 'projects:read' | 'deployments:write' | 'content:write' | 'domains:write' | 'mail:read' | 'mail:send' | 'commerce:write' | 'forms:read' | 'sql:read' | 'workspace:collaborate';
|
|
326
|
+
interface McpScopeDefinition {
|
|
327
|
+
id: McpScopeId;
|
|
328
|
+
label: string;
|
|
329
|
+
description: string;
|
|
330
|
+
icon: string;
|
|
331
|
+
access: 'read' | 'write';
|
|
332
|
+
defaultSelected?: boolean;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Canonical OAuth 2.1 permission catalog for mcp.taghost.io.
|
|
336
|
+
* Shared across @taghost/mcp (tool filtering), control-plane (OAuth 2.1),
|
|
337
|
+
* and Console (permission picker UI).
|
|
338
|
+
*/
|
|
339
|
+
declare const MCP_SCOPES: readonly McpScopeDefinition[];
|
|
340
|
+
declare const ALL_MCP_SCOPES: readonly McpScopeId[];
|
|
341
|
+
declare function normalizeMcpScopes(input?: string | string[] | null): McpScopeId[];
|
|
342
|
+
declare function hasMcpScope(granted: readonly string[] | null | undefined, required: McpScopeId): boolean;
|
|
343
|
+
|
|
344
|
+
export { ALL_MCP_SCOPES, type BundledResult, MCP_SCOPES, type McpScopeDefinition, type McpScopeId, type SqlValidationResult, TAGHOST_OPENAPI_SPEC, bundleDirectory, bundleVirtualFiles, findProjectBinding, getApiUrl, hasMcpScope, normalizeMcpScopes, resolveAuthToken, sanitizeAuthToken, validateReadOnlySql };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as ServerOptions, T as TagHostClient, a as TagHostClientOptions, c as createTagHostMcpServer, s as startServer } from './server-
|
|
1
|
+
export { S as ServerOptions, T as TagHostClient, a as TagHostClientOptions, c as createTagHostMcpServer, s as startServer } from './server-BzjamriK.js';
|
|
2
2
|
export { InMemoryTransport } from '@modelcontextprotocol/sdk/inMemory.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
|
|
@@ -292,6 +292,7 @@ declare const TAGHOST_OPENAPI_SPEC: {
|
|
|
292
292
|
};
|
|
293
293
|
|
|
294
294
|
declare function getApiUrl(): string;
|
|
295
|
+
declare function sanitizeAuthToken(value?: string | null): string | null;
|
|
295
296
|
declare function resolveAuthToken(): string | null;
|
|
296
297
|
|
|
297
298
|
declare function findProjectBinding(startDir?: string): {
|
|
@@ -321,4 +322,23 @@ interface BundledResult {
|
|
|
321
322
|
declare function bundleDirectory(dirPath: string): BundledResult;
|
|
322
323
|
declare function bundleVirtualFiles(files: Record<string, string | Uint8Array>): BundledResult;
|
|
323
324
|
|
|
324
|
-
|
|
325
|
+
type McpScopeId = 'projects:read' | 'deployments:write' | 'content:write' | 'domains:write' | 'mail:read' | 'mail:send' | 'commerce:write' | 'forms:read' | 'sql:read' | 'workspace:collaborate';
|
|
326
|
+
interface McpScopeDefinition {
|
|
327
|
+
id: McpScopeId;
|
|
328
|
+
label: string;
|
|
329
|
+
description: string;
|
|
330
|
+
icon: string;
|
|
331
|
+
access: 'read' | 'write';
|
|
332
|
+
defaultSelected?: boolean;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Canonical OAuth 2.1 permission catalog for mcp.taghost.io.
|
|
336
|
+
* Shared across @taghost/mcp (tool filtering), control-plane (OAuth 2.1),
|
|
337
|
+
* and Console (permission picker UI).
|
|
338
|
+
*/
|
|
339
|
+
declare const MCP_SCOPES: readonly McpScopeDefinition[];
|
|
340
|
+
declare const ALL_MCP_SCOPES: readonly McpScopeId[];
|
|
341
|
+
declare function normalizeMcpScopes(input?: string | string[] | null): McpScopeId[];
|
|
342
|
+
declare function hasMcpScope(granted: readonly string[] | null | undefined, required: McpScopeId): boolean;
|
|
343
|
+
|
|
344
|
+
export { ALL_MCP_SCOPES, type BundledResult, MCP_SCOPES, type McpScopeDefinition, type McpScopeId, type SqlValidationResult, TAGHOST_OPENAPI_SPEC, bundleDirectory, bundleVirtualFiles, findProjectBinding, getApiUrl, hasMcpScope, normalizeMcpScopes, resolveAuthToken, sanitizeAuthToken, validateReadOnlySql };
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ALL_MCP_SCOPES,
|
|
3
|
+
MCP_SCOPES,
|
|
2
4
|
TagHostClient,
|
|
3
5
|
bundleDirectory,
|
|
4
6
|
bundleVirtualFiles,
|
|
5
7
|
createTagHostMcpServer,
|
|
6
8
|
findProjectBinding,
|
|
7
9
|
getApiUrl,
|
|
10
|
+
hasMcpScope,
|
|
11
|
+
normalizeMcpScopes,
|
|
8
12
|
resolveAuthToken,
|
|
13
|
+
sanitizeAuthToken,
|
|
9
14
|
startServer,
|
|
10
15
|
validateReadOnlySql
|
|
11
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZSIUY6WV.js";
|
|
12
17
|
|
|
13
18
|
// src/index.ts
|
|
14
19
|
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
@@ -206,7 +211,9 @@ var TAGHOST_OPENAPI_SPEC = {
|
|
|
206
211
|
security: [{ bearerAuth: [] }]
|
|
207
212
|
};
|
|
208
213
|
export {
|
|
214
|
+
ALL_MCP_SCOPES,
|
|
209
215
|
InMemoryTransport,
|
|
216
|
+
MCP_SCOPES,
|
|
210
217
|
TAGHOST_OPENAPI_SPEC,
|
|
211
218
|
TagHostClient,
|
|
212
219
|
bundleDirectory,
|
|
@@ -214,7 +221,10 @@ export {
|
|
|
214
221
|
createTagHostMcpServer,
|
|
215
222
|
findProjectBinding,
|
|
216
223
|
getApiUrl,
|
|
224
|
+
hasMcpScope,
|
|
225
|
+
normalizeMcpScopes,
|
|
217
226
|
resolveAuthToken,
|
|
227
|
+
sanitizeAuthToken,
|
|
218
228
|
startServer,
|
|
219
229
|
validateReadOnlySql
|
|
220
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 };
|