By Nick Beaugeard · 3 minute read · ← All posts

A workflow was reported as timing out. The GitHub issue was easy to read. The useful evidence, a workflow definition and an execution export, was attached as private JSON. Our standard connector could read the issue but couldn't retrieve its attachments. Without those files, we could explain a few possible causes, but we couldn't say which one had happened.

Let GitHub decide who can download

We opened the issue in an already signed-in browser and followed the two links shown in the issue itself. GitHub handled access and delivered the files. We didn't extract browser cookies, copy a session, or pass credentials to the assistant. That distinction matters: GitHub restricts private and internal repository attachments to people with repository access. A connector being able to read the issue does not mean that it can download the file.

Give the assistant a reader, not a general downloader

We extended a small Model Context Protocol (MCP) server that runs locally over standard input and output. It only accepts repositories on an explicit allowlist. Its normal path re-reads the issue and checks that the exact attachment is still linked. It restricts HTTPS destinations and redirects to expected GitHub download hosts. For files downloaded in the browser, the local import records a SHA-256 digest against the specific issue and attachment, then checks that receipt when reading the file. The digest checks integrity after import; it doesn't replace GitHub's access check.

Size was the next practical snag. One export exceeded the original limit. We raised the local limit to a bounded 25 MiB and checked that the files contained valid JSON, not a sign-in page returned in place of a download. The tool can return a limited, redacted summary so the assistant doesn't need the full export just to find a timing or error.

What the evidence changed

The execution export showed that the workflow had reached a failed state. Its response page used a template that tried to process the entire result set and ran into its rendering budget. The database query was slow too, but it had completed. Extending the HTTP wait would not repair a response the workflow failed to build.

The recommendation was to filter and paginate on the server, render a small page, and load detail on demand. We could make that recommendation with confidence only because we had the execution record rather than a timeout label.

What we verified, and where we stopped

Seventeen automated tests passed. A local MCP smoke test discovered all three tools and parsed both real attachments through the browser-file import path, with a test fixture standing in for the CLI authorisation check. Direct live GitHub CLI access and remote ChatGPT access were not verified. For supported workspaces, an OpenAI Secure MCP Tunnel is an option to evaluate without exposing the local server to the public internet. We didn't deploy one for this investigation.

The useful design rule is simple: let the source system authorise the download, check the file locally, and give the assistant only the evidence it needs to answer the question.

Connecting agents to your systems?

Thirty minutes with Nick. No pitch deck, no obligation.

Book a free initial meeting More field notes