Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate simonw-llm.md workflow configuration issues
Add maximum debug tracing and logging to simonw-llm.md MCP server configuration
Oct 10, 2025
pelikhan
approved these changes
Oct 10, 2025
Contributor
|
Agentic Changeset Generator triggered by this pull request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Workflow run https://github.com/githubnext/gh-aw/actions/runs/18418361861 experienced MCP server loading issues when using the
simonw-llm.mdshared configuration. The existing configuration provided minimal debugging information, making it difficult to diagnose why MCP servers failed to connect or load properly.Solution
This PR enhances the
simonw-llm.mdshared workflow configuration with comprehensive debugging and logging capabilities based on research into thellm-tools-mcpplugin andllmCLI.Key Research Findings
llm-tools-mcp Plugin:
LLM_TOOLS_MCP_FULL_ERRORS=1enables full error stack traces for MCP connection failures~/.llm-tools-mcp/logs/with timestamped filenames:{server-name}-{uuid}-{timestamp}.logLLM CLI:
--td(--tools-debug) flag shows full details of every tool execution-u(--usage) flag displays token usage statisticsllm logs pathcommandChanges Made
1. Environment Variables
Added
LLM_TOOLS_MCP_FULL_ERRORS=1to both the configuration and execution steps to enable full error stack traces when MCP servers fail to connect.2. CLI Debug Flags
Enhanced the llm command invocation with:
--td- Displays full details of tool executions including names, inputs, and outputs-u- Shows token usage information for monitoring costs and quota3. Diagnostic Output
Added diagnostic commands to the configuration step:
llm logs pathcat ~/.llm-tools-mcp/mcp.jsonllm tools listmkdir -p ~/.llm-tools-mcp/logs4. MCP Server Logs Upload
Added a new workflow step to upload MCP server logs as artifacts:
llm-mcp-logs~/.llm-tools-mcp/logs/if: always()to ensure logs are captured even when the workflow fails5. Comprehensive Documentation
Updated the workflow documentation to include:
Impact
These changes transform the debugging experience from seeing generic error messages to having complete diagnostic information:
Before:
After:
The full stack trace reveals the actual problem (timeout) instead of a generic error message.
Troubleshooting Workflow
When MCP servers fail to load, users can now:
llm-mcp-logscontaining detailed connection logsTesting
All changes have been validated:
LLM_TOOLS_MCP_FULL_ERRORSenvironment variable present in compiled workflow--tdand-uCLI flags present in compiled workflowllm-mcp-logsartifact properly configuredFiles Modified
.github/workflows/shared/simonw-llm.md- Added debugging configuration and comprehensive documentation.github/workflows/shared/simonw-llm.lock.yml- Recompiled with new debugging features.github/workflows/issue-triage-llm.lock.yml- Recompiled to include debugging enhancementsWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/VirtusLab/llm-tools-mcp/contents/llm_tools_mcpcurl -s REDACTED(http block)https://api.github.com/repos/VirtusLab/llm-tools-mcp/contents/testscurl -s REDACTED(http block)llm.datasette.iocurl -s REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.