内容
<div align="center">
# claudit
**Smart contract security findings for AI coding agents**
Search [Solodit](https://solodit.cyfrin.io)'s 20,000+ audit findings from Claude Code and Codex CLI.
[](https://www.npmjs.com/package/@marchev/claudit)
[](LICENSE)
[](package.json)
[](https://giveth.io/project/claudit-0)
<br />
[Quick Start](#quick-start) · [Tools](#tools) · [Examples](#examples) · [Configuration](#configuration)
</div>
---
<img src="demo.png" alt="claudit demo" width="100%" />
---
## Quick Start
```bash
curl -fsSL https://raw.githubusercontent.com/marchev/claudit/main/install.sh | sh
```
The installer detects Claude Code and/or Codex CLI, prompts for your [Solodit API key](https://solodit.cyfrin.io), and registers the MCP server.
Then just ask:
```
> Find 5 solo findings by 0x52 at Sherlock
```
<details>
<summary><strong>Manual install</strong></summary>
### Claude Code
```bash
claude mcp add --scope user --transport stdio solodit \
--env SOLODIT_API_KEY=sk_your_key_here \
-- npx -y @marchev/claudit@latest
# (Optional) Install companion skill
mkdir -p ~/.claude/skills/solodit
curl -fsSL https://raw.githubusercontent.com/marchev/claudit/main/.claude/skills/solodit/SKILL.md \
-o ~/.claude/skills/solodit/SKILL.md
```
### Codex CLI
```bash
codex mcp add solodit \
--env SOLODIT_API_KEY=sk_your_key_here \
-- npx -y @marchev/claudit@latest
```
</details>
---
## Tools
### `search_findings`
Search across all findings with filters.
| Parameter | Type | Description |
|:----------|:-----|:------------|
| `keywords` | `string` | Text search in title and content |
| `severity` | `string[]` | `HIGH` `MEDIUM` `LOW` `GAS` (case-insensitive) |
| `firms` | `string[]` | Audit firm names |
| `tags` | `string[]` | Vulnerability tags |
| `language` | `string` | Programming language |
| `protocol` | `string` | Protocol name (partial match) |
| `reported` | `string` | `30` `60` `90` `alltime` |
| `sort_by` | `string` | `Recency` `Quality` `Rarity` |
| `sort_direction` | `string` | `Desc` (default) `Asc` |
| `page` | `int` | Page number (default 1) |
| `page_size` | `int` | Results per page (default 10, max 100) |
| `advanced_filters` | `object` | See below |
<details>
<summary><strong>Advanced filters</strong></summary>
| Field | Type | Description |
|:------|:-----|:------------|
| `quality_score` | `number` | Minimum quality score (0-5) |
| `rarity_score` | `number` | Minimum rarity score (0-5) |
| `user` | `string` | Finder/auditor handle |
| `min_finders` | `number` | Minimum number of finders |
| `max_finders` | `number` | Maximum number of finders |
| `reported_after` | `string` | ISO date string |
| `protocol_category` | `string[]` | Protocol categories |
| `forked` | `string[]` | Forked protocol names |
</details>
### `get_finding`
Get full details for a specific finding by numeric ID, Solodit URL, or slug.
### `get_filter_options`
List all valid filter values — firms, tags, categories, languages — with finding counts.
---
## Examples
```
Search Solodit for oracle manipulation HIGH severity findings
Find all Sherlock findings about flash loans
What reentrancy issues exist in lending protocols?
Show me solo findings by 0x52
Get recent HIGH severity Solidity findings sorted by quality
```
---
## Configuration
<details>
<summary><strong>Update API key</strong></summary>
**Claude Code:**
```bash
claude mcp remove solodit
claude mcp add --scope user --transport stdio solodit \
--env SOLODIT_API_KEY=sk_new_key \
-- npx -y @marchev/claudit@latest
```
**Codex CLI:**
```bash
codex mcp remove solodit
codex mcp add solodit \
--env SOLODIT_API_KEY=sk_new_key \
-- npx -y @marchev/claudit@latest
```
**Cursor MCP**
```json
{
"mcpServers": {
"solodit": {
"command": "npx",
"args": ["-y", "@marchev/claudit@latest"],
"env": {
"SOLODIT_API_KEY": "sk_new_key"
}
}
}
}
```
</details>
<details>
<summary><strong>Uninstall</strong></summary>
**Claude Code:**
```bash
claude mcp remove solodit
rm -rf ~/.claude/skills/solodit
```
**Codex CLI:**
```bash
codex mcp remove solodit
```
</details>
<details>
<summary><strong>Development</strong></summary>
```bash
git clone https://github.com/marchev/claudit.git
cd claudit
npm install
npm run build
# Test locally
SOLODIT_API_KEY=sk_your_key node dist/index.js
```
</details>
---
## Support
Claudit is a solo-maintained public good for Ethereum security. If it saves you time or finds bugs for you, consider supporting its continued development on Giveth:
**[giveth.io/project/claudit-0](https://giveth.io/project/claudit-0)**
---
<div align="center">
MIT License
</div>
MCP 配置
以下是此 MCP Server 的配置信息,可直接复制到 Cursor 或其他 MCP 客户端中使用。
mcp.json
连接信息
猜你喜欢
everything-claude-code
完整的 Claude Code 配置集合 - agents、skills、hooks、commands、rules、MCPs。来自 Anthropic...
Firecrawl
Firecrawl MCP Server 实现了网页抓取、爬虫和内容提取功能。
MarkItDown MCP
MarkItDown-MCP是一个轻量级服务器,用于将URI转换为Markdown。
cc-switch
跨平台的Claude Code、Codex和Gemini CLI一体化助手。
Agent-Reach
赋予你的AI Agent观察整个互联网的眼睛。读取并搜索...
servers
# 模型上下文协议服务器