mcpField
W

weakspot

本地服务
weakspot.dev安全

关于 weakspot

在编辑器中审计 Solidity 和 Rust 智能合约。通过 x402 按每次审计以 USDC 付款。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"dev-weakspot-weakspot": {
"command": "npx",
"args": [
"-y",
"weakspot-mcp"
],
"env": {
"WEAKSPOT_PRIVATE_KEY": "<WEAKSPOT_PRIVATE_KEY>",
"WEAKSPOT_MAX_USD": "<WEAKSPOT_MAX_USD>",
"WEAKSPOT_URL": "<WEAKSPOT_URL>",
"WEAKSPOT_RPC_URL": "<WEAKSPOT_RPC_URL>"
}
}
}
}
启动命令npx -y weakspot-mcp
需要配置的环境变量
WEAKSPOT_PRIVATE_KEY密钥Private key of a funded Base wallet. This server SPENDS REAL USDC from it with no human in the loop — use a fresh wallet funded with only what you are willing to lose, never a personal or deployer key. Only weakspot_audit needs it; the pricing, status and wallet-status tools work without one.
WEAKSPOT_MAX_USDHard cap in USD on any single audit (default 4, the highest tier). Checked twice: against the tier price, and again against the amount the server actually quotes. An LLM decides when to call the paying tool, so this is the main spend control.
WEAKSPOT_URLBase URL of the Weakspot deployment to use. Defaults to https://weakspot.dev; override to point at staging or a self-hosted instance.
WEAKSPOT_RPC_URLBase RPC endpoint, used only to read the wallet's USDC balance in weakspot_wallet_status. Nothing else needs it.

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npmweakspot-mcp0.1.1

工具

4

收录的工具列表 · 更新于 2 周前

参数类型必填说明
fileCountinteger是要审计的 .sol/.rs 文件数量。

详细介绍

维护者还没有提供详细介绍,可以先查看代码仓库中的 README。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。