2026年4月1日·1 分钟阅读
Serena — Semantic Code Agent via MCP
Serena is a coding agent MCP server with semantic code retrieval and editing. 22K+ stars. Understands classes, functions, symbols for precise context-aware edits. MIT.
TO
TokRepo精选 · Community
快速使用
先拿来用,再决定要不要深挖
这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。
```bash
pip install serena
serena init
```
Add to your Claude Code MCP config (`.claude/mcp.json`):
```json
{
"mcpServers": {
"serena": {
"command": "serena",
"args": ["serve", "--project", "."]
}
}
}
```
Now Claude Code can navigate, understand, and edit your codebase at the symbol level — not just files.
介绍
Serena is a semantic code retrieval and editing toolkit that works as an MCP server. Unlike basic filesystem MCP tools that operate on raw files, Serena understands your code's structure:
- **Symbol-level navigation**: Jump to class definitions, function signatures, method implementations across files
- **Semantic search**: Find code by meaning, not just string matching — "find the authentication middleware" works
- **Precise edits**: Edit specific functions or classes without touching surrounding code
- **Multi-language**: Python, TypeScript, JavaScript, Go, Rust, Java, and more via tree-sitter
- **Context windows**: Automatically provides relevant context (imports, types, related functions) to the AI agent
This makes AI coding agents significantly more effective — instead of reading entire files, they can surgically navigate to exactly what they need.
🙏
来源与感谢
- GitHub: https://github.com/oraios/serena (22K+ stars)
- License: MIT
- Docs: https://serena.dev
讨论
登录后参与讨论。
还没有评论,来写第一条吧。
相关资产
LaVague — Natural Language Web Automation
Give a text objective, LaVague drives the browser to accomplish it. Large Action Model framework for web agents. 6.3K+ stars.
TokRepo精选
Trae Agent — AI Coding Agent by ByteDance
Open-source autonomous coding agent for software engineering tasks. Multi-provider LLM support. By ByteDance. 11K+ stars.
TokRepo精选
bolt.diy — AI Full-Stack App Builder, Any LLM
Community fork of Bolt.new. Prompt, edit, and deploy full-stack web apps with any LLM provider. 19K+ GitHub stars.
TokRepo精选