Repository navigation
feat(mcp): add LogBrew preset - #71
Merged
Merged
Conversation
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
|
All contributors have signed the CLA ✅ |
Contributor
Author
|
recheck |
AgentiLoop
added a commit
that referenced
this pull request
Dec 4, 2026
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.
What
Adds a LogBrew preset to the MCP server presets menu, after Sentry. It points at LogBrew's hosted MCP server,
https://logbrew.co/mcp.Why
LogBrew is error monitoring, logs, traces, and product analytics in one place. With this preset, a user can say "add logbrew mcp server" and the agent can list open issues, read a stack trace with the logs around it, follow a slow trace, and check what changed after a release. It is opt-in: nothing changes unless a user picks it, and the other presets are untouched.
How
One entry in
MCPPresets.allinAgent/MCP/MCPPresets.swift, shaped like the Linear preset:oauthURLis the server URL, so "Sign in with Browser" works throughMCPOAuth. The server answers an unauthenticated request with 401 andWWW-Authenticate: Bearer resource_metadata=..., publishes protected-resource and authorization-server metadata, and supports dynamic client registration with PKCE. I registered a client with the same bodyMCPOAuth.signInsends (loopback redirecthttp://127.0.0.1:<port>/callback,token_endpoint_auth_method: none) and got aclient_idback.Authorization: Bearer <key>. It reads 1 project and cannot change anything (docs).Tested by compiling this
MCPPresets.swiftwith Swift 6.4.2 (-swift-version 6) next to a copy of theMCPServerConfiginitializers, then running a check: the preset resolves,makeConfig()returns the HTTP config,MCPPresets.match("add logbrew mcp server")returnslogbrew,match("sentry")still returnssentry, and all 13 preset ids are unique. I did not run a full Xcode build or try the preset in the app, because this machine has only the Command Line Tools.Checklist
./build.shor Xcode) with no new warnings: not built, see aboveAgentTestspass (and new tests added where it makes sense): not run@Observableview models, async/await)Disclosure: I work on LogBrew, which runs this MCP server. LogBrew has a free tier with 100k errors and 50 GB of logs a month, no card needed.