Fifa Scheduler
БесплатноНе проверенCreates calendar events for FIFA World Cup matches and emails reminders to the user.
Описание
Creates calendar events for FIFA World Cup matches and emails reminders to the user.
README
An MCP (Model Context Protocol) server that creates and notifies calendar-style events for FIFA World Cup matches of your favourite team. The server exposes a single tool, create_match_event, which gathers the match details from the user and posts them to a local backend that schedules the event and emails a reminder to the recipient.
Understanding MCP Elicitation
Elicitation is an MCP feature that lets a server request additional input from the user, mid-request, through the client. Instead of forcing all parameters to be supplied up front when a tool is called, the server can pause and ask the user for the information it needs — interactively.
Why it exists
Tools often need data that:
- The model/agent doesn't have (e.g., a personal email address).
- Should be confirmed by a human before an action is taken (e.g., sending an email or creating a calendar event).
- Is better captured through a structured form than guessed by the model.
Elicitation provides a standard, secure way to collect that data without hard-coding it or trusting the model to invent it.
How it works
- Capability negotiation. Elicitation is a client capability. During initialization, the client advertises whether it supports elicitation (and which modes, such as
form). The server checks this at runtime viagetClientCapabilities(). - The server requests input. When a tool needs more data, the server calls
elicitInput({ ... })with:- A
mode(e.g.,"form"). - A human-readable
message. - A
requestedSchema(JSON Schema) describing the fields, their types, validation rules, titles, descriptions, and defaults.
- A
- The client renders a UI. The client shows the user a form (or other appropriate UI) based on the schema, validating the input against the provided constraints.
- The user responds. The result contains an
action:accept— the user submitted the form; the data is incontent.decline/cancel— the user refused or dismissed; the server should handle this gracefully (no action taken).
- The server continues. With the collected, validated data, the server completes its work.
Elicitation in this project
Elicitation can be either: URL Elicitation or Form Elicitation. This server uses form elicitation to collect the recipient email, reminder time, and favourite team.
Read more on URL Elicitation: (https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation#url-mode-elicitation-requests).
Key points illustrated by the code:
- It gracefully degrades: if the client doesn't support form elicitation, the tool returns a clear message instead of failing silently. (Here, the email is considered mandatory, so a form-capable client is required.)
- It respects user choice: if the user cancels the form, no event is created.
- It uses the schema's defaults and validation (e.g.,
minimum/maximumfor reminder minutes,minLengthfor strings) so the client can guide the user toward valid input.
Best practices (general)
- Always check the client capability before calling
elicitInput, and provide a fallback path. - Keep schemas minimal and well-described (titles, descriptions, sensible defaults).
- Never use elicitation to request secrets the user wouldn't expect a tool to ask for; be transparent about why the data is needed.
- Always handle the non-
acceptactions so the user can safely back out.
What src/index.ts does
src/index.ts is the entire server implementation. Here is a breakdown of its responsibilities:
1. Bootstrapping the MCP server
- Imports
McpServerandStdioServerTransportfrom the MCP SDK, pluszodfor input validation. - Instantiates an
McpServernamedfifaScheduler(version1.0.0). - Declares the server capabilities it supports during initialization:
tools: { listChanged: true }— the server can notify clients when its tool list changes.
- Note:
elicitationis a client capability, so it is intentionally not declared in the server's capabilities. The server only checks for it at runtime (see below). Some of the clients that support Elicitation are Copilot Claude CLI etc. Claude Desktop as of now doesn't supportelicitation
2. Registering the create_match_event tool
The tool is registered with server.registerTool(...) and described as:
"Create a match event for the match in the world cup and send to the mail of the recipient."
Its input schema (all optional, validated with zod) acts as a fallback for clients that cannot render an interactive form:
| Field | Type | Purpose |
|---|---|---|
favoriteTeam |
string (optional) |
The team whose match you want an event for. |
recipientEmail |
string (optional) |
The email address that will receive the reminder. |
minutesRemaining |
number (optional) |
Minutes before kickoff to be reminded. |
3. Collecting input via elicitation
When the tool is invoked, the handler:
- Checks whether the connected client advertises form elicitation support via
server.server.getClientCapabilities()?.elicitation?.form. - If form elicitation is supported, it calls
server.server.elicitInput({ mode: "form", ... })to ask the user for (or confirm) three values through a structured form:email— recipient email (defaults to the passed-in value or a fallback address).reminderMinutes— integer between0and1440.favoriteTeam— the team name.- All three fields are marked as
required.
- If the user does not accept the form (
elicitation.action !== "accept") or returns no content, the tool returns a friendly "cancelled" message. - If form elicitation is not supported, the tool returns an error message explaining that a form-capable client is required (because the recipient email can only be collected through the form).
4. Creating the event (backend call)
Once the inputs are gathered, the handler:
Sends a
POSTrequest tohttp://localhost:3000/create-eventwith a JSON body containingfavoriteTeam,email, andreminderMinutes.Handles failures gracefully:
- A non-
okHTTP response returns an error result including the status code. - Network/exception errors are caught and reported as an error result.
- A non-
On success, it logs the response (to
stderr) and returns a confirmation message such as:"Match event for Argentina created and sent to [email protected] with a 60-minute reminder."
Project structure
package.json # package metadata, scripts, and dependencies
tsconfig.json # TypeScript compiler configuration
README.md # this file
src/
index.ts # MCP server implementation (the file documented above)
build/
index.js # compiled output (entry point / bin)
Getting started
Prerequisites
- Node.js (ESM-capable version).
- A backend listening on
http://localhost:3000/create-eventthat accepts a JSONPOSTbody of{ favoriteTeam, email, reminderMinutes }. - An MCP client that supports form elicitation (required to collect the recipient email).
Build
npm install
npm run build
This compiles src/index.ts to build/index.js and makes it executable.
Run
The server speaks MCP over stdio, so it is typically launched by an MCP client rather than run directly. Configure your client to start it via the mcp-fifa-scheduler bin. On the client, mcp.json should be added with the following content:
{
"servers": {
"fifa-scheduler": {
"type": "stdio",
"command": "node",
"args": ["/path_to_index.js"]
}
}
}
If Copilot is used in VS Code add a directory .vscode and add mcp.json within it.
Tool reference
create_match_event
Creates a World Cup match event and emails a reminder to the recipient.
Inputs (all optional; used as fallbacks when a form can't be rendered):
favoriteTeam(string) — Favourite team of the user.recipientEmail(string) — Email of the recipient.minutesRemaining(number) — Minutes remaining before the match starts.
Behaviour: Prompts the user via form elicitation for the email, reminder minutes, and favourite team, then posts the result to the local create-event backend and returns a confirmation message.
Установить Fifa Scheduler в Claude Desktop, Claude Code, Cursor
unyly install mcp-fifa-schedulerСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mcp-fifa-scheduler -- npx -y mcp-fifa-schedulerFAQ
Fifa Scheduler MCP бесплатный?
Да, Fifa Scheduler MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Fifa Scheduler?
Нет, Fifa Scheduler работает без API-ключей и переменных окружения.
Fifa Scheduler — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Fifa Scheduler в Claude Desktop, Claude Code или Cursor?
Открой Fifa Scheduler на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Notion
Read and write pages in your workspace
автор: NotionLinear
Issues, cycles, triage — from Claude
автор: LinearGoogle Drive
Search and read your Drive files
автор: Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
автор: mindsdbCompare Fifa Scheduler with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории productivity
