seoul-uncomfort-report-mcp: Instructions file for Claude Code

CLAUDE.md

seoul-uncomfort-report-mcp CLAUDE.md is an instructions file for Claude Code from hlucent/seoul-uncomfort-report-mcp. It costs 2,071 tokens per session, scanned A, original, MIT.

Project-specific instructions for a Korean MCP server that reports Seoul discomfort data through an API. MCP is a way for AI agents to use external tools.

In plain words
What is it for?
Use them when implementing or locally testing seoul-uncomfort-report-mcp, including its API parsing and HTTP server setup.
Why use it?
They define the required files, response handling, testing limits, and deployment stop point for work on the project.

Instructions file for Claude Code

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

This is hlucent/seoul-uncomfort-report-mcp's own configuration. It tells Claude Code how to work on seoul-uncomfort-report-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 seoul-uncomfort-report-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hlucent/seoul-uncomfort-report-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/hlucent/seoul-uncomfort-report-mcp/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/hlucent/seoul-uncomfort-report-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 seoul-uncomfort-report-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hlucent/seoul-uncomfort-report-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/hlucent/seoul-uncomfort-report-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hlucent/seoul-uncomfort-report-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/hlucent/seoul-uncomfort-report-mcp/claude-md/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 seoul-uncomfort-report-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hlucent/seoul-uncomfort-report-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/hlucent/seoul-uncomfort-report-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,071 This file is loaded in full into every session.
When invoked 2,071 The same file — it is already loaded in full.
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.02071 $0.02071
Opus 5 $0.01035 $0.01035
Sonnet 5 $0.00414 $0.00414
Haiku 4.5 $0.00207 $0.00207

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

Security

Grade A, and why

seoul-uncomfort-report-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 10d 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 · 162 lines

How it starts

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

CLAUDE.md — seoul-uncomfort-report-mcp 실행 지침

0. 절대 규칙 (최우선 준수)

  • DEVPLAN.md 하나만 먼저 읽고 시작한다. 다른 문서 재탐색 금지.
  • 웹서치 금지. API 스펙은 DEVPLAN.md에 이미 정리되어 있음.
  • 불확실하면 추측성 재설계 대신 기본값 1개로 구현 후 DEVLOG.md에 "확인 필요"로 기록한다.
  • 동일 오류 최대 3회까지만 재시도. 3회 실패 시 기록하고 사용자에게 보고한다.
  • 역할 범위는 "코드 구현 + 로컬 실측 테스트"까지다. fly launch, fly secrets set, flyctl deploy, fly logs 등 fly.io 관련 명령은 절대 스스로 실행하지 않는다.
  • 배포 준비(코드 구현, 로컬 테스트, git commit/push)가 끝나면 아래 "정지 시점"에서 멈추고, 안내 문구를 출력한다.

1. 기술적으로 반드시 적용할 것

1-1. .env

BOM 없는 UTF-8로 저장. 갱신 시:

# [System.IO.File]::WriteAllText(경로, "KEY=값", [System.Text.UTF8Encoding]::new($false))

1-2. server.pymcp.run()stateless_http=True 필수

mcp.run(transport="streamable-http", host="0.0.0.0", port=port, stateless_http=True)

이 옵션 누락 시 Claude.ai 커넥터에서 "사용 가능한 도구 없음"으로 보이는 문제 발생 전례 있음. 절대 빠뜨리지 않는다.

1-3. 응답 파싱 — JSON 우선, XML 폴백 필수

response.json()이 실패하면 정규식으로 <CODE>/<MESSAGE> 패턴을 추출하는 폴백을 구현한다.

1-4. row 필드 정규화

API 응답에서 결과가 1건이면 row가 단일 dict, 여러 건이면 list로 올 수 있다 (JSON 변환기 특성). 항상 list로 정규화하는 방어 로직을 넣는다:

rows = data.get("row", [])
if isinstance(rows, dict):
    rows = [rows]

1-5. 빈 값 필드 처리 (SmartUncomfStatMonth 전용)

아직 지나지 않은 달은 <MON_08/>처럼 빈 태그로 온다. JSON 변환 시 빈 문자열이나 None이 될 수 있으므로, 숫자 필드 파싱 시 다음과 같이 안전 변환한다:

def _safe_int(v):
    if v is None or v == "":
        return None  # 또는 0 — DEVLOG.md에 어느 쪽으로 확정했는지 기록
    return int(v)

1-6. 인증키 위치 — 경로 세그먼트 방식 우선 시도

DEVPLAN.md 1-1절 참고. 요청 URL은 다음 형태를 기본으로 시도한다:

http://openapi.seoul.go.kr:8088/{KEY}/{TYPE}/{SERVICE}/{START_INDEX}/{END_INDEX}/{YEAR}/{MONTH}

ERROR-300(필수값 누락)이 반복되면 쿼리 파라미터 방식(?KEY=)도 시도해 실측 결과를 DEVLOG.md에 남긴다.

1-7. IP 추출 — Fly-Client-IP 우선

def _get_client_ip(request: Request) -> str:
    fly_client_ip = request.headers.get("fly-client-ip")
    if fly_client_ip:
        return fly_client_ip.strip()
    forwarded = request.headers.get("x-forwarded-for")
    if forwarded:
        return forwarded.split(",")[0].strip()
    return request.client.host if request.client else "unknown"

Read the full file on GitHub · 162 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. 10d ago First seen · 162 lines · 2,071 tokens per session scan A 718ff91092ec

Subscribe to this mod's changes

seoul-uncomfort-report-mcp CLAUDE.md is an instructions file published in the GitHub repository hlucent/seoul-uncomfort-report-mcp (0 stars, last pushed 18d ago), licensed MIT. It adds 2,071 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

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

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,153 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

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