feat: Add MCP server configuration parsing (e.g.: `mcp.json`) to the SDK by msabramo · Pull Request #968 · modelcontextprotocol/python-sdk

added 21 commits

June 16, 2025 09:51
Add the ability to parse a multi-word command and extract the command
and args into `effective_command` and `effective_args` attributes.
instead of str.split, which breaks when there are quoted arguments with
spaces in them.

@msabramo

@msabramo msabramo changed the title feat: Add MCP server configuration (e.g.: mcp.json) to the SDK feat: Add MCP server configuration parsing (e.g.: mcp.json) to the SDK

Jun 16, 2025

@msabramo

I found these in a 5ire `mcp.json` config file

@msabramo

@msabramo

@msabramo

@msabramo

@msabramo

msabramo added a commit to msabramo/python-sdk that referenced this pull request

Jun 17, 2025

@msabramo

@msabramo

@msabramo

@msabramo

@msabramo

It seemed weird doing it in `from_file`, because the caller has to call
`from_file` to find out what the required inputs are and then has to
call `from_file` against to provide the input values.

Now, the caller calls config.get(server, input_values={...})

to provide the input values

@msabramo

@msabramo

@msabramo