apitomy-data-models-mcp CLAUDE.md

apitomy-data-models-mcp CLAUDE.md is an instructions file for coding agents from Apitomy/apitomy-data-models-mcp. It costs 2,072 tokens per session, scanned A, original, Apache-2.0.

A local MCP server for AI-assisted work on OpenAPI and AsyncAPI documents, which describe the interfaces that software services expose. It supports querying, editing, validation, conversion, and session-based document handling.

In plain words
What is it for?
Use it to create and manage document sessions, inspect paths and schemas, edit documents, validate them, and convert between JSON and YAML or supported specification versions.
Why use it?
It provides structured tools for inspecting and changing API specifications instead of treating them as plain text.

Instructions file

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 instructions/apitomy/apitomy-data-models-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/Apitomy/apitomy-data-models-mcp

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 apitomy-data-models-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apitomy/apitomy-data-models-mcp/claude-md.svg)](https://agentmods.dev/instructions/apitomy/apitomy-data-models-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/apitomy/apitomy-data-models-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/apitomy/apitomy-data-models-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,072 This file is loaded in full into every session.
When invoked 2,072 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.02072 $0.02072
Opus 5 $0.01036 $0.01036
Sonnet 5 $0.00414 $0.00414
Haiku 4.5 $0.00207 $0.00207

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

Security

Grade A, and why

apitomy-data-models-mcp CLAUDE.md 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 4d 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.md · 202 lines

How it starts

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

Project Guidelines

Overview

This is an MCP (Model Context Protocol) server that wraps the @apitomy/data-models library to provide AI-assisted querying, editing, validation, and transformation of OpenAPI and AsyncAPI documents. It is a TypeScript project using the @modelcontextprotocol/sdk.

Architecture

Source Layout

src/
  index.ts              # Entry point (stdio transport)
  server.ts             # MCP server creation and tool/resource registration
  session-manager.ts    # In-memory session store (Map<string, SessionEntry>)
  tools/
    session.ts          # Session lifecycle tools (create, list, get, close, export)
    query.ts            # Document query tools (info, paths, schemas, nodes, operations)
    edit.ts             # Document editing tools (set, remove, add schema)
    transform.ts        # Format conversion tools (JSON/YAML, version conversion)
    validation.ts       # Document validation tool
  resources/
    document.ts         # MCP resource templates (info, paths, schemas per session)
  visitors/
    index.ts            # Barrel export for all visitors
    DocumentInfoVisitor.ts
    OperationCollectorVisitor.ts
    PathCollectorVisitor.ts
    SchemaCollectorVisitor.ts
    SchemaContainerVisitor.ts
    SecuritySchemeCollectorVisitor.ts
    ServerCollectorVisitor.ts
    TagCollectorVisitor.ts
    ClearNodeVisitor.ts
    RemoveNodeVisitor.ts
  util/
    errors.ts           # Error result helpers
    format.ts           # JSON/YAML format detection and serialization
    model-type-map.ts   # ModelType string-to-enum mapping

Session Model

Documents are managed through named sessions stored in a singleton SessionManager. Each session holds a parsed Document object from the data-models library, along with metadata (model type, file path, format, timestamps). Tools receive a session_name parameter to identify which document to operate on.

Tool Categories

  • Session tools (7): document_load, document_create, document_save, document_close, document_list_sessions, document_export, document_clone_session
  • Query tools (16): document_get_info, document_list_paths, document_get_operation, document_list_schemas, document_get_node, document_list_operations, document_get_schema, document_list_security_schemes, document_list_servers, document_list_tags, document_list_parameters, document_list_responses, document_list_media_types, document_list_extensions, document_list_examples, document_find_refs
  • Edit tools (76): document_set_info, document_add_path, document_add_schema, document_set_node, document_remove_node, document_add_operation, document_remove_operation, document_add_response, document_add_parameter, document_add_request_body, document_add_media_type, document_set_media_type_schema, document_add_security_scheme, document_remove_response, document_add_response_definition, document_remove_parameter, document_remove_security_scheme, document_add_tag, document_add_server, document_set_contact, document_set_license, document_remove_schema, document_remove_path, document_add_channel, document_add_response_header, document_remove_request_body, document_update_security_scheme, document_remove_tag, document_rename_tag, document_remove_server, document_add_extension, document_remove_extension, document_remove_response_header, document_add_schema_property, document_remove_schema_property, document_add_security_requirement, document_add_example, document_set_operation_info, document_set_operation_tags, document_set_schema_required, document_set_schema_type, document_add_schema_enum, document_remove_all_security_requirements, document_remove_media_type, document_add_parameter_definition, document_remove_parameter_definition, document_add_header_definition, document_remove_header_definition, document_add_example_definition, document_remove_example_definition, document_add_request_body_definition, document_remove_request_body_definition, document_delete_contact, document_delete_license, document_update_extension, document_remove_all_examples, document_rename_path, document_rename_schema, document_copy_operation, document_move_operation, document_add_callback, document_remove_callback, document_add_link, document_remove_link, document_set_external_docs, document_add_server_variable, document_remove_server_variable, document_remove_all_operations, document_remove_all_responses, document_remove_all_parameters, document_remove_all_response_headers, document_remove_all_schema_properties, document_remove_all_servers, document_remove_all_tags, document_remove_all_security_schemes, document_remove_all_extensions
  • Validation tool (1): document_validate
  • Transform tools (2): document_transform, document_dereference

Read the full file on GitHub · 202 lines

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. 4d ago First seen · 202 lines · 2,072 tokens per session scan A 718436b267b3

Subscribe to this mod's changes

apitomy-data-models-mcp CLAUDE.md is an instructions file published in the GitHub repository Apitomy/apitomy-data-models-mcp (0 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,072 tokens to every session, about $0.0104 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.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens