@claudinho/mcp 0.8.3 → 0.8.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/dist/index.js +8 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -454,6 +454,7 @@ function formatKickoff(iso, opts = {}) {
|
|
|
454
454
|
const locale = safeLocale(opts.locale);
|
|
455
455
|
return new Intl.DateTimeFormat(locale, {
|
|
456
456
|
weekday: "short",
|
|
457
|
+
...opts.date ? { month: "short", day: "numeric" } : {},
|
|
457
458
|
hour: "2-digit",
|
|
458
459
|
minute: "2-digit",
|
|
459
460
|
hour12: false,
|
|
@@ -4404,6 +4405,9 @@ function statusTail2(m) {
|
|
|
4404
4405
|
if (isLive(m.status)) return " LIVE";
|
|
4405
4406
|
return "";
|
|
4406
4407
|
}
|
|
4408
|
+
function formatBracketKickoff(iso, opts) {
|
|
4409
|
+
return formatKickoff(iso, { tz: opts.tz, locale: opts.locale, date: true });
|
|
4410
|
+
}
|
|
4407
4411
|
function formatBracketMatchLine(mv, opts = {}) {
|
|
4408
4412
|
const flags = opts.flags !== false;
|
|
4409
4413
|
const home = formatParticipant(mv.home, "home", flags, opts.locale);
|
|
@@ -4412,7 +4416,7 @@ function formatBracketMatchLine(mv, opts = {}) {
|
|
|
4412
4416
|
if (isFinished(m.status) || isLive(m.status)) {
|
|
4413
4417
|
return ` ${home} ${scoreline(m)} ${away}${statusTail2(m)}`;
|
|
4414
4418
|
}
|
|
4415
|
-
const kickoff = mv.kickoff ?
|
|
4419
|
+
const kickoff = mv.kickoff ? formatBracketKickoff(mv.kickoff, opts) : "";
|
|
4416
4420
|
return ` ${home} vs ${away}${kickoff ? ` \xB7 ${kickoff}` : ""}`;
|
|
4417
4421
|
}
|
|
4418
4422
|
function formatBracketList(view, opts = {}) {
|
|
@@ -4480,7 +4484,7 @@ function formatBracketCompactLine(mv, opts = {}) {
|
|
|
4480
4484
|
const away = formatParticipant(mv.away, "away", flags, opts.locale);
|
|
4481
4485
|
const m = mv.match;
|
|
4482
4486
|
const mid2 = isFinished(m.status) || isLive(m.status) ? scoreline(m) : "vs";
|
|
4483
|
-
const tail = m.status === "SCHEDULED" && mv.kickoff ? ` \xB7 ${
|
|
4487
|
+
const tail = m.status === "SCHEDULED" && mv.kickoff ? ` \xB7 ${formatBracketKickoff(mv.kickoff, opts)}` : statusTail2(m);
|
|
4484
4488
|
return `${stageLabelI18n(opts.locale, mv.stage)} \xB7 ${home} ${mid2} ${away}${tail}`;
|
|
4485
4489
|
}
|
|
4486
4490
|
|
|
@@ -4729,7 +4733,7 @@ async function toolGetBracket(args) {
|
|
|
4729
4733
|
resolveAdapter(args),
|
|
4730
4734
|
filter ? { stage: filter, lang: args.lang } : { lang: args.lang }
|
|
4731
4735
|
);
|
|
4732
|
-
let text = formatBracketList(view, { footer: false, locale: args.lang });
|
|
4736
|
+
let text = formatBracketList(view, { footer: false, locale: args.lang, tz: args.tz });
|
|
4733
4737
|
if (degraded) {
|
|
4734
4738
|
text += `
|
|
4735
4739
|
|
|
@@ -5027,7 +5031,7 @@ async function toolGetShareSnippet(args) {
|
|
|
5027
5031
|
|
|
5028
5032
|
// src/server.ts
|
|
5029
5033
|
var SERVER_NAME = "claudinho";
|
|
5030
|
-
var SERVER_VERSION = "0.8.
|
|
5034
|
+
var SERVER_VERSION = "0.8.4";
|
|
5031
5035
|
var VOICE = asFlavorLevel(process.env.CLAUDINHO_FLAVOR) === "off" ? "" : `
|
|
5032
5036
|
Voice: when relaying scores, narrate with lively, regionally-appropriate football-commentary energy in the user's language. Each match line may end with a short exclamation ("\u2014 \xA1GOOOOL!") \u2014 use it as a tone cue. Keep every fact exact; never invent details and never impersonate or name a real commentator.`;
|
|
5033
5037
|
var INSTRUCTIONS = `Claudinho serves live scores, fixtures, and group standings for the 2026 men's football tournament.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudinho/mcp",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"mcpName": "io.github.arturogarrido/claudinho",
|
|
5
5
|
"description": "MCP server for the 2026 men's football tournament — live scores, fixtures, standings, read-only prediction-market signals, and paste-ready match cards. Works with Claude Code, Cursor, Codex, Windsurf, Zed. Not affiliated with FIFA or Anthropic.",
|
|
6
6
|
"type": "module",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tsup": "^8.0.0",
|
|
58
58
|
"typescript": "^5.7.0",
|
|
59
59
|
"vitest": "^4.1.9",
|
|
60
|
-
"@claudinho/core": "0.8.
|
|
60
|
+
"@claudinho/core": "0.8.4"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsup",
|