Skip to content

feat(teammanager): merge mcp agent configs from config file and frontend settings#320

Merged
husseinmozannar merged 9 commits intomicrosoft:mainfrom
weicanie:fix/map-agent-config-bug
Sep 2, 2025
Merged

feat(teammanager): merge mcp agent configs from config file and frontend settings#320
husseinmozannar merged 9 commits intomicrosoft:mainfrom
weicanie:fix/map-agent-config-bug

Conversation

@weicanie
Copy link
Copy Markdown
Contributor

@weicanie weicanie commented Aug 6, 2025

Solve the problem that the mcp agent settings in config.yaml do not take effect.
Handle merging of MCP agent configurations from both config.yaml and frontend settings.
Configurations with duplicate mcp-agent names in frontend settings are filtered out when they exist in config.yaml to prevent conflicts.

Closes #316 #222

Handle merging of MCP agent configurations from both config.yaml and frontend settings. Configurations with duplicate names in frontend settings are filtered out when they exist in config.yaml to prevent conflicts.
@weicanie
Copy link
Copy Markdown
Contributor Author

weicanie commented Aug 6, 2025

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Contributor Author

@weicanie weicanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 217 should replace "None" with "[]" to avoid a type error.

Copy link
Copy Markdown
Collaborator

@cheng-tan cheng-tan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution.

weicanie and others added 3 commits August 6, 2025 22:30
When the config.yaml file is passed in, verify the mcp agent configuration within it. If the configuration is valid, overwrite the mcp agent configuration in the UI settings; otherwise, use the mcp agent configuration in the UI settings.
@husseinmozannar
Copy link
Copy Markdown
Contributor

@cheng-tan I believe @weicanie has resolved your concern, are there other issues with this PR?

Copy link
Copy Markdown
Collaborator

@cheng-tan cheng-tan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Looks good and verified it works.

@cheng-tan
Copy link
Copy Markdown
Collaborator

@weicanie can you run ruff format src tests samples src on your side to fix the format in teammanager.py? This PR is ready to be merged. Thank you

@husseinmozannar husseinmozannar merged commit bb37954 into microsoft:main Sep 2, 2025
9 checks passed
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.

why can't set mcp agent in config.yaml but can in the frontend

3 participants