Qoder
Qoder 是一款面向真实软件开发的 Agentic 编码平台。通过增强上下文工程与智能体无缝结合,全面理解你的代码库,并以系统化方式推进开发任务。Protocol Launcher 允许你生成深度链接,用于在 Qoder 中打开并配置资源。
使用
提供两种使用方式:
- 按需加载(通过子路径导入),支持 Tree Shaking,体积更小。
- 全量导入(从根包导入),使用简单,但会包含所有应用模块。
生产环境建议使用按需加载以减小体积;快速脚本或演示可选择全量导入。
选择安装方式
按需加载
推荐使用。生产环境优化。
全量导入
使用便捷。适合快速脚本。
打开编辑器
ts
import { open } from 'protocol-launcher/qoder'
const url = open()创建会话
ts
import { createChat } from 'protocol-launcher/qoder'
const url = createChat({
text: 'Hello, Qoder!',
mode: 'agent',
openInNewWindow: true,
})创建任务
ts
import { createQuest } from 'protocol-launcher/qoder'
const url = createQuest({
text: 'You are a development expert.',
agentClass: 'LocalAgent',
})创建规则
ts
import { createRule } from 'protocol-launcher/qoder'
const url = createRule({
name: 'my_rule',
text: 'You are a development expert.',
})安装 STDIO MCP 服务
ts
import { installMCP } from 'protocol-launcher/qoder'
const url = installMCP({
name: 'server-everything',
type: 'stdio',
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-everything'],
})安装 Streamable HTTP MCP 服务
ts
import { installMCP } from 'protocol-launcher/qoder'
const url = installMCP({
name: '企查查企业信息 MCP',
type: 'streamable_http',
url: 'https://mcp.qcc.com/basic/stream',
headers: {
Authorization: 'REPLACE_WITH_YOUR_TOKEN',
},
})安装 SSE MCP 服务
ts
import { installMCP } from 'protocol-launcher/qoder'
const url = installMCP({
name: '企查查风险信息 MCP',
type: 'sse',
url: 'https://mcp.qcc.com/basic/sse',
headers: {
Authorization: 'REPLACE_WITH_YOUR_TOKEN',
},
})打开文件
ts
import { openFile } from 'protocol-launcher/qoder'
const url = openFile({
path: '/etc/hosts',
line: 1,
column: 2,
openInNewWindow: true,
})打开文件夹
ts
import { openFolder } from 'protocol-launcher/qoder'
const url = openFolder({
path: '/etc',
openInNewWindow: true,
})远程开发
ts
import { openRemote } from 'protocol-launcher/qoder'
const url = openRemote({
type: 'ssh-remote',
host: 'root@172.18.105.209:22',
path: '/code/my-project',
})克隆项目
ts
import { cloneProject } from 'protocol-launcher/qoder'
const url = cloneProject({
repo: 'https://github.com/zhensherlock/protocol-launcher',
})打开设置
ts
import { openSettings } from 'protocol-launcher/qoder'
const url = openSettings()