Skip to content

chore: add samples#180

Open
radugheo wants to merge 1 commit intomainfrom
chore/add-streamable-http-samples
Open

chore: add samples#180
radugheo wants to merge 1 commit intomainfrom
chore/add-streamable-http-samples

Conversation

@radugheo
Copy link
Collaborator

@radugheo radugheo commented Feb 24, 2026

This pull request introduces two new sample MCP servers: one for date/time operations and one for string operations, along with corresponding test cases and configuration files.

@radugheo radugheo force-pushed the chore/add-streamable-http-samples branch from f50a1ec to f8a659f Compare February 24, 2026 17:07
@radugheo radugheo changed the title 🚧chore: add samples chore: add samples Feb 24, 2026
@radugheo radugheo marked this pull request as ready for review February 24, 2026 17:10
Copilot AI review requested due to automatic review settings February 24, 2026 17:10
@radugheo radugheo force-pushed the chore/add-streamable-http-samples branch from f8a659f to bb327e7 Compare February 24, 2026 17:15
@radugheo radugheo requested a review from edis-uipath February 24, 2026 17:17
Copy link

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 pull request adds two new MCP server implementations (string operations and datetime operations) as both testcases and samples, along with updates to the existing ground-to-cloud testcase.

Changes:

  • Added string-server and datetime-server testcases with integration tests
  • Added mcp-string-server and mcp-datetime-server samples demonstrating streamable HTTP transport
  • Added uipath init step to ground-to-cloud testcase
  • Updated .gitignore to exclude generated files from samples

Reviewed changes

Copilot reviewed 25 out of 26 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
testcases/string-server/* New testcase for string manipulation MCP server with stdio transport
testcases/datetime-server/* New testcase for datetime operations MCP server with stdio transport
samples/mcp-string-server/* New sample demonstrating string operations MCP server with streamable HTTP transport
samples/mcp-datetime-server/* New sample demonstrating datetime operations MCP server with streamable HTTP transport
testcases/ground-to-cloud/run.sh Added uipath init initialization step
.gitignore Added patterns to exclude generated sample files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@radugheo radugheo force-pushed the chore/add-streamable-http-samples branch 2 times, most recently from b10807f to a940ff1 Compare February 24, 2026 22:22
Copy link

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +24 to +38
# Generate dynamic values
PR_NUMBER=${GITHUB_PR_NUMBER:-"local"}
UNIQUE_ID=$(cat /proc/sys/kernel/random/uuid)
MCP_SERVER_NAME="stringmcp-${PR_NUMBER}"

echo "Updating uipath.json with dynamic values... PR Number: $PR_NUMBER, MCP Server Name: $MCP_SERVER_NAME, Unique ID: $UNIQUE_ID"

# Remove empty tenantId line if exists
sed -i '/^UIPATH_TENANT_ID=[[:space:]]*$/d' .env

# Replace placeholders in uipath.json using sed
sed -i "s/PRNUMBER/$PR_NUMBER/g" mcp.json
sed -i "s/PRNUMBER/$PR_NUMBER/g" uipath.json
sed -i "s/a1b2c3d4-5678-9abc-def0-1234567890ab/$UNIQUE_ID/g" uipath.json

Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

This script generates UNIQUE_ID and runs sed replacements for a UUID placeholder in uipath.json, but the committed uipath.json in this testcase does not contain that placeholder (or any PRNUMBER/uniqueId fields). This makes the UUID generation and related sed line dead code and can confuse debugging; either remove the unused UUID logic or add/maintain matching placeholders in uipath.json so the substitutions are meaningful.

Copilot uses AI. Check for mistakes.
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.

2 participants