mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2026-01-09 08:54:20 +01:00
Add support for Linux configuration path in get_claude_config_path (#270)
* feat: add support for Linux configuration path in get_claude_config_path * On Linux use XDG_CONFIG_HOME environment variable and fall back to $HOME/.config * update Linux config path to include 'Claude' directory * fix: format --------- Co-authored-by: David Soria Parra <davidsp@anthropic.com>
This commit is contained in:
@@ -15,7 +15,9 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
async def websocket_client(url: str) -> AsyncGenerator[
|
||||
async def websocket_client(
|
||||
url: str,
|
||||
) -> AsyncGenerator[
|
||||
tuple[
|
||||
MemoryObjectReceiveStream[types.JSONRPCMessage | Exception],
|
||||
MemoryObjectSendStream[types.JSONRPCMessage],
|
||||
@@ -59,7 +61,7 @@ async def websocket_client(url: str) -> AsyncGenerator[
|
||||
|
||||
async def ws_writer():
|
||||
"""
|
||||
Reads JSON-RPC messages from write_stream_reader and
|
||||
Reads JSON-RPC messages from write_stream_reader and
|
||||
sends them to the server.
|
||||
"""
|
||||
async with write_stream_reader:
|
||||
|
||||
Reference in New Issue
Block a user