Skip to main content
Glama
DonHz666

kscc-mcp-server

by DonHz666

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: gemini-cli-bridge

工具

run_kscc_prompt

一次性 headless 执行 kscc 编码任务。

参数

必填

说明

prompt

编码任务

cwd

目标项目目录(kscc 的 cwd)

model / effort

模型别名或全名 / 努力等级

allowedTools / disallowedTools

工具白/黑名单

appendSystemPrompt

追加系统提示

permissionMode

默认 bypassPermissions

addDirs

额外可访问目录

outputFormat

默认 json,可选 text

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 配置格式。

前置要求

  • 本机已安装 kscc CLI 且在 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 tools
continue_kscc_sessionB

续接 kscc 会话做多轮迭代;给 sessionId 走 --resume,否则用 cwd 走 --continue

ParametersJSON Schema
NameRequiredDescriptionDefault
cwdYes项目目录;未给 sessionId 时用它续接该目录最近会话
forkNo续接时开新 session id,不改原会话
modelNo
effortNo
promptYes续接会话的追问内容
addDirsNo
mcpConfigNo
sessionIdNo续接指定会话(优先于 cwd)
timeoutMsNo
jsonSchemaNo
allowedToolsNo
maxBudgetUsdNo
outputFormatNo
permissionModeNo
disallowedToolsNo
appendSystemPromptNo
noSessionPersistenceNo

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals the internal resume/continue flag mechanics, but does not disclose side effects, budget/agent behavior, session persistence, or whether the original session is mutated (only indirectly hinted by the fork parameter in the schema). This is a significant gap for an agentic continuation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no filler, front-loading the purpose and then giving a compact routing rule. Every segment earns its place and the structure is easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 17 parameters, no output schema, no annotations, and the existence of a sibling tool, this one-line description is severely incomplete. It omits return values, error behavior, side effects, cost implications, and any comparison with run_kscc_prompt, making it inadequate for reliable tool selection and invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 24%, and the description only addresses sessionId and cwd—both already described in the schema. The other 15 parameters (model, effort, permissionMode, allowedTools, disallowedTools, maxBudgetUsd, etc.) receive no explanation, so the description fails to compensate for the low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (续接/continue) and resource (kscc 会话) with a clear goal (多轮迭代/multi-round iteration). The routing clause also distinguishes this from the sibling run_kscc_prompt by making clear it resumes an existing session rather than starting a new one, even without naming the sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives parameter-selection guidance: with sessionId use --resume, otherwise use cwd with --continue. However, it provides no explicit guidance on when to use this tool versus run_kscc_prompt, such as 'use run_kscc_prompt for new sessions.' The usage context is implied by the word 续接 but not clearly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

run_kscc_promptA

一次性 headless 执行 kscc 编码任务,返回结构化 JSON(含 session_id 供续接)

ParametersJSON Schema
NameRequiredDescriptionDefault
cwdYes目标项目目录(kscc 的 cwd,作用域 + AGENTS.md 上下文)
modelNo
effortNo
promptYes要执行的编码任务
addDirsNo
mcpConfigNo
timeoutMsNo
jsonSchemaNo
allowedToolsNo
maxBudgetUsdNo
outputFormatNo
permissionModeNo
disallowedToolsNo
appendSystemPromptNo
noSessionPersistenceNo

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It transparently reveals that execution is headless, one-time, and returns structured JSON containing a session_id. This tells the agent the operation's nature and return shape, though it does not mention side effects like file modifications or cost implications. Still, it adds meaningful behavioral context beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, dense sentence that front-loads the key information: one-time, headless, coding task, structured JSON, and session_id for continuation. Every part earns its place, and there is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of 15 parameters and no output schema or annotations, the description is far from complete. It covers the essential return behavior but does not explain the many optional parameters, when to use them, or the operational effects (e.g., file changes, budget limits). The agent would need to infer a great deal about how to invoke this tool correctly, especially for non-trivial tasks.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 13%, with only prompt and cwd having descriptions. The tool has 15 parameters, and the description provides no additional meaning for any of them. It does not compensate for the low schema coverage at all; the agent is left to guess the semantics of model, effort, addDirs, mcpConfig, permissionMode, and the rest.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (one-time headless execution of kscc coding task) and a clear resource (kscc prompt). The word '一次性' (one-time) differentiates it directly from the sibling continue_kscc_session, and the mention of session_id for continuation reinforces this distinction. An agent can tell exactly what this tool does and how it differs from the sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied rather than explicit. The description notes that a session_id is returned for continuation, which hints that to continue a task you would use the sibling, but it never explicitly states when to choose this tool over continue_kscc_session or vice versa. No exclusion or alternative condition is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 2 tool updatesv0.1.0
    • First observedcontinue_kscc_session
    • First observedrun_kscc_prompt

TDQS

A3.8/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: one initiates a new coding task, the other continues an existing session. No overlap or ambiguity.

Naming Consistency5/5

Both names follow the same 'verb_noun' pattern (run_kscc_prompt, continue_kscc_session), with consistent snake_case style.

Tool Count5/5

Two tools is perfectly scoped for the server's stated purpose of executing and continuing kscc coding tasks.

Completeness5/5

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

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A minimal local MCP server that wraps any Claude Messages API-compatible upstream into a unified ask_model tool. It enables MCP clients to interact with these models through a standard tool interface using stdio transport.
    1
    8
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Exposes 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.
    7
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DonHz666/kscc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server