Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

troubleshootingtroubleshooting 搜索

Agent Skill

troubleshooting 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

49

周安装

17

GitHub Stars

2

下载量

140
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:troubleshooting(troubleshooting 搜索)
来源仓库:https://github.com/contextvm/cvmi
仓库路径:skills/troubleshooting
安装命令:
npx skills add https://github.com/contextvm/cvmi --skill troubleshooting
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/contextvm/cvmi --skill troubleshooting

简介

troubleshooting 提供 ContextVM 常见故障的诊断检查清单与解决方案。

  • 覆盖中继连接、密钥权限、网络访问与加密协商等基础问题排查路径。
  • 包含 wscat 等工具的快速测试方法,帮助定位通信层故障根源。
  • 建议按顺序逐项验证,避免遗漏前置条件导致误判。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

ContextVM Troubleshooting

Diagnose and resolve common ContextVM issues.

Quick Diagnostic Checklist

When something isn't working, verify these fundamentals:

  1. Relay Connectivity: Can you connect to the configured relays?
  2. Key Permissions: Is the private key valid and properly formatted?
  3. Network Access: Does the device have outbound internet access?
  4. Server State: Is the target server running and accessible?
  5. Encryption: If using encryption, does the server support it?

Connection Issues

Symptom: Cannot connect to server

Check relay connectivity:

# Test relay WebSocket connection
wscat -c wss://relay.contextvm.org

Common causes:

  • Relay URL is incorrect or offline
  • Firewall blocking WebSocket connections (port 443)
  • Server public key is wrong or server is not running

Solutions:

  • Try multiple relays: wss://relay.contextvm.org, wss://nos.lol
  • Verify server is running and announced (if public)
  • Check server logs for incoming connections

Symptom: Connection timeout

Diagnose:

  • Client sends request but no response received
  • Timeout occurs after 5-30 seconds

Common causes:

  • Server is offline or not connected to relays
  • Request event not reaching server (relay issues)
  • Response event not reaching client (filter issues)

Solutions:

  • Verify server is connected to same relays as client
  • Check relay subscriptions are active
  • Increase timeout for slow operations
  • Verify response filter includes correct authors and #e tags

Relay Problems

Symptom: Events not propagating

Check event publication:

  • Verify event was published successfully (check for OK response from relay)
  • Query relay directly for the event ID

Common causes:

  • Rate limiting by relay
  • Event rejected (invalid signature, wrong kind)
  • Relay not storing ephemeral events (kind 25910 is ephemeral)

Solutions:

  • Connect to multiple relays for redundancy
  • Verify event signature is valid
  • For kind 25910: these are ephemeral, subscriptions must be active before publishing

Symptom: Missing responses

Check subscription filters:

{
  "kinds": [25910],
  "authors": ["<server-pubkey>"],
  "#e": ["<request-event-id>"]
}

Common causes:

  • Filter doesn't match response event
  • Response e tag doesn't reference correct request ID
  • Subscription closed before response arrives

Solutions:

  • Ensure subscription is open before sending request
  • Verify authors filter matches server pubkey exactly
  • Check response e tag references your request ID

Encryption Issues (CEP-4)

Symptom: Cannot decrypt responses

Check encryption support:

  • Verify server announcement has support_encryption tag
  • Or attempt encrypted first, fall back to unencrypted

Common causes:

  • Client trying to decrypt with wrong key
  • Server not encrypting responses
  • NIP-44 implementation mismatch

Solutions:

  • Verify you're using correct private key for decryption
  • Check server supports encryption via announcement
  • Ensure NIP-44 library is correctly implemented

Symptom: Server rejects encrypted requests

Check gift wrap structure:

{
  "kind": 1059,
  "pubkey": "<random-pubkey>",
  "tags": [["p", "<server-pubkey>"]],
  "content": "<nip44-encrypted-kind-25910>"
}

Common causes:

  • Server doesn't support encryption
  • Malformed gift wrap
  • Wrong recipient in p tag

Solutions:

  • Check server announcement for support_encryption
  • Verify gift wrap structure matches NIP-59
  • Ensure p tag points to server's public key

Authentication Failures

Symptom: Server rejects requests

Check authorization:

  • Verify client public key is whitelisted (if server uses whitelist)
  • Check server logs for rejection reasons

Common causes:

  • Client not in allowedPublicKeys list
  • Server requires payment (not implemented in basic troubleshooting)
  • Invalid request format

Solutions:

  • Contact server operator to add your pubkey to whitelist
  • Verify request follows MCP JSON-RPC format
  • Check server capability exclusions (some methods may be public)

Gateway/Proxy Issues

Symptom: Gateway cannot connect to MCP server

Check:

  • MCP server command is correct and executable
  • Server starts successfully and listens on expected transport
  • No port conflicts

Solutions:

  • Test MCP server independently first
  • Verify gateway command path is correct
  • Check gateway logs for spawn errors

Symptom: Proxy cannot connect to ContextVM server

Check:

  • Server public key is correct
  • Server is running and connected to relays
  • Client can reach relays

Solutions:

  • Verify server pubkey (check for typos)
  • Ensure server is actually running
  • Test relay connectivity from client machine

Common Error Patterns

"Event not found" or timeout

  • Request event ID doesn't exist
  • Subscription filter too restrictive
  • Relay dropped connection

"Invalid signature"

  • Private key doesn't match claimed public key
  • Event was modified after signing
  • Signing implementation error

"Method not found"

  • Request method name is wrong
  • Server doesn't support that capability
  • Server hasn't announced that tool/resource/prompt

"Connection refused"

  • Relay is down or URL is wrong
  • Firewall blocking connection
  • Incorrect WebSocket URL format

Debugging Techniques

Enable Logging

Most ContextVM components support debug logging:

LOG_LEVEL=debug gateway-cli ...
LOG_LEVEL=debug proxy-cli ...

Monitor Relay Traffic

Subscribe to all events from your pubkey to see what's happening:

{
  "kinds": [25910, 1059],
  "authors": ["<your-pubkey>"]
}

Test Components Independently

  1. Test relay: Connect with WebSocket client
  2. Test server: Use SDK or direct Nostr events
  3. Test client: Connect to known working server

Use contextvm.org for Remote Server Testing

The contextvm.org website provides a valuable debugging tool for testing ContextVM servers. You can use it to:

  • Connect to any publicly announced ContextVM server
  • Inspect available tools, resources, and prompts
  • Execute tool calls directly from the browser
  • Verify server announcements and capabilities
  • Test encryption support (CEP-4)

When to use:

  • Verifying your server is properly announced and accessible
  • Testing tool execution without writing client code
  • Debugging connectivity issues from an external client perspective
  • Confirming encryption/decryption works correctly

Debug STDIO Servers with MCP Inspector

For debugging local STDIO-based MCP servers (used with gateways), the MCP Inspector is the recommended tool.

Installation and usage:

# Run inspector with your STDIO server
npx @modelcontextprotocol/inspector node path/to/server.js

# For Python servers
npx @modelcontextprotocol/inspector uv --directory path/to/server run package-name

What it provides:

  • Interactive UI for testing tools, resources, and prompts
  • View request/response JSON-RPC messages
  • Verify server initialization and capability negotiation
  • Test edge cases and error handling

Verify Event Structure

Use a Nostr event validator to check:

  • Valid JSON in content
  • Correct event kind
  • Proper tag structure
  • Valid signature

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.75%
按下载量换算53

Claude

30.08%
按下载量换算42

Cursor

19.7%
按下载量换算28

Gemini CLI

9.46%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills