xiaohongshu
xiaohongshu
mcp-tester
Test MCP server connectivity and tool execution. Use when adding new MCP servers, debugging tool integration, or verifying tool availability. Supports stdio, http, and sse server types.
Full skill instructions
Test and debug MCP (Model Context Protocol) server connections.
| Type | Transport | Use Case |
|---|---|---|
stdio | Standard I/O | Local processes, CLI tools |
http | HTTP/HTTPS | Remote APIs, cloud services |
sse | Server-Sent Events | Streaming endpoints |
Verify server is reachable and initializes correctly.
# Test stdio server
npx -y @modelcontextprotocol/inspector stdio -- npx -y @modelcontextprotocol/server-filesystem /tmp
# Test HTTP server
curl -X POST https://mcp.service.com/initialize \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"initialize","params":{},"id":1}'
List available tools from a connected server.
# Using MCP inspector
npx -y @modelcontextprotocol/inspector stdio -- python ./mcp_servers/my_server.py
# Check tool listing
curl -X POST https://mcp.service.com/tools/list \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","params":{},"id":2}'
Test individual tool invocation.
# Python test script
import asyncio
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
async def test_tool():
server_params = StdioServerParameters(
command="npx",
args=["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
await session.initialize()
# List tools
tools = await session.list_tools()
print(f"Available tools: {[t.name for t in tools.tools]}")
# Execute tool
result = await session.call_tool(
"read_file",
{"path": "/tmp/test.txt"}
)
print(f"Result: {result.content}")
asyncio.run(test_tool())
Verify graceful error handling.
# Test invalid tool call
try:
result = await session.call_tool("nonexistent_tool", {})
except Exception as e:
print(f"Expected error: {e}")
# Test invalid parameters
try:
result = await session.call_tool("read_file", {"invalid": "param"})
except Exception as e:
print(f"Expected error: {e}")
{
"mcpServers": {
"server-name": {
"type": "stdio | http | sse",
"command": "string (for stdio)",
"args": ["array", "of", "args"],
"env": {
"VAR": "value or ${ENV_VAR}"
},
"url": "string (for http/sse)",
"headers": {
"Authorization": "Bearer ${TOKEN}"
}
}
}
}
{
"env": {
"API_KEY": "${MY_API_KEY}",
"BASE_URL": "${BASE_URL:-http://localhost:8080}"
}
}
# Check if server process starts
npx -y @modelcontextprotocol/server-filesystem /tmp
# Verbose mode for debugging
DEBUG=mcp:* npx -y @modelcontextprotocol/inspector stdio -- ./my_server
# Check environment variables
env | grep -E 'API_KEY|TOKEN|URL'
# Test HTTP endpoint
curl -v https://mcp.service.com/health
| Issue | Cause | Solution |
|---|---|---|
| Connection refused | Server not running | Start server process |
| Tool not found | Wrong tool name | Check tools/list response |
| Auth error | Missing/invalid token | Set environment variable |
| Timeout | Server slow/hanging | Check server logs |
| Parse error | Invalid JSON-RPC | Validate request format |
@app.get("/health")
async def health_check():
"""MCP server health check."""
return {"status": "healthy", "version": "1.0.0"}
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience