Patch release — fixes a stdio environment-inheritance bug that silently dropped app-specific variables from spawned MCP servers.
Fixed
-
stdio transport now always inherits the full parent environment (
os.environ) for spawned MCP servers.Previously, when a server had no
envblock,env=Nonewas passed to the SDK'sStdioServerParameters. The SDK does not inheritos.environin that case — it substitutes a small whitelist default (DEFAULT_INHERITED_ENV_VARS:PATH,HOME, …), silently dropping every other variable the parent process had set. App-specific vars likeBABY_*, API keys, config paths, etc. never reached the child MCP server.The
if server.envguard is removed;os.environis now always passed, with any server-specificenvoverrides layered on top. If you worked around this with a_INHERIT_PARENT_ENV-style marker in your own project, you can drop it after upgrading.
Upgrade
uv add "mcp2xiaozhi>=0.2.1"
# or
pip install -U mcp2xiaozhiFull Changelog: v0.2.0...v0.2.1