@brixies-mcp/server 1.12.9 → 1.12.10
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 +6 -2
- package/index.js +9 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -8,10 +8,14 @@ Local MCP server for the Brixies layout library. Requires Node.js 22+ and an act
|
|
|
8
8
|
npx -y --prefer-online @brixies-mcp/server@latest
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Configure BRIXIES_API_URL and BRIXIES_API_KEY in your client's MCP process environment.
|
|
11
|
+
Configure BRIXIES_API_URL and BRIXIES_API_KEY in your client's MCP process environment. The official API base URL is `https://brixies.co/wp-json/brixies/v1`. Keep the key private and out of chats and version control. Preserve existing MCP servers when editing client configuration.
|
|
12
|
+
|
|
13
|
+
## Version 1.12.10
|
|
14
|
+
|
|
15
|
+
Uses the production API by default and reports the same version in npm and MCP. Authentication errors preserve the server’s reason without assuming that a revoked key expired. Recovery instructions apply to all supported assistants.
|
|
12
16
|
|
|
13
17
|
## Version 1.12.9
|
|
14
18
|
|
|
15
19
|
Reads the recommended release from existing API response headers. Adds one update notice per MCP process when a newer stable version is recommended. It makes no extra requests and preserves tool payloads. Restart the MCP process to resolve latest; opening a new chat alone may not restart it. Existing pinned configurations must be changed manually once. Offline or missing version metadata never blocks ordinary tools.
|
|
16
20
|
|
|
17
|
-
The API endpoint defaults to
|
|
21
|
+
The API endpoint defaults to `https://brixies.co/wp-json/brixies/v1`. An explicit `BRIXIES_API_URL` overrides this default; use your staging API URL only for staging tests. This server runs locally via stdio. Releases are distributed through npm.
|
package/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import postcss from "postcss";
|
|
|
9
9
|
import { deflateRawSync } from "node:zlib";
|
|
10
10
|
import selectorParser from "postcss-selector-parser";
|
|
11
11
|
|
|
12
|
-
const MCP_VERSION = "1.12.
|
|
12
|
+
const MCP_VERSION = "1.12.10";
|
|
13
13
|
const updateNotice = createUpdateNotice(MCP_VERSION);
|
|
14
14
|
const MANUAL_JSON_DELIVERY_INSTRUCTIONS = "For manual JSON delivery, use the complete JSON value after __BRICKS_JSON__ from this tool response as the authoritative base and deliver one complete JSON code block, excluding the marker and surrounding diagnostics. If the user has not explicitly requested content-text edits, reproduce that JSON exactly. If the user explicitly requests content-text edits, change only the requested user-facing text values (for example headings, paragraphs, button labels or form labels/placeholders) at the identified locations. Preserve existing fields, HTML tags, attributes and dynamic-data tokens within those values; edit only the requested literal text. Do not infer other edits. If a requested text target is ambiguous, ask which target to edit before changing it. Preserve every unrelated value, class definition, ID, reference, CSS rule, script, code signature, element order and structural relationship. Confirmed BEM renames must still be performed by the JSON tool using new_name/new_names, not by rewriting its output. Never reconstruct or summarize the JSON, truncate it, split a combined snippet, add duplicate keys, or append an empty globalClasses field. When editing text, prefer parsing the authoritative JSON, updating only the requested text values and serializing the complete object with correct JSON escaping; serialization whitespace may change, but unrelated values must not. Do not claim verbatim delivery if text was edited. If the complete result cannot be delivered reliably, report that limitation instead of supplying partial or invented JSON. A request for JSON or text personalization alone does not authorize creating pages/classes or importing through Bricks tools; use native import tools only when the user explicitly requests a site import.";
|
|
15
15
|
|
|
16
|
-
// Set BRIXIES_API_URL explicitly
|
|
17
|
-
const BRIXIES_API = process.env.BRIXIES_API_URL || "https://brixies
|
|
16
|
+
// Production by default. Set BRIXIES_API_URL explicitly to test against staging.
|
|
17
|
+
const BRIXIES_API = process.env.BRIXIES_API_URL || "https://brixies.co/wp-json/brixies/v1";
|
|
18
18
|
const BRIXIES_API_KEY = process.env.BRIXIES_API_KEY || "";
|
|
19
19
|
|
|
20
20
|
// Stable identifier for API logs and firewall rules.
|
|
@@ -312,10 +312,13 @@ async function apiRequest(path) {
|
|
|
312
312
|
if (res.status === 401) {
|
|
313
313
|
return {
|
|
314
314
|
ok: false,
|
|
315
|
+
status: 401,
|
|
315
316
|
error:
|
|
316
|
-
`Your Brixies API key was rejected
|
|
317
|
-
"
|
|
318
|
-
"
|
|
317
|
+
`Your Brixies API key was rejected. Server response: ${data.message || "Authentication failed; the server did not specify the cause."} ` +
|
|
318
|
+
"Do not infer expiration unless the server explicitly reports it. " +
|
|
319
|
+
"Check or regenerate your key at https://brixies.co/account/api-key/, " +
|
|
320
|
+
"then update BRIXIES_API_KEY in your assistant's local MCP configuration and restart the Brixies MCP connection. " +
|
|
321
|
+
"Do not paste your API key into the chat.",
|
|
319
322
|
};
|
|
320
323
|
}
|
|
321
324
|
if (res.status === 403) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brixies-mcp/server",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Brixies authenticated catalog MCP",
|
|
6
6
|
"main": "index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"start": "node index.js",
|
|
12
|
-
"test": "node test/migration.test.mjs && node test/rename.test.mjs && node test/requests.test.mjs && node test/preparations.test.mjs && node test/updates.test.mjs && node test/update-integration.test.mjs"
|
|
12
|
+
"test": "node test/migration.test.mjs && node test/rename.test.mjs && node test/requests.test.mjs && node test/preparations.test.mjs && node test/updates.test.mjs && node test/update-integration.test.mjs && node test/production.test.mjs"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@modelcontextprotocol/sdk": "1.30.0",
|