Add channel Id and subchannel Id to tool request header. - #117
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds channel ID and subchannel ID routing headers to MCP tool server requests. It introduces a new centralized utility method GetToolRequestHeaders that constructs HTTP headers including authentication token and optional channel routing information, then updates all three agent framework integrations (OpenAI, LangChain, and Claude) to extract and use these identifiers from the TurnContext.
- Adds
GetToolRequestHeadersutility method to centralize header construction with channel routing support - Updates
listToolServersand related methods to accept and propagate channelId and subChannelId parameters - Extracts channel identifiers from TurnContext in all three agent framework extensions (OpenAI, LangChain, Claude)
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/agents-a365-tooling/src/Utility.ts | Adds header constants and new GetToolRequestHeaders method to centralize header construction with channel routing |
| packages/agents-a365-tooling/src/McpToolServerConfigurationService.ts | Updates listToolServers and getMCPServerConfigsFromToolingGateway to accept and use channelId/subChannelId parameters |
| packages/agents-a365-tooling-extensions-openai/src/McpToolRegistrationService.ts | Extracts channel identifiers from TurnContext and uses centralized header utility |
| packages/agents-a365-tooling-extensions-langchain/src/McpToolRegistrationService.ts | Extracts channel identifiers from TurnContext and uses centralized header utility |
| packages/agents-a365-tooling-extensions-claude/src/McpToolRegistrationService.ts | Extracts channel identifiers from TurnContext and uses centralized header utility |
Julio Carlos Menendez (juliomenendez)
requested changes
Dec 11, 2025
Rahul Devikar (rahuldevikar761)
requested changes
Dec 11, 2025
Rahul Devikar (rahuldevikar761)
left a comment
Collaborator
There was a problem hiding this comment.
Please create overrides if you want to add new parameters to existing apis
Cc: Johan Broberg (@pontemonti)
Julio Carlos Menendez (juliomenendez)
approved these changes
Dec 12, 2025
Nikhil Navakiran (nikhilNava)
approved these changes
Dec 12, 2025
Rahul Devikar (rahuldevikar761)
approved these changes
Dec 12, 2025
PengF (fpfp100)
enabled auto-merge (squash)
December 12, 2025 19:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add channel Id and subchannel Id to tool request header.