Skip to content

feat: add sessions to MCP server#2655

Open
enesgules wants to merge 12 commits into
masterfrom
stateful-mcp-server
Open

feat: add sessions to MCP server#2655
enesgules wants to merge 12 commits into
masterfrom
stateful-mcp-server

Conversation

@enesgules
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread packages/mcp/src/index.ts
@fahreddinozcan
Copy link
Copy Markdown
Contributor

We should have the backend changes in place as well to not miss the session id logs

Comment thread packages/mcp/src/index.ts Outdated
Comment thread packages/mcp/src/index.ts Outdated
Comment thread packages/mcp/src/index.ts Outdated
Comment thread packages/mcp/src/index.ts Outdated
@fahreddinozcan
Copy link
Copy Markdown
Contributor

Can we make sure that session id's are usable as trace ids? Because single session id doesn't really mean a single chat history, imo. A single long-lived MCP client (e.g. Claude Code session lasting hours) emits dozens of unrelated resolve-library-id / query-docs calls — they all share one session id. The trace will be very noisy.

Comment thread .changeset/strict-feet-end.md Outdated
@fahreddinozcan
Copy link
Copy Markdown
Contributor

Can we introduce some tests maybe?

@enesgules enesgules changed the title feat: add sessionId to ClientContext and headers for enhanced request tracking feat: add sessions to MCP server May 20, 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.

2 participants