claude-code

claude-code is an agent for coding agents from XucroYuri/KWJM-MCP. It costs 0 tokens per session (315 once invoked), scanned A, original, MIT.

A Claude Code connection for kwjm-mcp, an MCP server that adds model and media tools to the coding assistant. The configuration can apply to one project or to the user’s account.

In plain words
What is it for?
Use it to list models, send requests through Claude- or OpenAI-style interfaces, check a model’s capabilities, and use image or video tools.
Why use it?
It lets Claude Code discover models and call text, image, and video capabilities without treating the service only as a direct model endpoint.

Agent

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 agents/xucroyuri/kwjm-mcp/claude-code
Clone the repo
git clone --depth 1 https://github.com/XucroYuri/KWJM-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 claude-code

README.md
[![agentmods](https://agentmods.dev/badge/agents/xucroyuri/kwjm-mcp/claude-code.svg)](https://agentmods.dev/agents/xucroyuri/kwjm-mcp/claude-code)
Your own site
<a href="https://agentmods.dev/agents/xucroyuri/kwjm-mcp/claude-code"><img src="https://agentmods.dev/badge/agents/xucroyuri/kwjm-mcp/claude-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
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 $0.00000 $0.00315
Opus 5 $0.00000 $0.00158
Sonnet 5 $0.00000 $0.00063
Haiku 4.5 $0.00000 $0.00032

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

Security

Grade A, and why

claude-code 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.

docs/agents/claude-code.md · 35 lines

What it actually says

Claude Code 接入 kwjm-mcp

通过 Claude Code 的 MCP 配置添加服务器。

项目级(推荐)

编辑 .mcp.json(项目根目录):

{
  "mcpServers": {
    "kwjm-mcp": {
      "command": "npx",
      "args": ["kwjm-mcp"],
      "env": {
        "KWJM_API_KEY": "sk-你的平台令牌",
        "KWJM_API_KEY_ID": "你的数字 Key ID"
      }
    }
  }
}

用户级

编辑 ~/.claude.json 中的 mcpServers 段,结构同上。

提示:Claude Code 也可将模型端点直接指向开物基模(ANTHROPIC_BASE_URL + ANTHROPIC_AUTH_TOKEN)作为「模型层」接入;本 MCP 服务则提供「工具层」接入,两者可同时启用——工具层适合在对话中按需调用平台的能力发现与图像/视频工具。

使用

  • 首次可让助手 list_models 了解可用模型。
  • 调用 messages 走 claude 系模型、chat_completions 走 OpenAI 系模型。
  • 需要确认模型能力时调用 get_model_capabilities kw-video-v2;返回的请求模型 ID 仍是精确的 kw-video-v2
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 · 35 lines · 0 tokens per session scan A 2b922597ffde

Subscribe to this mod's changes

claude-code is an agent published in the GitHub repository XucroYuri/KWJM-MCP (0 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 315 tokens. 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.