Skip to content

fix(mcp): skip non-dict server configs in client conversion - #2010

Open
Bartok9 wants to merge 1 commit into
assafelovic:mainfrom
Bartok9:fix/mcp-skip-non-dict-server-configs
Open

fix(mcp): skip non-dict server configs in client conversion#2010
Bartok9 wants to merge 1 commit into
assafelovic:mainfrom
Bartok9:fix/mcp-skip-non-dict-server-configs

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Skip non-dict entries while converting MCP server configs to langchain format.

Motivation

A single bad list item did config.get and crashed conversion.

Verification

.venv/bin/python -m pytest tests/test_mcp_client_non_dict_config.py -q
1 passed

Avoid AttributeError when mcp_configs contains null/scalar noise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant