Changelog ๐
Features โจ
- Added collapsible section for Resource Examples in README.md using
<details>tags - Added environment variables support to StdioMCPClient constructor ๐ง
- New
env []stringparameter to pass environment variables to subprocess
- New
Code Changes ๐ ๏ธ
- Modified
NewStdioMCPClientsignature:// Old NewStdioMCPClient(command string, args ...string) // New NewStdioMCPClient(command string, env []string, args ...string)
Documentation ๐
- Improved README.md organization by making Resource Examples collapsible
- Updated examples and tests to accommodate new environment variables parameter
Tests ๐งช
- Updated
TestStdioMCPClientto include empty environment variables slice - Added test coverage for environment variables functionality
Examples ๐ก
- Updated filesystem_stdio_client example to use new client constructor with environment variables parameter
These changes enhance the flexibility of the StdioMCPClient by allowing environment variable configuration while improving documentation readability! ๐