api-errors

A reference for MCP error constructors, JSON-RPC error codes, and error-handling patterns in @cyanheads/mcp-ts-core.

In plain words
What is it for?
Use it when implementing or reviewing service error handling, error codes, and ErrorHandler.tryCatch.
Why use it?
It helps determine which errors to raise, where to handle them, and how to use the library's error helper.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/cyanheads/crossref-mcp-server/api-errors
Any agent
npx skills add cyanheads/crossref-mcp-server --skill api-errors
Clone the repo
git clone --depth 1 https://github.com/cyanheads/crossref-mcp-server

Made for: Claude Code, Codex.

Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin unknown 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 $0.00054 $0.06958
Opus 5 $0.00027 $0.03479
Sonnet 5 $0.00011 $0.01392
Haiku 4.5 $0.00005 $0.00696

Measured 2d ago against content hash 140957b2714f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-errors scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const articles = await ncbi.fetch(input.pmids);
skills/api-errors/SKILL.md · 529 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2d ago First seen · 529 lines · 54 tokens per session scan A 140957b2714f

Subscribe to this mod's changes

api-errors is a skill published in the GitHub repository cyanheads/crossref-mcp-server (3 stars, last pushed 8d ago), with no licence file. It adds 54 tokens to every session and 6,958 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nature-academic-search

Use when users ask to 找文献、做文献检索、查论文、查临床试验、核验引用、去重文献、设计 PubMed/MeSH 检索式、追踪上下游引文、解析 DOI/PMID/PMCID/arXiv/OpenAlex/Semantic Scholar/NCT ID, 或导出 RIS、BibTeX、NBIB、ENW;also use for multi-source academic search, citation verification, citation graphs, trial registration search, research workflows, or DeepSeek Harness…

wp-a/nature-academic-search · 122 tokens

paper-verify-webchat

Use when the user asks to fact-check, verify, or score the citations/sources/references in a document from a chat (no terminal) — extracts citations with bundled code, fetches and judges each source with web tools, then scores through paper-verify's standard 100-point rubric via --from-evidence.

nolainjin/paper-verify · 70 tokens

paper-verify

Use when the user asks to verify citations, audit source links, check blog/report/lecture references, or reduce a long bibliography to sources that need human review using the paper-verify CLI or MCP tools.

nolainjin/paper-verify · 45 tokens

ai4scholar-文献审计助手

全方位审计参考文献列表:交叉引用匹配、格式一致性、DOI/URL 验证、期刊名核查、元数据逻辑校验、完整性检测、重复检测、自引率分析、排序校验。支持联网验证文献真实性(需 ai4scholar API Key)。.

literaf/ai4scholar-skill-hub · 82 tokens

citation-verification

This skill provides reference guidance for citation verification in academic writing. Use when the user asks about "citation verification best practices", "how to verify references", "preventing fake citations", or needs guidance on citation accuracy. This skill supports ml-paper-writing by providing detailed…

Galaxy-Dawn/claude-scholar · 63 tokens

Paper Writing Skills Index

Routing and workflow skill family for paper-writing tasks. Covers manuscript drafting, journal and conference papers, grant proposals, lab reports, group-meeting reports, talks, workshop notes, reviewer rebuttals, academic HTML/PDF/LaTeX output with editable-block contracts, citation grounding, evidence checking, and…

aristoteleo/PantheonOS · 76 tokens