Skip to content

fix: use session cwd for stdio MCP servers - #1057

Merged
7Sageer merged 1 commit into
mainfrom
fix/mcp-cwd-kimi-web
Jun 24, 2026
Merged

fix: use session cwd for stdio MCP servers#1057
7Sageer merged 1 commit into
mainfrom
fix/mcp-cwd-kimi-web

Conversation

@7Sageer

@7Sageer 7Sageer commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

Resolve #982

Problem

See linked issue.

What changed

Session-hosted stdio MCP servers now default to the session working directory when their config does not set cwd, so servers launched by the web server no longer run under ~/.kimi-code/server. Explicit cwd settings still take precedence.

Added tests covering the default cwd fallback, explicit cwd precedence, and the Session-to-MCP startup path.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2fdb69e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@7Sageer

7Sageer commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@7Sageer

7Sageer commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@7Sageer

7Sageer commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@7Sageer
7Sageer force-pushed the fix/mcp-cwd-kimi-web branch from 9ea888d to 2fdb69e Compare June 24, 2026 04:28
@pkg-pr-new

pkg-pr-new Bot commented Jun 24, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@2fdb69e
npx https://pkg.pr.new/@moonshot-ai/kimi-code@2fdb69e

commit: 2fdb69e

@7Sageer
7Sageer merged commit ee69e16 into main Jun 24, 2026
8 checks passed
@7Sageer
7Sageer deleted the fix/mcp-cwd-kimi-web branch June 24, 2026 05:40
@github-actions github-actions Bot mentioned this pull request Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kimi web starts MCP servers from the CLI installation directory, breaking workspace-relative MCP tools

1 participant