@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.
@@ -0,0 +1,158 @@
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
+ }
147
+
148
+ interface ServerOptions extends TagHostClientOptions {
149
+ name?: string;
150
+ version?: string;
151
+ }
152
+ declare function createTagHostMcpServer(options?: ServerOptions): {
153
+ server: McpServer;
154
+ client: TagHostClient;
155
+ };
156
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
157
+
158
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };
@@ -0,0 +1,158 @@
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
+ }
147
+
148
+ interface ServerOptions extends TagHostClientOptions {
149
+ name?: string;
150
+ version?: string;
151
+ }
152
+ declare function createTagHostMcpServer(options?: ServerOptions): {
153
+ server: McpServer;
154
+ client: TagHostClient;
155
+ };
156
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
157
+
158
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };
@@ -0,0 +1,207 @@
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
+ listOrders(projectId: string, options?: {
92
+ status?: string;
93
+ limit?: number;
94
+ }): Promise<any>;
95
+ getOrder(projectId: string, orderId: string): Promise<any>;
96
+ updateOrder(projectId: string, orderId: string, data: {
97
+ status?: string;
98
+ trackingNumber?: string;
99
+ trackingCarrier?: string;
100
+ trackingUrl?: string;
101
+ }): Promise<any>;
102
+ listCoupons(projectId: string): Promise<any>;
103
+ createCoupon(projectId: string, coupon: {
104
+ code: string;
105
+ discountType: 'percentage' | 'fixed';
106
+ discountAmount: number;
107
+ maxUses?: number;
108
+ expiresAt?: number;
109
+ }): Promise<any>;
110
+ deleteCoupon(projectId: string, couponId: string): Promise<any>;
111
+ listCollections(projectId: string): Promise<any>;
112
+ createCollection(projectId: string, data: {
113
+ name: string;
114
+ displayName?: string;
115
+ schemaFields?: any[];
116
+ }): Promise<any>;
117
+ listCollectionItems(projectId: string, collectionId: string): Promise<any>;
118
+ upsertCollectionItem(projectId: string, collectionId: string, data: Record<string, any>, itemId?: string): Promise<any>;
119
+ publishCollectionItem(projectId: string, collectionId: string, itemId: string, publish?: boolean): Promise<any>;
120
+ getContent(projectId: string): Promise<any>;
121
+ patchContent(projectId: string, patches: Record<string, string>): Promise<any>;
122
+ getFormSubmissions(projectId: string, options?: {
123
+ formName?: string;
124
+ limit?: number;
125
+ }): Promise<any>;
126
+ listSequences(projectId: string): Promise<any>;
127
+ createSequence(projectId: string, data: {
128
+ name: string;
129
+ triggerEvent?: string;
130
+ steps?: any[];
131
+ }): Promise<any>;
132
+ enrollSequenceLead(projectId: string, sequenceId: string, data: {
133
+ leadEmail: string;
134
+ leadName?: string;
135
+ metadata?: Record<string, any>;
136
+ }): Promise<any>;
137
+ listWebhooks(projectId: string): Promise<any>;
138
+ createWebhook(projectId: string, data: {
139
+ url: string;
140
+ events: string[];
141
+ secret?: string;
142
+ }): Promise<any>;
143
+ deleteWebhook(projectId: string, webhookId: string): Promise<any>;
144
+ listSqlTables(projectId: string): Promise<any>;
145
+ executeSqlQuery(projectId: string, query: string, params?: any[]): Promise<any>;
146
+ getWorkspaceUsage(): Promise<any>;
147
+ resolveWorkspaceId(explicitId?: string): Promise<string>;
148
+ listTasks(workspaceId: string, options?: {
149
+ completed?: boolean;
150
+ threadId?: string;
151
+ }): Promise<any>;
152
+ createTask(workspaceId: string, data: {
153
+ title: string;
154
+ description?: string;
155
+ dueAt?: number | null;
156
+ priority?: 'urgent' | 'high' | 'medium' | 'low';
157
+ color?: string | null;
158
+ threadId?: string | null;
159
+ assigneeId?: string | null;
160
+ }): Promise<any>;
161
+ updateTask(workspaceId: string, taskId: string, data: Record<string, any>): Promise<any>;
162
+ deleteTask(workspaceId: string, taskId: string): Promise<any>;
163
+ listCalendarEvents(workspaceId: string, options?: {
164
+ start?: number;
165
+ end?: number;
166
+ mailboxId?: string;
167
+ }): Promise<any>;
168
+ createCalendarEvent(workspaceId: string, data: {
169
+ title: string;
170
+ description?: string;
171
+ location?: string;
172
+ startAt: number;
173
+ endAt: number;
174
+ allDay?: boolean;
175
+ recurrence?: string;
176
+ attendees?: any;
177
+ color?: string;
178
+ mailboxId?: string;
179
+ }): Promise<any>;
180
+ updateCalendarEvent(workspaceId: string, eventId: string, data: Record<string, any>): Promise<any>;
181
+ deleteCalendarEvent(workspaceId: string, eventId: string): Promise<any>;
182
+ createMeetRoom(data: {
183
+ name?: string;
184
+ scheduledStartAt?: number;
185
+ allowGuests?: boolean;
186
+ recordRoom?: boolean;
187
+ lockRoom?: boolean;
188
+ }): Promise<any>;
189
+ listNotes(workspaceId: string): Promise<any>;
190
+ createNote(workspaceId: string, data: {
191
+ title: string;
192
+ content?: string;
193
+ color?: string;
194
+ }): Promise<any>;
195
+ }
196
+
197
+ interface ServerOptions extends TagHostClientOptions {
198
+ name?: string;
199
+ version?: string;
200
+ }
201
+ declare function createTagHostMcpServer(options?: ServerOptions): {
202
+ server: McpServer;
203
+ client: TagHostClient;
204
+ };
205
+ declare function startServer(options?: ServerOptions): Promise<McpServer>;
206
+
207
+ export { type ServerOptions as S, TagHostClient as T, type TagHostClientOptions as a, createTagHostMcpServer as c, startServer as s };