@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,2 @@
1
+ import '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export { S as ServerOptions, c as createTagHostMcpServer, s as startServer } from './server-VIC-6nA0.cjs';
@@ -0,0 +1,2 @@
1
+ import '@modelcontextprotocol/sdk/server/mcp.js';
2
+ export { S as ServerOptions, c as createTagHostMcpServer, s as startServer } from './server-VIC-6nA0.js';
package/dist/server.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ createTagHostMcpServer,
3
+ startServer
4
+ } from "./chunk-OXMBSGNP.js";
5
+ export {
6
+ createTagHostMcpServer,
7
+ startServer
8
+ };
package/openapi.json ADDED
@@ -0,0 +1,276 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "TagHost Cloud Agent API",
5
+ "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.",
6
+ "version": "1.0.0",
7
+ "contact": {
8
+ "name": "TagHost Platform Support",
9
+ "url": "https://taghost.io",
10
+ "email": "support@taghost.io"
11
+ }
12
+ },
13
+ "servers": [
14
+ {
15
+ "url": "https://api.taghost.io",
16
+ "description": "Production TagHost Control Plane"
17
+ }
18
+ ],
19
+ "paths": {
20
+ "/mcp": {
21
+ "post": {
22
+ "operationId": "callMcpJsonRpc",
23
+ "summary": "Execute Model Context Protocol (MCP) JSON-RPC Request",
24
+ "description": "Execute any of the 53 TagHost MCP platform tools (e.g. taghost_deploy_bundle, taghost_collection_item_publish, taghost_sql_query) via standard JSON-RPC 2.0.",
25
+ "requestBody": {
26
+ "required": true,
27
+ "content": {
28
+ "application/json": {
29
+ "schema": {
30
+ "type": "object",
31
+ "required": ["jsonrpc", "method"],
32
+ "properties": {
33
+ "jsonrpc": { "type": "string", "example": "2.0" },
34
+ "id": { "type": ["string", "number"], "example": 1 },
35
+ "method": { "type": "string", "example": "tools/call" },
36
+ "params": { "type": "object" }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ },
42
+ "responses": {
43
+ "200": {
44
+ "description": "JSON-RPC response from MCP Server",
45
+ "content": {
46
+ "application/json": {
47
+ "schema": { "type": "object" }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ },
54
+ "/projects": {
55
+ "get": {
56
+ "operationId": "listProjects",
57
+ "summary": "List all workspace projects",
58
+ "description": "Retrieve all web hosting and application projects belonging to the authenticated workspace.",
59
+ "responses": {
60
+ "200": {
61
+ "description": "List of projects",
62
+ "content": {
63
+ "application/json": {
64
+ "schema": {
65
+ "type": "object",
66
+ "properties": {
67
+ "projects": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "object",
71
+ "properties": {
72
+ "id": { "type": "string" },
73
+ "name": { "type": "string" },
74
+ "slug": { "type": "string" },
75
+ "framework": { "type": "string" }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
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": {
108
+ "description": "Project created successfully",
109
+ "content": {
110
+ "application/json": {
111
+ "schema": { "type": "object" }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ },
118
+ "/projects/{id}": {
119
+ "get": {
120
+ "operationId": "getProject",
121
+ "summary": "Get project details",
122
+ "parameters": [
123
+ {
124
+ "name": "id",
125
+ "in": "path",
126
+ "required": true,
127
+ "schema": { "type": "string" },
128
+ "description": "Project ID"
129
+ }
130
+ ],
131
+ "responses": {
132
+ "200": {
133
+ "description": "Project details and active deployment metadata",
134
+ "content": {
135
+ "application/json": {
136
+ "schema": { "type": "object" }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ },
143
+ "/projects/{id}/collections": {
144
+ "get": {
145
+ "operationId": "listCollections",
146
+ "summary": "List CMS collections",
147
+ "parameters": [
148
+ {
149
+ "name": "id",
150
+ "in": "path",
151
+ "required": true,
152
+ "schema": { "type": "string" }
153
+ }
154
+ ],
155
+ "responses": {
156
+ "200": {
157
+ "description": "List of collections and schemas"
158
+ }
159
+ }
160
+ },
161
+ "post": {
162
+ "operationId": "createCollection",
163
+ "summary": "Create a new CMS collection schema",
164
+ "parameters": [
165
+ {
166
+ "name": "id",
167
+ "in": "path",
168
+ "required": true,
169
+ "schema": { "type": "string" }
170
+ }
171
+ ],
172
+ "requestBody": {
173
+ "required": true,
174
+ "content": {
175
+ "application/json": {
176
+ "schema": {
177
+ "type": "object",
178
+ "required": ["name", "fields"],
179
+ "properties": {
180
+ "name": { "type": "string" },
181
+ "description": { "type": "string" },
182
+ "fields": { "type": "array", "items": { "type": "object" } }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "responses": {
189
+ "201": { "description": "Collection schema created" }
190
+ }
191
+ }
192
+ },
193
+ "/projects/{id}/orders": {
194
+ "get": {
195
+ "operationId": "listOrders",
196
+ "summary": "List storefront commerce orders",
197
+ "parameters": [
198
+ {
199
+ "name": "id",
200
+ "in": "path",
201
+ "required": true,
202
+ "schema": { "type": "string" }
203
+ }
204
+ ],
205
+ "responses": {
206
+ "200": { "description": "List of orders and fulfillment statuses" }
207
+ }
208
+ }
209
+ },
210
+ "/projects/{id}/sql/query": {
211
+ "post": {
212
+ "operationId": "querySql",
213
+ "summary": "Execute read-only SQL on project D1 database",
214
+ "parameters": [
215
+ {
216
+ "name": "id",
217
+ "in": "path",
218
+ "required": true,
219
+ "schema": { "type": "string" }
220
+ }
221
+ ],
222
+ "requestBody": {
223
+ "required": true,
224
+ "content": {
225
+ "application/json": {
226
+ "schema": {
227
+ "type": "object",
228
+ "required": ["query"],
229
+ "properties": {
230
+ "query": { "type": "string", "example": "SELECT * FROM collections LIMIT 10;" },
231
+ "params": { "type": "array", "items": { "type": "string" } }
232
+ }
233
+ }
234
+ }
235
+ }
236
+ },
237
+ "responses": {
238
+ "200": { "description": "SQL query results" },
239
+ "403": { "description": "Mutations blocked — read-only access only" }
240
+ }
241
+ }
242
+ },
243
+ "/domains/check": {
244
+ "get": {
245
+ "operationId": "checkDomain",
246
+ "summary": "Check domain availability and pricing",
247
+ "parameters": [
248
+ {
249
+ "name": "domain",
250
+ "in": "query",
251
+ "required": true,
252
+ "schema": { "type": "string" }
253
+ }
254
+ ],
255
+ "responses": {
256
+ "200": { "description": "Domain availability status and price" }
257
+ }
258
+ }
259
+ }
260
+ },
261
+ "components": {
262
+ "securitySchemes": {
263
+ "bearerAuth": {
264
+ "type": "http",
265
+ "scheme": "bearer",
266
+ "bearerFormat": "API Token",
267
+ "description": "TagHost API Token (e.g. tag_live_...)"
268
+ }
269
+ }
270
+ },
271
+ "security": [
272
+ {
273
+ "bearerAuth": []
274
+ }
275
+ ]
276
+ }
package/package.json CHANGED
@@ -1,6 +1,77 @@
1
1
  {
2
2
  "name": "@taghost/mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "Model Context Protocol (MCP) Suite for TagHost: Autonomous Agent Platform spanning Projects, Deployments, Edge Commerce, Domains, TagMail, Forms & Serverless D1",
5
+ "license": "UNLICENSED",
6
+ "author": "Onyedika Nnadozie <georgennad@gmail.com>",
7
+ "homepage": "https://taghost.io",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/georgennad/TagHost.git",
11
+ "directory": "packages/mcp"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/georgennad/TagHost/issues"
15
+ },
16
+ "keywords": [
17
+ "taghost",
18
+ "mcp",
19
+ "model-context-protocol",
20
+ "ai-agent",
21
+ "claude",
22
+ "codex",
23
+ "cursor",
24
+ "opencode",
25
+ "ecommerce",
26
+ "tagmail",
27
+ "domains"
28
+ ],
29
+ "type": "module",
30
+ "main": "./dist/index.cjs",
31
+ "module": "./dist/index.js",
32
+ "types": "./dist/index.d.ts",
33
+ "bin": {
34
+ "taghost-mcp": "./bin/taghost-mcp.js"
35
+ },
36
+ "exports": {
37
+ ".": {
38
+ "types": "./dist/index.d.ts",
39
+ "import": "./dist/index.js",
40
+ "require": "./dist/index.cjs"
41
+ },
42
+ "./package.json": "./package.json"
43
+ },
44
+ "files": [
45
+ "dist",
46
+ "bin",
47
+ "README.md",
48
+ "LICENSE",
49
+ "smithery.yaml",
50
+ "openapi.json"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "engines": {
56
+ "node": ">=20"
57
+ },
58
+ "dependencies": {
59
+ "@modelcontextprotocol/sdk": "^1.32.2",
60
+ "dotenv": "^16.4.7",
61
+ "fflate": "^0.8.3",
62
+ "zod": "^3.24.2"
63
+ },
64
+ "devDependencies": {
65
+ "@types/node": "^22.13.5",
66
+ "tsup": "^8.5.1",
67
+ "typescript": "^5.8.2",
68
+ "vitest": "^5.0.2",
69
+ "@taghost/tsconfig": "3.0.0"
70
+ },
71
+ "scripts": {
72
+ "build": "tsup src/index.ts src/server.ts --format cjs,esm --dts",
73
+ "dev": "tsup src/server.ts --watch",
74
+ "typecheck": "tsc --noEmit",
75
+ "test": "vitest run"
76
+ }
6
77
  }
package/smithery.yaml ADDED
@@ -0,0 +1,20 @@
1
+ # Smithery configuration for TagHost MCP Server
2
+ # https://smithery.ai/docs/config
3
+
4
+ startCommand:
5
+ type: stdio
6
+ config:
7
+ command: "npx"
8
+ args:
9
+ - "-y"
10
+ - "@taghost/mcp"
11
+ env:
12
+ TAGHOST_API_TOKEN:
13
+ type: string
14
+ description: "TagHost API Token (from Console -> Settings -> API Keys or `tag key create`)"
15
+ required: true
16
+ TAGHOST_API_URL:
17
+ type: string
18
+ description: "TagHost Control Plane API URL (defaults to https://api.taghost.io)"
19
+ default: "https://api.taghost.io"
20
+ required: false