@sgcarstrends/mcp 4.51.3 → 4.57.4
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 +0 -4
- package/dist/index.js +21 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -52,10 +52,6 @@ The dev script watches for changes:
|
|
|
52
52
|
pnpm --filter @sgcarstrends/mcp dev
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
## Publishing
|
|
56
|
-
|
|
57
|
-
Automated via GitHub Actions. Pushing changes to `apps/mcp/**` on the `main` branch triggers a build and publish to npm with provenance.
|
|
58
|
-
|
|
59
55
|
## License
|
|
60
56
|
|
|
61
57
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,6 @@ const postBodySchema = {
|
|
|
29
29
|
title: z.string().min(1).describe("Post title"),
|
|
30
30
|
content: z.string().min(1).describe("Post content in MDX format"),
|
|
31
31
|
excerpt: z.string().optional().describe("Short excerpt/summary"),
|
|
32
|
-
heroImage: z.string().optional().describe("Hero image URL"),
|
|
33
32
|
tags: z.array(z.string()).optional().describe("Post tags"),
|
|
34
33
|
highlights: z
|
|
35
34
|
.array(z.object({
|
|
@@ -127,6 +126,27 @@ server.tool("delete_post", "Delete a blog post permanently", {
|
|
|
127
126
|
],
|
|
128
127
|
};
|
|
129
128
|
});
|
|
129
|
+
server.tool("get_maintenance_status", "Get the current maintenance mode status", {}, async () => {
|
|
130
|
+
const response = await request("/api/v1/maintenance");
|
|
131
|
+
if (!response.ok)
|
|
132
|
+
return errorResult(response);
|
|
133
|
+
return jsonResult(response.data);
|
|
134
|
+
});
|
|
135
|
+
server.tool("update_maintenance_status", "Enable or disable maintenance mode", {
|
|
136
|
+
enabled: z.boolean().describe("Whether maintenance mode is enabled"),
|
|
137
|
+
message: z
|
|
138
|
+
.string()
|
|
139
|
+
.optional()
|
|
140
|
+
.describe("Message to display during maintenance"),
|
|
141
|
+
}, async ({ enabled, message }) => {
|
|
142
|
+
const response = await request("/api/v1/maintenance", {
|
|
143
|
+
method: "PUT",
|
|
144
|
+
body: JSON.stringify({ enabled, message }),
|
|
145
|
+
});
|
|
146
|
+
if (!response.ok)
|
|
147
|
+
return errorResult(response);
|
|
148
|
+
return jsonResult(response.data);
|
|
149
|
+
});
|
|
130
150
|
async function main() {
|
|
131
151
|
const transport = new StdioServerTransport();
|
|
132
152
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sgcarstrends/mcp",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.57.4",
|
|
4
4
|
"description": "MCP server for SG Cars Trends blog post management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
18
|
-
"@vercel/related-projects": "^1.0.
|
|
18
|
+
"@vercel/related-projects": "^1.0.1",
|
|
19
19
|
"zod": "^4.1.13"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|