@utilix-tech/mcp 0.42.0 → 0.43.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/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
4
4
 
5
+ ## 0.43.0
6
+ - Add `build_vary_header`, `parse_vary_header` tools: build a `Vary` response header from request-header names with a plain-English caching note per header, or parse an existing Vary header into the same shape.
7
+
5
8
  ## 0.42.0
6
9
  - Add `build_range_header`, `parse_content_range_header` tools: build an HTTP `Range` request header from explicit, open-ended, or suffix ("last N bytes") byte ranges, and parse a server's `Content-Range` response to verify what it actually sent back.
7
10
  - Add `find_csv_duplicate_rows` tool: group CSV/TSV rows that share the same value across a chosen set of key columns, or the entire row, and report each duplicate group's occurrence count and data row numbers.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @utilix-tech/mcp
2
2
 
3
- MCP server exposing 171 developer utility tools to Claude, Cursor, VS Code Copilot, and any [Model Context Protocol](https://modelcontextprotocol.io) compatible AI assistant.
3
+ MCP server exposing 173 developer utility tools to Claude, Cursor, VS Code Copilot, and any [Model Context Protocol](https://modelcontextprotocol.io) compatible AI assistant.
4
4
 
5
5
  No API key required. All tools run locally. Requires Node.js 18 or later.
6
6
 
@@ -189,7 +189,7 @@ claude mcp add utilix -- npx -y @utilix-tech/mcp
189
189
  | `calculate_cash_breakdown` | Break a cash amount down into the minimum count of bills/coins from a set of denominations, largest first |
190
190
  | `calculate_change` | Compute change owed for a payment/tender pair and break it down into the minimum count of bills/coins |
191
191
 
192
- ### API / Network (18 tools)
192
+ ### API / Network (20 tools)
193
193
  | Tool | Description |
194
194
  |------|-------------|
195
195
  | `decode_jwt` | Decode a JWT: header, payload, and expiry |
@@ -210,6 +210,8 @@ claude mcp add utilix -- npx -y @utilix-tech/mcp
210
210
  | `analyze_email_headers` | Parse a raw email header block into structured fields, the Received hop chain, and SPF/DKIM/DMARC results from an Authentication-Results header |
211
211
  | `build_range_header` | Build an HTTP Range request header from explicit, open-ended, or suffix ("last N bytes") byte ranges |
212
212
  | `parse_content_range_header` | Parse a Content-Range response header into its unit, byte bounds, and total resource size |
213
+ | `build_vary_header` | Build a Vary response header from request-header names, with a plain-English caching note per header |
214
+ | `parse_vary_header` | Parse an existing Vary header value into its individual header names, each with a caching note |
213
215
 
214
216
  ### Color (4 tools)
215
217
  | Tool | Description |
package/dist/index.js CHANGED
@@ -7136,5 +7136,67 @@ server.tool(
7136
7136
  return text(JSON.stringify(result, null, 2));
7137
7137
  }
7138
7138
  );
7139
+ var _VARY_HEADER_NOTES_MCP = {
7140
+ "accept-encoding": "Caches must store a separate response per compression scheme (gzip, br, etc.) the client accepts.",
7141
+ "accept-language": "Caches must store a separate response per requested language, which can fragment a shared cache badly if Accept-Language values are highly varied.",
7142
+ "accept": "Caches must store a separate response per requested content type (e.g. JSON vs HTML).",
7143
+ "user-agent": "Caches must store a separate response per distinct User-Agent string, which is often unique enough to make caching nearly ineffective.",
7144
+ "authorization": "Signals the response is user-specific; most shared caches will refuse to cache it at all rather than key on this header.",
7145
+ "cookie": "Same effect as Authorization: shared caches typically treat the response as private and skip caching rather than key on cookie values.",
7146
+ "origin": "Caches must store a separate response per requesting Origin, needed whenever a response includes CORS headers that differ by origin.",
7147
+ "x-requested-with": "Caches must store a separate response depending on whether the request was made via an XHR/fetch client hint.",
7148
+ "x-forwarded-proto": "Caches must store a separate response for HTTP vs HTTPS requests, relevant behind a proxy or load balancer that terminates TLS."
7149
+ };
7150
+ function _buildVaryHeaderMcp(headers) {
7151
+ if (!Array.isArray(headers) || headers.length === 0) return { error: "At least one header is required" };
7152
+ const trimmed = headers.map((h) => typeof h === "string" ? h.trim() : "").filter((h) => h.length > 0);
7153
+ if (trimmed.length === 0) return { error: "At least one header is required" };
7154
+ const warnings = [];
7155
+ if (trimmed.some((h) => h === "*") && trimmed.length > 1) {
7156
+ warnings.push('"*" makes every request effectively uncacheable; combining it with other header names is redundant, most caches will just skip caching entirely');
7157
+ }
7158
+ const seen = /* @__PURE__ */ new Map();
7159
+ for (const h of trimmed) {
7160
+ const key = h.toLowerCase();
7161
+ if (!seen.has(key)) seen.set(key, h);
7162
+ }
7163
+ if (seen.size < trimmed.length) warnings.push("duplicate header names were removed");
7164
+ const entries = Array.from(seen.values()).map((h) => ({
7165
+ header: h,
7166
+ note: h === "*" ? "Every response is considered unique; most caches will not store it at all." : _VARY_HEADER_NOTES_MCP[h.toLowerCase()] ?? `Caches must store a separate response per distinct ${h} value.`
7167
+ }));
7168
+ const headerValue = entries.map((e) => e.header).join(", ");
7169
+ return { header: `Vary: ${headerValue}`, headerValue, entries, warnings };
7170
+ }
7171
+ function _parseVaryHeaderMcp(raw) {
7172
+ if (!raw || raw.trim() === "") return { error: "Input is empty" };
7173
+ const withoutLabel = raw.trim().replace(/^vary:\s*/i, "");
7174
+ const headers = withoutLabel.split(",").map((h) => h.trim()).filter((h) => h.length > 0);
7175
+ return _buildVaryHeaderMcp(headers);
7176
+ }
7177
+ server.tool(
7178
+ "build_vary_header",
7179
+ "Build a Vary response-header value from a list of request-header names (e.g. Accept-Encoding, Accept-Language, Authorization), de-duplicating case-insensitively and attaching a plain-English caching note for each well-known header explaining what it does to shared caches.",
7180
+ {
7181
+ headers: z.array(z.string()).min(1).describe("Request-header names to vary the response by")
7182
+ },
7183
+ async ({ headers }) => {
7184
+ const result = _buildVaryHeaderMcp(headers);
7185
+ if ("error" in result) return errText(result);
7186
+ return text(JSON.stringify(result, null, 2));
7187
+ }
7188
+ );
7189
+ server.tool(
7190
+ "parse_vary_header",
7191
+ 'Parse an existing Vary header value (with or without a leading "Vary:" label) into its individual header names, each with a plain-English note on what it does to shared caching.',
7192
+ {
7193
+ header: z.string().min(1).describe("The Vary header value to parse")
7194
+ },
7195
+ async ({ header }) => {
7196
+ const result = _parseVaryHeaderMcp(header);
7197
+ if ("error" in result) return errText(result);
7198
+ return text(JSON.stringify(result, null, 2));
7199
+ }
7200
+ );
7139
7201
  var transport = new StdioServerTransport();
7140
7202
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilix-tech/mcp",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "MCP server exposing 168 Utilix developer tools to Claude, Cursor, VS Code Copilot, and any MCP-compatible AI assistant.",
5
5
  "author": "Utilix <hello@utilix.tech>",
6
6
  "license": "MIT",