Roo代码代理与MCP设置
概览
这一切都要感谢Pablof7z,他制作了这个设置,并在SEC举办了这个工作坊。 Roo Code 是一个自主开源的人工智能代理,设计用来编写、调试和演进软件系统,几乎不需要人力干预。它就像光标,但完全自由。它极其可定制,这里我们将获得超过 9000 个版本! 以下设置是让 roocode(github)即使在复杂项目中也能拥有更好的代理能力,并用 MCP 来增强,提供领域特定的上下文。 1. 如果你还没有Roo-code,按照官方文档安装,或者如果你有VSCode,也可以从扩展中下载。 3. 将MCP代码仓库克隆到任何地方,并按照它的指令构建。这是我们为Nostr构建的MCP服务器。 4. 安装他们的 github 上的光标工具)(并非绝对必要)。这是为了使用 gemini 生成的代码进行反馈循环。 4. 从你的任何LLM提供商、OpenRouter、PPQ获取API密钥。
概述(AI 翻译)
鸣谢
这一切都要感谢Pablof7z,他制作了这个设置,并在SEC举办了这个工作坊。
引言
Roo Code 是一个自主开源的人工智能代理,设计用来编写、调试和演进软件系统,几乎不需要人力干预。它就像光标,但完全自由。它极其可定制,这里我们将获得超过 9000 个版本!
以下设置是让 roocode(github)即使在复杂项目中也能拥有更好的代理能力,并用 MCP 来增强,提供领域特定的上下文。
先修条件
-
如果你还没有Roo-code,按照官方文档安装,或者如果你有VSCode,也可以从扩展中下载。
-
克隆这个仓库。
-
克隆
mcp-code仓库,随意在任何地方,按照它的指示构建。这是我们为Nostr构建的MCP服务器。 -
从他们的 github 安装
cursor-tools)(非绝对必要)。这是为了使用 gemini 生成的代码进行反馈循环。 -
从你任一的LLM提供商获取API密钥,OpenRouter PPQ.ai(支持闪电)是不错的,可以让你使用许多最新的LLMs。
关于文件的信息
- `.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Roo-Code Agents & MCP Setup
Credit
All thanks to Pablof7z who made this setup and gave the workshop at SEC.
Introduction
Roo Code is an autonomous open-source AI agent designed to code, debug, and evolve software systems with minimal human input. Its like cursor, but unleashed. It is extremely customizable and here we are going to get it OVER 9000!.
The following setup is to have roocode, (github) better agentic capabilities even for complex projects and augment it with MCP to provide domain specific context.
Prerequisites
-
Install roo-code if you don’t have it yet, following official documentation or if you have VSCode, download from Extensions.
-
Clone this repo.
-
Clone the
mcp-coderepo anywhere you want and follow its instructions to build it. This is our MCP server built for Nostr. -
Install
cursor-toolsfrom their github (not strictly necessary). This is for the feedback loop using gemini for the code generated for evaluation. -
Get an API key from any of your LLM providers, OpenRouter, PPQ.ai(accepts lightning) are good ones that allow you to use many of the latest LLMs
Info on files
.roomodes: Has all the info on all the different modes(agents) we have configured in SPARC..cursorrules: Has the rules forcursor-tools
Steps
-
Create a test project directory & copy all the files (incl dotfiles) from the settings directory in to your test project directory.
-
Start VSCode with roocode installed.
-
Go in to Settings & setup your API keys & endpoints.
-
Once you get out of roocode settings and look under the chat section, you should see the SPARC Agents:
-
Connect to your
mcp-codeMCP server by clicking the MCP server icon andEdit Project MCPand adding the following:
{
"mcpServers": {
"mcp-code": {
"command": "",
"args": [
"mcp"
],
"alwaysAllow": [
"find_snippets",
"find_user",
"list_usernames",
"fetch_snippet_by_id",
"publish-new-code-snippet",
"wallet_balance",
"deposit",
"zap",
"create_pubkey"
],
"disabled": false
}
}
}
Usage
We are fully setup to test our setup. We will do a comparative test.
Open another instance of VSCode with roocode in a vanilla-test-roo project directory that doesn’t have these config files and no MCP server setup.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"mcp-code": {
"command": "<FULL/PATH/TO/mcp-code>",
"args": [
"mcp"
],
"alwaysAllow": [
"find_snippets",
"find_user",
"list_usernames",
"fetch_snippet_by_id",
"publish-new-code-snippet",
"wallet_balance",
"deposit",
"zap",
"create_pubkey"
],
"disabled": false
}
}
}