matematic-mcp-fastmcp-instructions-pl

matematic-mcp-fastmcp-instructions-pl is a skill for Claude Code from matematicsolutions/awesome-matematic-skills-pl. It costs 335 tokens per session (7,580 once invoked), scanned A, original, MIT.

Wzorzec budowy serwerów MCP z ustalonymi zasadami instrukcji, autoryzacji, obsługi błędów i routingu dla wielu organizacji. Serwer MCP udostępnia agentom narzędzia, z których mogą korzystać w określonej kolejności.

In plain words
What is it for?
Służy do tworzenia nowych serwerów MCP, modernizowania istniejących, sprawdzania ich zgodności ze wzorcem oraz diagnozowania problemów z wywoływaniem narzędzi i logowaniem.
Why use it?
Pomaga uniknąć sytuacji, w której agent wywołuje narzędzia w złej kolejności, klient nie przechodzi uwierzytelnienia albo ważne błędy są nieczytelne.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the dev-mcp plugin — 4 skills shipped together

Good fit Służy do tworzenia nowych serwerów MCP, modernizowania istniejących, sprawdzania ich zgodności ze wzorcem oraz diagnozowania problemów z wywoływaniem narzędzi i logowaniem.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add matematicsolutions/awesome-matematic-skills-pl --skill matematic-mcp-fastmcp-instructions-pl
Clone the repo
git clone --depth 1 https://github.com/matematicsolutions/awesome-matematic-skills-pl

Made for: Claude Code.

Or install dev-mcp, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for matematic-mcp-fastmcp-instructions-pl

README.md
[![agentmods](https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl/github.svg)](https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl)
Your own site
<a href="https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl"><img src="https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for matematic-mcp-fastmcp-instructions-pl

Your own site · 80×15
<a href="https://agentmods.dev/skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl"><img src="https://agentmods.dev/badge/skills/matematicsolutions/awesome-matematic-skills-pl/matematic-mcp-fastmcp-instructions-pl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 335 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00335 $0.07580
Opus 5 $0.00168 $0.03790
Sonnet 5 $0.00067 $0.01516
Haiku 4.5 $0.00034 $0.00758

Measured 12d ago against content hash b20eb443c42e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

matematic-mcp-fastmcp-instructions-pl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (examples/auth.py, examples/instructions.py, examples/server.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dev-mcp/skills/matematic-mcp-fastmcp-instructions-pl/SKILL.md · 499 lines

How it starts

The opening of the file, as written. The whole thing — 499 lines — stays where its author put it; the contents beside it link to each section on GitHub.

matematic-mcp-fastmcp-instructions-pl

Wzorzec kanoniczny dla MCP serverow MateMatic. Walidowany empirycznie na dograh-hq/dograh v1.31.0 (production system, 3-4 dni release cycle, 2.6k gwiazdek, drift testy w CI, BSD-2).

Kiedy uzywac

  • Nowy MCP server MateMatic od pierwszego commita
  • Retrofit istniejacych (saos-orzecznictwo, mcp-eu-compliance, matematic-anonimizacja-pl, mcp-pomoc-prawna-pl, sejm-eli-mcp, mcp-uodo, mcp-kio) - do konca Q3 2026
  • Audit istniejacego MCP server (czy ma 8 elementow)
  • Debug: LLM nie wywoluje tooli w odpowiedniej kolejnosci, klient MCP nie autoryzuje, error_codes ginace dla LLM

9 elementow kanonu

1. FastMCP(instructions=...) z procedural orchestration

Instrukcje wstrzykiwane do system promptu kazdego klienta MCP. LLM widzi je PRZED pierwszym tool call.

Tresc:

  • Call order (ktora kolejnosc wywolywac tools)
  • Error handling (jak iteorwac po failed tool call)
  • Hard constraints (czego NIE robic)
  • Field conventions (kanoniczne nazwy, format ID)
  • Style (preferencje przy wyborze toolow gdy wiele rozwiazan)

Anti-content:

  • NIE re-enumerowac tool signatures (drift - signatury sa w tools/list)
  • NIE re-enumerowac error_codes (drift - error_codes w tool docstring)
  • NIE per-field guidance (to lezy w PropertySpec.llm_hint)

Wzor (Python):

from fastmcp import FastMCP
from .instructions import MY_MCP_INSTRUCTIONS
from .tools.foo import foo_tool
from .tools.bar import bar_tool

mcp = FastMCP("matematic-saos", instructions=MY_MCP_INSTRUCTIONS)

for _tool in (foo_tool, bar_tool):
    mcp.tool(_tool)

2. Drift test (tests/test_mcp_instructions_drift.py)

Fail jesli:

  • Instructions wymienia tool nie registered
  • Tool ma error_code ktorego nie ma w docstring

Wzor w examples/test_instructions_drift.py.

3. Auth dwukanalowy X-API-Key LUB Bearer

FastMCP domyslnie stripuje Authorization header. MUSISZ explicit get_http_headers(include={"authorization"}).

Read the full file on GitHub · 499 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 499 lines · 335 tokens per session scan A b20eb443c42e

Subscribe to this mod's changes

matematic-mcp-fastmcp-instructions-pl is a skill published in the GitHub repository matematicsolutions/awesome-matematic-skills-pl (6 stars, last pushed 19d ago), licensed MIT. It adds 335 tokens to every session and 7,580 once invoked, about $0.0017 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.