freeticket-mcp: Agent for Claude Code

.claude/agents/mcp-tool-author.md

mcp-tool-author is an agent for Claude Code from AppFreeticket/freeticket-mcp. It costs 78 tokens per session (556 once invoked), scanned A, original, MIT.

A development guide for adding MCP tools to FreeTicket from operations already defined in its OpenAPI contract. MCP is a standard way for AI agents to call tools.

In plain words
What is it for?
Creating read-only or approved write tools with validated inputs, consistent JSON output, and backend error handling.
Why use it?
It keeps each tool tied to one real API operation and helps prevent invented endpoints, incorrect inputs, and hidden errors.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is AppFreeticket/freeticket-mcp's own configuration. It tells Claude Code how to work on freeticket-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything freeticket-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AppFreeticket/freeticket-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AppFreeticket/freeticket-mcp/main/.claude/agents/mcp-tool-author.md
Clone the repo
git clone --depth 1 https://github.com/AppFreeticket/freeticket-mcp

Made for: Claude Code.

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 mcp-tool-author

README.md
[![agentmods](https://agentmods.dev/badge/agents/appfreeticket/freeticket-mcp/mcp-tool-author/github.svg)](https://agentmods.dev/agents/appfreeticket/freeticket-mcp/mcp-tool-author)
Your own site
<a href="https://agentmods.dev/agents/appfreeticket/freeticket-mcp/mcp-tool-author"><img src="https://agentmods.dev/badge/agents/appfreeticket/freeticket-mcp/mcp-tool-author/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 mcp-tool-author

Your own site · 80×15
<a href="https://agentmods.dev/agents/appfreeticket/freeticket-mcp/mcp-tool-author"><img src="https://agentmods.dev/badge/agents/appfreeticket/freeticket-mcp/mcp-tool-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 556 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.00078 $0.00556
Opus 5.5 $0.00031 $0.00222
Sonnet 5.5 $0.00016 $0.00111
Haiku 4.5 $0.00008 $0.00056

Measured 1mo ago against content hash 3ce66e5ae2ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-tool-author 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 1mo ago.

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.

.claude/agents/mcp-tool-author.md · 42 lines

What it actually says

You turn operations from FreeTicket's contracts into clean MCP tools.

Before writing

  1. Confirm the operation exists in openapi.json, admin-openapi.json or public-openapi.json (path + operationId). If it does not, stop: the endpoint is requested in free-admin through the umbrella's endpoint-requester, never invented here.
  2. Read an existing tool in src/tools/ to copy the house style, and note which contract it belongs to — admin_* tools are gated behind FT_ADMIN_SESSION, public_* tools take no credentials at all.

Rules for a tool

  • One tool = one OpenAPI operation. Do not fold several calls into one "smart" tool; the MCP client orchestrates them.
  • zod input: only the parameters the operation accepts, each with a .describe(). Cursor pagination exactly as the contract has it (cursor, limit).
  • Output: { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }. Do not invent a format; return the contract's shape. Lists and reports also get a view through the uiTool() helper.
  • Errors: let the api() helper throw; a non-2xx status must reach the client as an MCP error carrying the backend's message, never swallowed.
  • Writes (POST/PATCH/DELETE) declare their side effects in the description and set the MCP annotations (destructiveHint, idempotentHint) so the host asks for human confirmation.
  • Tool name = verb + resource, snake case, consistent with the existing ones (events_list, sales_get). Name and description in English.

Afterwards

Run pnpm typecheck and pnpm test — coverage.test.ts is what tells you an exposed endpoint still has no tool. Update the tool table in the README. If the new tool came out of a contract change, coordinate the bump with contract-sync.

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. 1mo ago Changed · +7 lines · +3 tokens per session 3ce66e5ae2ae
  2. 2mo ago First seen · 35 lines · 75 tokens per session scan A b2ced32cb68e

Subscribe to this mod's changes

mcp-tool-author is an agent published in the GitHub repository AppFreeticket/freeticket-mcp (0 stars, last pushed 7d ago), licensed MIT. It adds 78 tokens to every session and 556 once invoked, about $0.0003 per session on Opus 5.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.

Related

Other agents, from other repositories

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

executor

Implementation requiring judgment - feature work, bug fixes, refactors with design decisions, integration work. The default executor for real development tasks that are more than mechanical but don't need the frontier model. Give it the goal, constraints, and done-criteria; it makes reasonable local design decisions…

Nanako0129/pilotfish · 60 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

strategy-consultant

You are a management and startup consultant for Korean founders, small-business owners, and startup operators. You turn a goal (validate business idea X, size market Y, win grant program Z, assess this storefront location) into concrete, evidence-based deliverables: business plans, business model canvases, market…

modu-ai/moai-cowork · 106 tokens

wiki-maintainer

Answers questions about, and makes targeted edits to, an already-indexed wiki project on demand. Reads current source through the traversal-guarded wiki tools, rewrites only the pages the user asked about, and never finalizes.

bearlike/Assistant · 50 tokens