bug(desktop): workspace trust prompt not shown for project MCP on Windows
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start by tracing Desktop session startup for an untrusted workspace and the project-level .kimi-code/mcp.json loading path, then compare it with GET and POST /api/v1/workspaces/{workspace_id}/trust. Reproduce on Windows 11 using the provided MCP configuration; done means the Desktop flow visibly prompts for trust and persists the user's trust or decline decision before enabling project MCP configuration.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What version of Kimi Code is running?
Desktop app 1.0.2 (Windows x64, packaged), embedded server host_version 2.0.1.
Which open platform/subscription were you using?
Kimi subscription. The exact paid tier was not shown in the Desktop UI used for this reproduction.
Which model were you using?
K2.8 Preview.
What platform is your computer?
Windows 11 x64.
What issue are you seeing?
A project-level MCP server is correctly discovered from:
<workspace>\.kimi-code\mcp.json
but when the workspace is untrusted, Kimi Code Desktop does not show the documented Workspace Trust prompt at session start.
Observed state:
- Desktop session starts normally.
- No Workspace Trust dialog is shown.
- Project MCP server is not registered in the session while the workspace remains untrusted.
- The local Server API reports:
{"code":0,"msg":"success","data":{"trusted":false}} - After explicitly marking the workspace trusted through the documented local Server API, a new Desktop session registers the project MCP server and exposes its
mcp__<server>__authenticatetool, confirming that trust was the gating condition.
No OAuth authorization or external MCP calls are required to reproduce the missing trust prompt.
What steps can reproduce the bug?
-
On Windows 11, create a new dedicated folder, for example:
C:\work\mcp-trust-repro -
Create:
C:\work\mcp-trust-repro\.kimi-code\mcp.json -
Put a project-level remote HTTP MCP entry in it, for example:
{ "mcpServers": { "example-api": { "url": "https://example.com/mcp" } } } -
Open that folder as a workspace in Kimi Code Desktop 1.0.2.
-
Start a new session.
-
Observe:
- no Workspace Trust prompt is shown;
- the project MCP server is not registered in the agent session.
-
Read the workspace trust state through the documented local Server API:
GET /api/v1/workspaces/{workspace_id}/trustResult:
{"code":0,"msg":"success","data":{"trusted":false}} -
Workaround: explicitly grant trust through the documented local Server API:
POST /api/v1/workspaces/{workspace_id}/trust Content-Type: application/json {} -
Verify:
GET /api/v1/workspaces/{workspace_id}/trustnow returns
trusted:true. -
Start a new Desktop session. The project MCP server is now registered and, for an OAuth MCP server, its
mcp__<server>__authenticatetool is announced.
This reproduces the difference between the expected trust UI flow and the actual Desktop behavior.
What is the expected behavior?
When Kimi Code Desktop starts a session in an untrusted workspace containing project-level MCP servers, it should surface the documented Workspace Trust prompt before project MCP configuration is enabled.
The prompt should identify the project MCP launch target / remote URL, allow the user to explicitly trust or decline the folder, and persist that decision.
If Desktop intentionally uses a different trust UX than CLI/TUI, there should be a visible documented Desktop control for the same state.
Additional information
I searched existing issues before filing. The closest result I found was #2976, which covers trust not being inherited by subdirectories/worktrees. That is different from this reproduction: here the exact workspace itself remains trusted:false, no trust prompt is displayed, and project MCP loading is blocked until trust is granted manually.
The workaround above is reversible with:
POST /api/v1/workspaces/{workspace_id}/untrust
Content-Type: application/json
{}
One implementation detail that may help narrow the problem: the server-side trust API behaves as expected once called directly; the apparent failure is in surfacing/reaching the trust decision from Desktop UI/session startup, not in trust persistence itself.
No credentials, tokens, account identifiers, local usernames, or production endpoints are included in this report.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.7k
- Forks
- 1.3k
- Merge medio
- 12 h 35 min
- PR fusionados (30 d)
- 311
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MoonshotAI/kimi-code
-
手机竖屏显示状态下输入框的扩展按钮没有显示Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MoonshotAI/kimi-code#4040 ·
Los mantenedores suelen responder en 1 día
-
顶栏字体不随字体大小缩放bugAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MoonshotAI/kimi-code#4039 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
MoonshotAI/kimi-code#4010 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
MoonshotAI/kimi-code#4008 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
docs(zh): configuration/providers.md is missing the "OAuth and credential injection" sectionAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
MoonshotAI/kimi-code#3947 ·
Los mantenedores suelen responder en 1 día
Todos los issues de MoonshotAI/kimi-code
Issues similares
-
needs:triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
ai-discovered
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
jessepollak/home#1627 ·
Los mantenedores suelen responder en 1 día
-
agent-canvas bug llm priority:low ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
OpenHands/OpenHands#17806 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
radius-project/ai-extensions#923 ·
Los mantenedores suelen responder en 1 día