mcp-go
mcp-go copied to clipboard
Feature Request: Provide a way for the server to access the client's capabilities
According to VSCode, it supports roots capability as a client.
VS Code provides servers with the current workspace folders using roots (spec).
Current handleInitialize receives mcp.InitializeRequest which seems to have the client's capability, but the request parameter is not used.
Request: Please provide a way for the server to access the client's capabilities.
Usecase: In my MCP Server, having current workspace directory is helpful to run make command. Probably other development tools will need current workspace folders.
Adding initializeHanders to MCPServer seems a good starting point.
SSE server may need client capability associated with the current session.