http_mcp CLAUDE.md

http_mcp CLAUDE.md is an instructions file for Claude Code from yeison-liscano/http_mcp. It costs 1,772 tokens per session, scanned A, original, MIT.

Project instructions for http-mcp, a Python library that exposes functions and prompts to AI applications over HTTP or standard input and output. MCP is a standard for connecting AI applications to tools.

In plain words
What is it for?
Installing dependencies, running tests with coverage, type checking, linting, formatting, and preparing changes for the http-mcp project.
Why use it?
They provide the setup commands and checks needed to work on the library while meeting its required test coverage and code-quality standards.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

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/yeison-liscano/http_mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/yeison-liscano/http_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 http_mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yeison-liscano/http_mcp/claude-md.svg)](https://agentmods.dev/instructions/yeison-liscano/http_mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yeison-liscano/http_mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/yeison-liscano/http_mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,772 This file is loaded in full into every session.
When invoked 1,772 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.01772 $0.01772
Opus 5 $0.00886 $0.00886
Sonnet 5 $0.00354 $0.00354
Haiku 4.5 $0.00177 $0.00177

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

Security

Grade A, and why

http_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 5d 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 · 156 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

http-mcp is a lightweight Python library implementing the Model Context Protocol (MCP) over HTTP and STDIO. It exposes Python functions as tools and prompts via JSON-RPC, designed for use with Starlette/FastAPI applications. Published on PyPI as http-mcp.

Common Commands

# Install dependencies
uv sync

# Run all tests with coverage (90% minimum required)
pytest --cov-report term-missing --cov=src --cov-fail-under=90 tests/

# Run a single test file
pytest tests/test_tools.py

# Run a single test
pytest tests/test_tools.py::test_name -v

# Type checking (strict mode)
mypy .

# Lint (all ruff rules enabled)
ruff check

# Format
ruff format

# Format markdown files (never `mdformat .` — it rewrites the YAML
# frontmatter in .claude/ into a heading and breaks the agent definitions)
mdformat README.md docs/ --wrap 80 --exclude .claude/

# Full pre-push check (what CI runs)
ruff check && mypy . && pytest --cov-report term-missing --cov=src --cov-fail-under=90 tests/ && mdformat README.md docs/ --wrap 80 --exclude .claude/

Architecture

Source Layout

Source is in src/http_mcp/ and src/auth_mcp/ with hatchling as build backend. The package uses uv for dependency management. Both packages ship in the same wheel (http-mcp); auth_mcp is available via pip install http-mcp[auth].

Core Components

  • server.pyMCPServer class: central entry point. Manages tools/prompts, handles JSON-RPC dispatch, supports both HTTP and STDIO transports. Integrates with Starlette's lifespan for state management.
  • server_interface.py — Abstract base class (ServerInterface) that MCPServer implements.
  • types/ — Public API types exported via http_mcp.types:
    • Tool — Wraps a function with Pydantic input/output schemas. Supports sync/async, optional Arguments[TInputs] parameter, error handling, and authorization scopes.
    • Prompt — Interactive templates returning tuple[PromptMessage, ...].
    • Arguments[T] — Generic container providing inputs, request, and get_state_key() for accessing lifespan state.
    • NoArguments — Empty Pydantic model for tools/prompts without parameters.
  • exceptions.py — Exception hierarchy: BaseErrorProtocolError, ServerError (with ToolNotFoundError, ToolInvocationError, PromptNotFoundError, PromptInvocationError), ArgumentsError. Error codes live in _json_rcp_types/errors.py; -32002 was retired by the 2026-07-28 revision and must not be reintroduced.

Read the full file on GitHub · 156 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. 5d ago First seen · 156 lines · 1,772 tokens per session scan A 77f293817fcc

Subscribe to this mod's changes

http_mcp CLAUDE.md is an instructions file published in the GitHub repository yeison-liscano/http_mcp (0 stars, last pushed 9d ago), licensed MIT. It adds 1,772 tokens to every session, about $0.0089 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.