Skip to content

Simplify passing in header values to MCP clients #163

Open
@heyitsaamir

Description

@heyitsaamir

I created an MCP server hosted as an Azure Function, and I verified that it's working as expected by using GitHub Copilot from VS Code. Now I'm trying to use it in my Teams app by following instructions in https://microsoft.github.io/teams-ai/8.ai/6.external/1.mcp.html. I have something like this:

const prompt = new ChatPrompt(

{

. . .

).usePlugin("mcpClient", { url: "https://myfunc.azurewebsites.net/runtime/webhooks/mcp/sse" });

PROBLEM: I'm getting 401, which make sense since the line above doesn't pass the key (when adding my MCP server in GitHub Copilot, I had to add mcp_extension key to be passed in.

QUESTON: How can I pass the MCP Server secret key when using Spark library?

Microsoft Teams Message

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions