Lzx Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Lzx Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
这是一个用于学习目的的简单 MCP (Model Context Protocol) Server 演示项目。
MCP (Model Context Protocol) 是一个开放协议,允许 AI 应用程序(如 Claude)与外部工具和数据源进行通信。通过 MCP,你可以:
这个 demo MCP server 提供了三个简单的工具:
.
├── demo_mcp_server.py # MCP server 主程序
├── pyproject.toml # Python 项目配置
├── claude_desktop_config.json # Claude Desktop 配置示例
└── README.md # 本文件使用 uv(推荐):
uv pip install -e .或使用 pip:
pip install -e .你可以直接运行 server 来测试它:
demo-mcp-server或者使用 Python 运行:
python demo_mcp_server.py要配置 Claude Code 使用这个 MCP server,你需要编辑 Claude Code 的配置文件。
Claude Code 配置文件位置:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json在配置文件中添加以下内容:
{
"mcpServers": {
"demo-server": {
"command": "uv",
"args": [
"--directory",
"/Users/bytedance/workingspace/lzx-mcp",
"run",
"demo-mcp-server"
]
}
}
}或者如果你使用的是系统 Python:
{
"mcpServers": {
"demo-server": {
"command": "demo-mcp-server"
}
}
}注意:将 /Users/bytedance/workingspace/lzx-mcp 替换为你的实际项目路径。
配置完成后,重启 Claude Code 以加载新的 MCP server。
重启后,你可以在 Claude Code 中这样使用:
请帮我计算 123 乘以 456
获取当前时间
分析这段文本的文字统计:Hello, this is a demo of the MCP server!# 1. 创建 Server 实例
app = Server("demo-mcp-server")
# 2. 列出可用工具
@app.list_tools()
async def list_tools() -> list[Tool]:
# 返回所有可用工具的描述
return [...]
# 3. 处理工具调用
@app.call_tool()
async def call_tool(name: str, arguments: dict):
# 根据 tool name 路由到相应的处理函数
...
# 4. 运行 server
async def main():
async with mcp.server.stdio.stdio_server() as (read_stream, write_stream):
await app.run(read_stream, write_stream, ...)想要添加更多工具?只需:
list_tools() 中添加新的 Tool 定义call_tool() 中添加对应的处理函数示例:添加一个新的工具来获取天气信息
Tool(
name="get_weather",
description="Get current weather for a city",
inputSchema={
"type": "object",
"properties": {
"city": {"type": "string", "description": "City name"},
},
"required": ["city"],
},
)MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.