diff --git a/.github/workflows/copilot.yml b/.github/workflows/copilot.yml index 6f9135b4516..b6d5cc7a013 100644 --- a/.github/workflows/copilot.yml +++ b/.github/workflows/copilot.yml @@ -21,27 +21,23 @@ jobs: - name: Setup MCP Configuration env: - GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.COPILOT_CLI_TOKEN }} + TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }} run: | mkdir -p /home/runner/.copilot cat > /home/runner/.copilot/mcp-config.json << 'EOF' { "mcpServers": { - "github": { - "type": "local", - "command": "docker", - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "GITHUB_PERSONAL_ACCESS_TOKEN" - }, - "args": [ - "run", - "-i", - "--rm", - "-e", - "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server:sha-09deac4" - ], - "tools": ["*"] + "tavily": { + "type": "http", + "url": "https://mcp.tavily.com/mcp/", + "headers": { + "Authorization": "Bearer ${TAVILY_API_KEY}" + }, + "tools": [ + "*" + ], + "env": { + "TAVILY_API_KEY": "\${TAVILY_API_KEY}" } } } @@ -59,7 +55,7 @@ jobs: run: | mkdir -p $(dirname "$GITHUB_AW_PROMPT") cat > $GITHUB_AW_PROMPT << 'EOF' - List tools defined in the current chat session (do not run commands, I am asking about tools defined in the LLM). Just the names in a table, nothing else. + Search for the latest trends in JavaScript frameworks. Provide a summary of your findings including popular frameworks, new developments, and emerging trends. EOF - name: Print prompt to step summary env: