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.
curl -O https://raw.githubusercontent.com/loonghao/auroraview/main/.codebuddy/commands/gallery-mcp-test.mdgit clone --depth 1 https://github.com/loonghao/auroraviewWrote 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.
[](https://agentmods.dev/commands/loonghao/auroraview/gallery-mcp-test)<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.
<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>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.
| Model | Per session | Once 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 |
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` 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)。
前置条件
-
启动 Gallery
# 使用固定端口启动(推荐) just gallery-mcp 27168 # 或默认启动(端口随机) just gallery -
确认 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 客户端无法连接
- 确认 Gallery 正在运行
- 检查端口:
netstat -an | findstr 27168 - 测试健康端点:
curl http://127.0.0.1:27168/health
工具调用返回空结果
- 检查 Gallery 控制台输出
- 查看
[AuroraView DEBUG]日志 - 确认工具名称正确(区分大小写)
端口冲突
# 使用其他端口
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
然后等待开发者确认如何处理:
- 在当前分支修复 - 小改动,直接修复
- 创建新分支 - 较大改动,基于 remote main
- 创建 GitHub Issue - 记录待办
- 创建 RFC 提案 - 设计变更
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.
- 10d ago First seen · 119 lines · 0 tokens per session scan A 760d7800000c
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.
Other commands, from other repositories
cloudflare-durable-objects:setup
Interactive Durable Objects project initialization. Scaffolds new DO project with proper bindings, migrations, and boilerplate code.
dare-laravel-api
Padrões DARE para APIs REST em Laravel 11 + PHP 8.3. Strict Types, FormRequests, Services, Resources, Repositories, Eloquent + casts, tratamento global de exceções, testes Pest, PHPStan/Larastan nível 8.
load-test
Generate load testing scenarios (k6/Locust) from API contracts with realistic traffic patterns.
setup
Connect this workspace to Scalix Cloud — verify the API key, test the MCP endpoint, and optionally install the CLI.
ads_canonical-models-validate
Verify canonical models compile, tests pass, deprecation notices in place.
apim-contract-diff
Execute the apim contract diff workflow with deterministic validation and redacted output.