@utilix-tech/mcp 0.84.0 → 0.85.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 +4 -0
- package/README.md +5 -3
- package/dist/index.js +144 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.85.0
|
|
6
|
+
- Add `calculate_credit_card_minimum_payment` tool: simulate paying only the minimum payment on a revolving credit card balance, where the minimum is the larger of a percent of the balance or a fixed dollar floor, and report months/years to payoff, total interest, and total paid.
|
|
7
|
+
- Add `check_dash_usage` tool: scan text for likely dash misuse: a hyphen surrounded by spaces, an unconverted double hyphen, and inconsistent spacing around em dashes across the same document.
|
|
8
|
+
|
|
5
9
|
## 0.84.0
|
|
6
10
|
- Add `find_cron_overlaps` tool: walk minute-by-minute over a window of days and flag every minute where two or more cron schedules fire at once, listing which expressions collided.
|
|
7
11
|
- Add `lint_dockerfile` tool: lint a Dockerfile for an unpinned or `:latest` base image, a final stage missing WORKDIR or USER, and ADD used on a plain local file where COPY would do.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @utilix-tech/mcp
|
|
2
2
|
|
|
3
|
-
MCP server exposing
|
|
3
|
+
MCP server exposing 264 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
|
|
|
@@ -134,7 +134,7 @@ claude mcp add utilix -- npx -y @utilix-tech/mcp
|
|
|
134
134
|
| `generate_random_data` | Generate random mock data: names, emails, UUIDs, IPs, etc. |
|
|
135
135
|
| `generate_csp_nonce` | Generate a cryptographically random CSP nonce with ready-to-paste header directive and script/style tag snippets |
|
|
136
136
|
|
|
137
|
-
### Text (
|
|
137
|
+
### Text (17 tools)
|
|
138
138
|
| Tool | Description |
|
|
139
139
|
|------|-------------|
|
|
140
140
|
| `convert_case` | Convert text case: camelCase, snake_case, PascalCase, etc. |
|
|
@@ -155,6 +155,7 @@ claude mcp add utilix -- npx -y @utilix-tech/mcp
|
|
|
155
155
|
| `analyze_sentence_lengths` | Split text into sentences and report a histogram of sentence lengths, plus mean, median, standard deviation, and a consistency label |
|
|
156
156
|
| `lookup_emoji` | Search a curated table of ~280 common emoji by name, keyword, or GitHub-style shortcode, or look one up exactly by shortcode, character, or category |
|
|
157
157
|
| `analyze_keyword_density` | Count keyword/phrase frequency and density (occurrences per 100 words) across a block of text, with single-word or 2/3-word phrase modes |
|
|
158
|
+
| `check_dash_usage` | Scan text for likely dash misuse: a hyphen surrounded by spaces, an unconverted double hyphen, and inconsistent spacing around em dashes across the same document |
|
|
158
159
|
|
|
159
160
|
### Time (6 tools)
|
|
160
161
|
| Tool | Description |
|
|
@@ -167,7 +168,7 @@ claude mcp add utilix -- npx -y @utilix-tech/mcp
|
|
|
167
168
|
| `convert_timezone` | Convert a date/time between timezones |
|
|
168
169
|
| `convert_iso8601_duration` | Parse an ISO 8601 duration into components and total seconds, or format seconds into a duration string |
|
|
169
170
|
|
|
170
|
-
### Units (
|
|
171
|
+
### Units (47 tools)
|
|
171
172
|
| Tool | Description |
|
|
172
173
|
|------|-------------|
|
|
173
174
|
| `convert_bytes` | Convert between B, KB, MB, GB, TB, KiB, MiB, GiB, TiB |
|
|
@@ -216,6 +217,7 @@ claude mcp add utilix -- npx -y @utilix-tech/mcp
|
|
|
216
217
|
| `calculate_loan_prepayment_penalty` | Compute the dollar penalty cost of paying a loan off early, given its remaining payoff balance and a prepayment penalty structure: either a flat percent of the payoff balance, or a fixed number of months of interest at the loan's annual rate |
|
|
217
218
|
| `estimate_data_transfer_time` | Estimate the theoretical time to transfer a file of a given size over a connection of a given speed, or (given a target time instead) the bandwidth required to hit it |
|
|
218
219
|
| `calculate_real_rate_of_return` | Apply the Fisher equation to solve for whichever of the nominal rate, inflation rate, or inflation-adjusted real rate is missing, given exactly two of the three |
|
|
220
|
+
| `calculate_credit_card_minimum_payment` | Simulate paying only the minimum payment on a revolving credit card balance, where the minimum is the larger of a percent of the balance or a fixed dollar floor, and report months/years to payoff, total interest, and total paid |
|
|
219
221
|
|
|
220
222
|
### API / Network (51 tools)
|
|
221
223
|
| Tool | Description |
|
package/dist/index.js
CHANGED
|
@@ -13533,5 +13533,149 @@ server.tool(
|
|
|
13533
13533
|
return text(JSON.stringify(result, null, 2));
|
|
13534
13534
|
}
|
|
13535
13535
|
);
|
|
13536
|
+
var _CC_MIN_PAYMENT_MAX_MONTHS_MCP = 1200;
|
|
13537
|
+
function _calculateCreditCardMinimumPaymentMcp(balance, aprPercent, minPaymentPercent, minPaymentFloor) {
|
|
13538
|
+
if (!Number.isFinite(balance) || balance <= 0) {
|
|
13539
|
+
return { error: "balance must be a finite number greater than zero" };
|
|
13540
|
+
}
|
|
13541
|
+
if (!Number.isFinite(aprPercent) || aprPercent < 0) {
|
|
13542
|
+
return { error: "aprPercent must be a finite, non-negative number" };
|
|
13543
|
+
}
|
|
13544
|
+
if (!Number.isFinite(minPaymentPercent) || minPaymentPercent <= 0) {
|
|
13545
|
+
return { error: "minPaymentPercent must be a finite number greater than zero" };
|
|
13546
|
+
}
|
|
13547
|
+
if (!Number.isFinite(minPaymentFloor) || minPaymentFloor < 0) {
|
|
13548
|
+
return { error: "minPaymentFloor must be a finite, non-negative number" };
|
|
13549
|
+
}
|
|
13550
|
+
const round2 = (n) => Math.round(n * 100) / 100;
|
|
13551
|
+
const monthlyRate = aprPercent / 100 / 12;
|
|
13552
|
+
let bal = balance;
|
|
13553
|
+
let totalInterestPaid = 0;
|
|
13554
|
+
let totalPaid = 0;
|
|
13555
|
+
let firstMonthPayment = 0;
|
|
13556
|
+
let finalMonthPayment = 0;
|
|
13557
|
+
let month = 0;
|
|
13558
|
+
while (bal > 5e-3 && month < _CC_MIN_PAYMENT_MAX_MONTHS_MCP) {
|
|
13559
|
+
month++;
|
|
13560
|
+
const interest = bal * monthlyRate;
|
|
13561
|
+
bal += interest;
|
|
13562
|
+
totalInterestPaid += interest;
|
|
13563
|
+
let payment = Math.max(bal * (minPaymentPercent / 100), minPaymentFloor);
|
|
13564
|
+
if (payment > bal) payment = bal;
|
|
13565
|
+
bal -= payment;
|
|
13566
|
+
totalPaid += payment;
|
|
13567
|
+
finalMonthPayment = round2(payment);
|
|
13568
|
+
if (month === 1) firstMonthPayment = round2(payment);
|
|
13569
|
+
}
|
|
13570
|
+
if (bal > 5e-3) {
|
|
13571
|
+
return { error: `balance cannot be paid off within ${_CC_MIN_PAYMENT_MAX_MONTHS_MCP} months at this minimum-payment formula; increase minPaymentPercent or minPaymentFloor` };
|
|
13572
|
+
}
|
|
13573
|
+
return {
|
|
13574
|
+
monthsToPayoff: month,
|
|
13575
|
+
yearsToPayoff: round2(month / 12),
|
|
13576
|
+
totalInterestPaid: round2(totalInterestPaid),
|
|
13577
|
+
totalPaid: round2(totalPaid),
|
|
13578
|
+
firstMonthPayment,
|
|
13579
|
+
finalMonthPayment
|
|
13580
|
+
};
|
|
13581
|
+
}
|
|
13582
|
+
server.tool(
|
|
13583
|
+
"calculate_credit_card_minimum_payment",
|
|
13584
|
+
`Simulate paying only the minimum payment on a revolving credit card balance every month, where the minimum payment is whichever is larger of a percent of the current balance or a fixed dollar floor. Reports months and years to payoff, total interest, total paid, and the first vs. final month's payment amount, so the "minimum payment trap" becomes visible.`,
|
|
13585
|
+
{
|
|
13586
|
+
balance: z.number().positive().describe("Current revolving balance owed"),
|
|
13587
|
+
aprPercent: z.number().min(0).describe("Annual percentage rate, as a percent"),
|
|
13588
|
+
minPaymentPercent: z.number().positive().describe("Minimum payment as a percent of the current balance, as a percent"),
|
|
13589
|
+
minPaymentFloor: z.number().min(0).optional().describe("Fixed dollar floor for the minimum payment, default 0")
|
|
13590
|
+
},
|
|
13591
|
+
async ({ balance, aprPercent, minPaymentPercent, minPaymentFloor }) => {
|
|
13592
|
+
const result = _calculateCreditCardMinimumPaymentMcp(balance, aprPercent, minPaymentPercent, minPaymentFloor ?? 0);
|
|
13593
|
+
if ("error" in result) return errText(result);
|
|
13594
|
+
return text(JSON.stringify(result, null, 2));
|
|
13595
|
+
}
|
|
13596
|
+
);
|
|
13597
|
+
function _dashContextSnippetMcp(input, index, matchLen) {
|
|
13598
|
+
const start = Math.max(0, index - 20);
|
|
13599
|
+
const end = Math.min(input.length, index + matchLen + 20);
|
|
13600
|
+
const body = input.slice(start, end).replace(/\s+/g, " ").trim();
|
|
13601
|
+
return (start > 0 ? "\u2026" : "") + body + (end < input.length ? "\u2026" : "");
|
|
13602
|
+
}
|
|
13603
|
+
function _checkDashUsageMcp(input) {
|
|
13604
|
+
const issues = [];
|
|
13605
|
+
const enDashCount = (input.match(/–/g) ?? []).length;
|
|
13606
|
+
const hyphenCount = (input.match(/-/g) ?? []).length;
|
|
13607
|
+
const doubleHyphenMatches = [...input.matchAll(/-{2,}/g)];
|
|
13608
|
+
for (const m of doubleHyphenMatches) {
|
|
13609
|
+
const index = m.index ?? 0;
|
|
13610
|
+
issues.push({
|
|
13611
|
+
type: "double-hyphen",
|
|
13612
|
+
index,
|
|
13613
|
+
context: _dashContextSnippetMcp(input, index, m[0].length),
|
|
13614
|
+
message: `Found ${m[0].length} consecutive hyphens ("${m[0]}"); likely meant to be an em dash (\u2014) or en dash (\u2013).`
|
|
13615
|
+
});
|
|
13616
|
+
}
|
|
13617
|
+
const spacedHyphenMatches = [...input.matchAll(/(?<=\S) - (?=\S)/g)];
|
|
13618
|
+
for (const m of spacedHyphenMatches) {
|
|
13619
|
+
const index = m.index ?? 0;
|
|
13620
|
+
issues.push({
|
|
13621
|
+
type: "spaced-hyphen",
|
|
13622
|
+
index,
|
|
13623
|
+
context: _dashContextSnippetMcp(input, index, m[0].length),
|
|
13624
|
+
message: "A hyphen surrounded by spaces usually signals an intended em dash (\u2014), not a hyphenated compound word."
|
|
13625
|
+
});
|
|
13626
|
+
}
|
|
13627
|
+
const emDashOccurrences = [...input.matchAll(/—/g)];
|
|
13628
|
+
let spacedEm = 0;
|
|
13629
|
+
let unspacedEm = 0;
|
|
13630
|
+
for (const m of emDashOccurrences) {
|
|
13631
|
+
const idx = m.index ?? 0;
|
|
13632
|
+
const before = input[idx - 1];
|
|
13633
|
+
const after = input[idx + 1];
|
|
13634
|
+
if (before === " " && after === " ") spacedEm++;
|
|
13635
|
+
else if (before !== " " && after !== " ") unspacedEm++;
|
|
13636
|
+
}
|
|
13637
|
+
let dominantEmDashStyle = "none";
|
|
13638
|
+
let emDashSpacingConsistent = true;
|
|
13639
|
+
if (emDashOccurrences.length > 0) {
|
|
13640
|
+
dominantEmDashStyle = spacedEm >= unspacedEm ? "spaced" : "unspaced";
|
|
13641
|
+
emDashSpacingConsistent = spacedEm === 0 || unspacedEm === 0;
|
|
13642
|
+
if (!emDashSpacingConsistent) {
|
|
13643
|
+
for (const m of emDashOccurrences) {
|
|
13644
|
+
const idx = m.index ?? 0;
|
|
13645
|
+
const before = input[idx - 1];
|
|
13646
|
+
const after = input[idx + 1];
|
|
13647
|
+
const isSpaced = before === " " && after === " ";
|
|
13648
|
+
const matchesDominant = dominantEmDashStyle === "spaced" ? isSpaced : !isSpaced;
|
|
13649
|
+
if (!matchesDominant) {
|
|
13650
|
+
issues.push({
|
|
13651
|
+
type: "inconsistent-em-dash-spacing",
|
|
13652
|
+
index: idx,
|
|
13653
|
+
context: _dashContextSnippetMcp(input, idx, 1),
|
|
13654
|
+
message: `This em dash is ${isSpaced ? "spaced" : "unspaced"}, but the document mostly uses ${dominantEmDashStyle} em dashes.`
|
|
13655
|
+
});
|
|
13656
|
+
}
|
|
13657
|
+
}
|
|
13658
|
+
}
|
|
13659
|
+
}
|
|
13660
|
+
issues.sort((a, b) => a.index - b.index);
|
|
13661
|
+
return {
|
|
13662
|
+
emDashCount: emDashOccurrences.length,
|
|
13663
|
+
enDashCount,
|
|
13664
|
+
hyphenCount,
|
|
13665
|
+
doubleHyphenCount: doubleHyphenMatches.length,
|
|
13666
|
+
spacedHyphenCount: spacedHyphenMatches.length,
|
|
13667
|
+
emDashSpacingConsistent,
|
|
13668
|
+
dominantEmDashStyle,
|
|
13669
|
+
issues
|
|
13670
|
+
};
|
|
13671
|
+
}
|
|
13672
|
+
server.tool(
|
|
13673
|
+
"check_dash_usage",
|
|
13674
|
+
'Scan text for likely dash misuse: a hyphen surrounded by spaces where an em dash is probably intended ("word - word"), a double hyphen ("--") left unconverted, and inconsistent spacing around em dashes across the same document (mixing "word \u2014 word" and "word\u2014word"). Pure regex heuristic, not a grammar parser.',
|
|
13675
|
+
{ text: z.string().describe("The text to scan for dash usage issues") },
|
|
13676
|
+
async ({ text: input }) => {
|
|
13677
|
+
return text(JSON.stringify(_checkDashUsageMcp(input), null, 2));
|
|
13678
|
+
}
|
|
13679
|
+
);
|
|
13536
13680
|
var transport = new StdioServerTransport();
|
|
13537
13681
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilix-tech/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "MCP server exposing 198 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",
|