Skip to content

Add server testing functionality to MCP config modal#14

Open
liangzhang-keepmoving wants to merge 1 commit intoCopilotKit:mainfrom
liangzhang-keepmoving:feature/mcp-server-testing
Open

Add server testing functionality to MCP config modal#14
liangzhang-keepmoving wants to merge 1 commit intoCopilotKit:mainfrom
liangzhang-keepmoving:feature/mcp-server-testing

Conversation

@liangzhang-keepmoving
Copy link

Description

This PR adds server testing functionality to the MCP config modal, allowing users to test their configured servers before using them.

Features Added

  • Test Button: Added a "Test" button for each configured server
  • Real-time Testing: Shows loading state during testing
  • Test Results: Displays detailed test results with timestamp
  • Server-Specific Testing:
    • SSE Servers: Performs actual connection test
    • Stdio Servers: Validates configuration format

Changes Made

  • Added test state management to the MCP config modal
  • Implemented testServer function with different testing logic for each server type
  • Added test result display with success/failure status
  • Updated server list UI to include test button and results

Testing

The testing functionality has been tested with:

  • Valid SSE servers (returns success)
  • Invalid SSE servers (returns connection error)
  • Valid stdio server configurations
  • Invalid stdio server configurations

All test cases work as expected, providing clear feedback to the user.

@vercel
Copy link

vercel bot commented Feb 23, 2026

Someone is attempting to deploy a commit to the CopilotKit Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant