Skip to content

Add channel Id and subchannel Id to tool request header. - #117

Merged
PengF (fpfp100) merged 8 commits into
mainfrom
users/pefan/toolheader
Dec 12, 2025
Merged

Add channel Id and subchannel Id to tool request header.#117
PengF (fpfp100) merged 8 commits into
mainfrom
users/pefan/toolheader

Conversation

@fpfp100

@fpfp100 PengF (fpfp100) commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Add channel Id and subchannel Id to tool request header.

Copilot AI review requested due to automatic review settings December 11, 2025 20:53
@fpfp100
PengF (fpfp100) requested a review from a team as a code owner December 11, 2025 20:53
@fpfp100 PengF (fpfp100) changed the title Add channel id and subchannelId to tool request header. Add channel Id and subchannel Id to tool request header. Dec 11, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 GetToolRequestHeaders utility method to centralize header construction with channel routing support
  • Updates listToolServers and 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

Comment thread packages/agents-a365-tooling/src/Utility.ts Outdated
Comment thread packages/agents-a365-tooling/src/Utility.ts Outdated
Comment thread packages/agents-a365-tooling/src/Utility.ts Outdated
Comment thread packages/agents-a365-tooling/src/McpToolServerConfigurationService.ts Outdated
Comment thread packages/agents-a365-tooling/src/Utility.ts Outdated
Copilot AI review requested due to automatic review settings December 11, 2025 23:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread packages/agents-a365-tooling/src/Utility.ts Outdated
Comment thread packages/agents-a365-tooling/src/Utility.ts Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please create overrides if you want to add new parameters to existing apis
Cc: Johan Broberg (@pontemonti)

Copilot AI review requested due to automatic review settings December 12, 2025 00:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread packages/agents-a365-tooling-extensions-claude/src/McpToolRegistrationService.ts Outdated
Copilot AI review requested due to automatic review settings December 12, 2025 00:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread packages/agents-a365-tooling/src/Utility.ts
Comment thread packages/agents-a365-tooling/src/Utility.ts
@fpfp100
PengF (fpfp100) enabled auto-merge (squash) December 12, 2025 19:01
@fpfp100
PengF (fpfp100) merged commit 7f6fa91 into main Dec 12, 2025
7 checks passed
@fpfp100
PengF (fpfp100) deleted the users/pefan/toolheader branch December 12, 2025 19:03
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.

8 participants