brewpage-mcp 1.3.1 → 1.4.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/README.md CHANGED
@@ -100,6 +100,11 @@ Both [brewpage.app](https://brewpage.app) and [brewdata.app](https://brewdata.ap
100
100
  - [Claude Skill](https://github.com/kochetkov-ma/claude-brewcode/tree/main/skills/brewpage-publish) -- `/brewpage` command
101
101
  - [Brewcode Plugin](https://github.com/kochetkov-ma/claude-brewcode) -- Claude Code plugin suite
102
102
 
103
+ ## Changelog
104
+
105
+ ## 1.4.0 — 2026-05-12
106
+ - Sync to spec 1.31.0 — adds raw text/* and application/octet-stream variants on POST /api/html; PUT mirror; 422 with supportedTypes.
107
+
103
108
  ## License
104
109
 
105
110
  [MIT](LICENSE)
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { z } from "zod";
5
5
  const BASE_URL = process.env.BREWPAGE_URL || "https://brewpage.app";
6
6
  const server = new McpServer({
7
7
  name: "brewpage-mcp",
8
- version: "1.3.1",
8
+ version: "1.4.0",
9
9
  });
10
10
  async function apiRequest(method, path, body, headers) {
11
11
  const url = `${BASE_URL}${path}`;
@@ -221,8 +221,14 @@ server.tool("get_page", "Fetch a published BrewPage HTML page content by namespa
221
221
  content: [{ type: "text", text: lines.join("\n") }],
222
222
  };
223
223
  });
224
- server.tool("get_stats", "Get BrewPage platform-wide usage statistics including page count, file count, and storage usage.", {}, async () => {
225
- const { ok, data } = await apiRequest("GET", "/api/stats");
224
+ server.tool("get_stats", "Get BrewPage platform-wide usage statistics including page count, file count, and storage usage. Counts use disjoint split: alive_public + alive_private + deleted == total. Optional `tz` shifts the 'today' boundary to the given IANA zone (default UTC).", {
225
+ tz: z
226
+ .string()
227
+ .optional()
228
+ .describe("Optional IANA timezone id for the 'today' boundary, e.g. 'Europe/Lisbon'. Defaults to UTC. Invalid value falls back to UTC silently."),
229
+ }, async ({ tz }) => {
230
+ const path = tz ? `/api/stats?tz=${encodeURIComponent(tz)}` : "/api/stats";
231
+ const { ok, data } = await apiRequest("GET", path);
226
232
  if (!ok) {
227
233
  return {
228
234
  content: [
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "brewpage-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
+ "mcpName": "io.github.kochetkov-ma/brewpage-mcp",
4
5
  "description": "MCP server for BrewPage — publish and manage HTML, KV, JSON, and file content from AI assistants",
5
6
  "type": "module",
6
7
  "bin": {