auroraview: Command for Claude Code

.codebuddy/commands/gallery-mcp-test.md

gallery-mcp-test is a command for Claude Code from loonghao/auroraview. It costs 0 tokens per session (850 once invoked), scanned A, original, MIT.

A quick test procedure for Gallery, an embedded MCP server that provides AuroraView examples and process-related tools over HTTP.

In plain words
What is it for?
Use it to start or connect to Gallery, list its tools and examples, retrieve sample source code, check processes and windows, and call a specific API.
Why use it?
It provides health checks and expected results for the server’s tools, helping confirm that the service is running and responding correctly.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

This is loonghao/auroraview's own configuration. It tells Claude Code how to work on auroraview 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 auroraview configures →

Reuse

Borrowing it

Nothing to install: this file belongs to loonghao/auroraview. 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/loonghao/auroraview/main/.codebuddy/commands/gallery-mcp-test.md
Clone the repo
git clone --depth 1 https://github.com/loonghao/auroraview

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 gallery-mcp-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/loonghao/auroraview/gallery-mcp-test/github.svg)](https://agentmods.dev/commands/loonghao/auroraview/gallery-mcp-test)
Your own site
<a href="https://agentmods.dev/commands/loonghao/auroraview/gallery-mcp-test"><img src="https://agentmods.dev/badge/commands/loonghao/auroraview/gallery-mcp-test/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 gallery-mcp-test

Your own site · 80×15
<a href="https://agentmods.dev/commands/loonghao/auroraview/gallery-mcp-test"><img src="https://agentmods.dev/badge/commands/loonghao/auroraview/gallery-mcp-test.svg" alt="Reviewed on agentmods" width="80" 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 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.00850
Opus 5 $0.00000 $0.00425
Sonnet 5 $0.00000 $0.00170
Haiku 4.5 $0.00000 $0.00085

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

Security

Grade A, and why

gallery-mcp-test 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 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.

Makes network callslowCapability

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

3. 测试健康端点:`curl http://127.0.0.1:27168/health`
.codebuddy/commands/gallery-mcp-test.md · 119 lines

How it starts

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

快速测试 Gallery 嵌入式 MCP Server(Rust Streamable HTTP)。

前置条件

  1. 启动 Gallery

    # 使用固定端口启动(推荐)
    just gallery-mcp 27168
    
    # 或默认启动(端口随机)
    just gallery
    
  2. 确认 MCP 端口 查看控制台输出:

    [Python] MCP auto-selected free port 27168
    

测试流程

方式 1: 使用 just 命令

# 健康检查
just gallery-mcp-health 27168

# 列出所有工具
just gallery-mcp-list 27168

# 运行完整测试
just gallery-mcp-test 27168

# 调用特定工具
just gallery-mcp-call 27168 "api.get_samples" "{}"
just gallery-mcp-call 27168 "api.get_source" '{"sample_id":"hello_world"}'

方式 2: 使用 IDE MCP 客户端

配置 ~/.codebuddy/mcp.json

{
  "mcpServers": {
    "auroraview-gallery": {
      "url": "http://127.0.0.1:27168/mcp",
      "transportType": "streamable-http"
    }
  }
}

然后测试以下工具:

# 工具 预期结果
1 api.get_samples 返回示例数组
2 api.get_categories 返回分类字典
3 api.get_mcp_info 返回 MCP 服务器信息
4 api.get_source(sample_id="hello_world") 返回 Python 源代码
5 api.list_processes 返回进程列表
6 api.get_children 返回子窗口列表
7 api.list_webview_extensions 返回扩展列表

测试报告模板

步骤 工具 状态 结果/问题
1 api.get_samples ✅/❌
2 api.get_categories ✅/❌
3 api.get_mcp_info ✅/❌
4 api.get_source ✅/❌
5 api.list_processes ✅/❌

常见问题

MCP 客户端无法连接

  1. 确认 Gallery 正在运行
  2. 检查端口:netstat -an | findstr 27168
  3. 测试健康端点:curl http://127.0.0.1:27168/health

工具调用返回空结果

  1. 检查 Gallery 控制台输出
  2. 查看 [AuroraView DEBUG] 日志
  3. 确认工具名称正确(区分大小写)

端口冲突

# 使用其他端口
just gallery-mcp 27200

问题处理

发现问题后,按以下格式总结:

## Issue Summary

**Type**: Bug / Missing Feature / Design Flaw
**Severity**: Critical / High / Medium / Low
**Component**: affected file/module

**Problem**: Brief description

**Root Cause**: Why this happens

**Impact**: What is affected

然后等待开发者确认如何处理:

  1. 在当前分支修复 - 小改动,直接修复
  2. 创建新分支 - 较大改动,基于 remote main
  3. 创建 GitHub Issue - 记录待办
  4. 创建 RFC 提案 - 设计变更

Read the full file on GitHub · 119 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 · 119 lines · 0 tokens per session scan A 760d7800000c

Subscribe to this mod's changes

gallery-mcp-test is a command published in the GitHub repository loonghao/auroraview (44 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 850 tokens. 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-30.