Skip to content

Conversation

@JesuTerraz
Copy link
Contributor

  • Adding Authorization back to add tool servers call
  • Removing auth config for agentsplayground anonymous connection to work
  • Changes to claude sample to parse result messages correctly

Copilot AI review requested due to automatic review settings November 18, 2025 02:29
@JesuTerraz JesuTerraz requested a review from a team as a code owner November 18, 2025 02:29
Copilot finished reviewing on behalf of JesuTerraz November 18, 2025 02:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR applies critical fixes to three Node.js sample agents (OpenAI, LangChain, and Claude) to enable anonymous Agents Playground connections and ensure proper parameter passing to tool servers.

Key changes:

  • Disabled authentication configuration for development/testing with Agents Playground
  • Fixed missing Authorization parameter in tool server registration calls
  • Standardized environment variable naming from MCP_AUTH_TOKEN to BEARER_TOKEN

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
nodejs/openai/sample-agent/src/index.ts Removed authentication config loader and replaced with empty config for anonymous connections; removed unused import
nodejs/openai/sample-agent/src/client.ts Added proper Authorization type for parameter; updated environment variable from MCP_AUTH_TOKEN to BEARER_TOKEN
nodejs/langchain/sample-agent/src/index.ts Removed authentication config loader and replaced with empty config for anonymous connections; removed unused import
nodejs/langchain/sample-agent/src/client.ts Added missing authorization parameter to addToolServersToAgent call; updated environment variable to BEARER_TOKEN
nodejs/langchain/quickstart-before/src/client.ts Removed spaces from agent name for consistency with identifier naming patterns
nodejs/claude/sample-agent/src/index.ts Removed authentication config loader and replaced with empty config for anonymous connections; removed unused import
nodejs/claude/sample-agent/src/client.ts Added missing authorization parameter to addToolServersToAgent; updated result message parsing logic to handle new SDK response format; updated environment variable to BEARER_TOKEN

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.

4 participants