You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kimi-cu MCP tool "js_reset" ships inputSchema without "properties", LM Studio rejects every request with 400 invalid_type #4177
The js_reset tool exposed by the kimi-cu MCP server (Kimi Computer Use plugin) has an inputSchema of:
{"type": "object", "additionalProperties": false}
It is missing the properties key. OpenAI's API tolerates this, but LM Studio's OpenAI-compatible server validates tools[] with zod and requires function.parameters.properties to be present, so every chat request fails with HTTP 400 before reaching the model.
Tool index 25 (0-based) in the request is exactly mcp__kimi-cu__js_reset. I extracted the 47-tool payload from the session wire log: it is the only tool whose parameters lacks properties.
Minimal reproduction (against LM Studio directly, no kimi-code involved)
# tools = [{"type": "function", "function": {"name": "js_reset",# "description": "reset",# "parameters": {"type": "object", "additionalProperties": False}}}]# POST /v1/chat/completions -> 400 with the exact zod error above# Same tool with "properties": {} added -> 200 OK
An object schema without properties is non-idiomatic JSON Schema and breaks strict validators. Two possible fixes:
Fix the schema in the KimiCU MCP server (the tool definition lives in the compiled /Applications/KimiCU.app binary, so users cannot patch it themselves).
Summary
The
js_resettool exposed by thekimi-cuMCP server (Kimi Computer Use plugin) has aninputSchemaof:{"type": "object", "additionalProperties": false}It is missing the
propertieskey. OpenAI's API tolerates this, but LM Studio's OpenAI-compatible server validatestools[]with zod and requiresfunction.parameters.propertiesto be present, so every chat request fails with HTTP 400 before reaching the model.Environment
~/.kimi-code/plugins/managed/kimi-cu/kimi.plugin.json)/Applications/KimiCU.app, bundle idai.kimi.cu)openai, base_urlhttp://127.0.0.1:1234/v1(LM Studio), modelqwen/qwen3.5-9bError
Tool index 25 (0-based) in the request is exactly
mcp__kimi-cu__js_reset. I extracted the 47-tool payload from the session wire log: it is the only tool whoseparameterslacksproperties.Minimal reproduction (against LM Studio directly, no kimi-code involved)
Expected behavior
js_reset's inputSchema should be:{"type": "object", "properties": {}, "additionalProperties": false}An object schema without
propertiesis non-idiomatic JSON Schema and breaks strict validators. Two possible fixes:/Applications/KimiCU.appbinary, so users cannot patch it themselves).properties: {}for object schemas) — related to the schema-sanitization gap discussed in MCP tool schema validation fails with HTTP 400 ("moonshot flavored json schema") due to missing schema sanitization in new CLI #792.Workaround
Disable the kimi-cu plugin, or remove
"js_reset"fromenabledToolsinkimi.plugin.json; requests to LM Studio then succeed.