kscc-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kscc-mcp-server Fix the flaky test in checkout and refactor the cart module"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kscc-mcp-server
把 kscc CLI 封装成 stdio MCP server,暴露两个工具,供 MCP 客户端(DSH、Claude Desktop、Cursor 等)把编码任务委派给 kscc。
设计文档:
docs/superpowers/specs/2026-09-07-kscc-mcp-server-design.md
⚠️ 安全
run_kscc_prompt / continue_kscc_session 默认 permissionMode=bypassPermissions,即 kscc 不经确认即可执行文件写入 / 命令。仅在受信任环境与受信任调用方使用。 收紧方式:
permissionMode设为acceptEdits(自动接受编辑但不自动跑命令)或plan(只规划)。allowedTools限定工具白名单(如["Read","Edit","Bash"])。maxBudgetUsd限制单次花费。
Related MCP server: opencode-codex-mcp
工具
run_kscc_prompt
一次性 headless 执行 kscc 编码任务。
参数 | 必填 | 说明 |
prompt | ✅ | 编码任务 |
cwd | ✅ | 目标项目目录(kscc 的 cwd) |
model / effort | – | 模型别名或全名 / 努力等级 |
allowedTools / disallowedTools | – | 工具白/黑名单 |
appendSystemPrompt | – | 追加系统提示 |
permissionMode | – | 默认 |
addDirs | – | 额外可访问目录 |
outputFormat | – | 默认 |
jsonSchema | – | 强制结构化输出 |
maxBudgetUsd | – | 花费上限 |
timeoutMs | – | 默认 600000,超时杀子进程 |
noSessionPersistence | – | 不持久化会话 |
mcpConfig | – | 透传给 kscc 的 MCP 配置 |
continue_kscc_session
续接会话做多轮迭代。sessionId(--resume)优先;未给则用 cwd(--continue)续接该目录最近会话。fork=true 续接时开新 session id。其余参数同上。
返回
工具返回一个 text 块,内容为 JSON:
{"session_id":"…","text":"…","tool_uses":[],"cost_usd":0.0,"duration_ms":0,"num_turns":0,"is_error":false}session_id 用于后续 continue_kscc_session。
安装
git clone <repo> kscc-mcp-server
cd kscc-mcp-server
npm install
npm run build给 DSH 接入(stdio)
DSH 的 MCP 配置指向本 server:
{
"mcpServers": {
"kscc": {
"command": "node",
"args": ["/path/to/kscc-mcp-server/dist/index.js"]
}
}
}或免安装:"command": "npx", "args": ["-y", "kscc-mcp-server"](发布后)。
给通用 MCP 客户端接入(Claude Desktop / Cursor)
同上 stdio 配置格式。
前置要求
本机已安装
ksccCLI 且在 PATH,并已完成鉴权(kscc交互登录或OWTFFSSENT_API_KEY)。MCP server 进程继承此环境。Node ≥18。
开发
npm run dev # tsx 直跑 src/index.ts
npm test # vitest
npm run build # tsc 产 dist/集成测试(test/index.test.ts)用伪 kscc 脚本,无需真实鉴权。真实 kscc 联调手动:node dist/index.js 后用 MCP 客户端调 run_kscc_prompt。
演进(v2+,非本次范围)
长驻 stream-json 子进程多轮复用(降延迟)。
后台 agent 管理(
kscc --bg/kscc agents --json)。HTTP 传输(多客户端 / 远程编排)。
Available Tools
2 toolscontinue_kscc_sessionB
续接 kscc 会话做多轮迭代;给 sessionId 走 --resume,否则用 cwd 走 --continue
Inputs: cwd (required), prompt (required), fork, model, +13 more.
run_kscc_promptA
一次性 headless 执行 kscc 编码任务,返回结构化 JSON(含 session_id 供续接)
Inputs: cwd (required), prompt (required), model, effort, +11 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one initiates a new coding task, the other continues an existing session. No overlap or ambiguity.
Both names follow the same 'verb_noun' pattern (run_kscc_prompt, continue_kscc_session), with consistent snake_case style.
Two tools is perfectly scoped for the server's stated purpose of executing and continuing kscc coding tasks.
The tool set covers the full lifecycle implied by the server: starting a new prompt and continuing an existing session, with no obvious missing operations.
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseCqualityDmaintenanceExposes the local Gemini CLI as an MCP stdio server, providing tools for prompting, web search, file operations, and MCP management, enabling AI clients like Codex CLI and Claude Code to interact with Gemini.227MIT
- FlicenseNot gradedqualityCmaintenanceEnables MCP-compatible hosts such as OpenCode to drive the Codex CLI through codex app-server over stdio, exposing tools to run prompts, inspect status, list threads, and interrupt running turns.-
- AlicenseNot gradedqualityCmaintenanceExposes OpenClaw gateway tools to MCP clients like Claude Code and Codex, enabling local tool calls, file operations, and subagent session management through a stdio MCP server.959 npmMIT
- AlicenseNot gradedqualityCmaintenanceBridges stdio MCP clients to the locally installed Juvina memory engine, enabling persistent local AI memory for coding assistants.MIT