Skip to content

feat(mcp): add LogBrew preset - #71

Merged
AgentiLoop merged 1 commit into
AgentiLoop:mainfrom
furkanerday:add-logbrew
Dec 5, 2026
Merged

AgentiLoop merged 1 commit into
AgentiLoop:mainfrom
furkanerday:add-logbrew

Conversation

@furkanerday

@furkanerday furkanerday commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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.all in Agent/MCP/MCPPresets.swift, shaped like the Linear preset:

  • oauthURL is the server URL, so "Sign in with Browser" works through MCPOAuth. The server answers an unauthenticated request with 401 and WWW-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 body MCPOAuth.signIn sends (loopback redirect http://127.0.0.1:<port>/callback, token_endpoint_auth_method: none) and got a client_id back.
  • The key field is for users who prefer a key: a LogBrew project read key, sent as Authorization: Bearer <key>. It reads 1 project and cannot change anything (docs).

Tested by compiling this MCPPresets.swift with Swift 6.4.2 (-swift-version 6) next to a copy of the MCPServerConfig initializers, then running a check: the preset resolves, makeConfig() returns the HTTP config, MCPPresets.match("add logbrew mcp server") returns logbrew, match("sentry") still returns sentry, 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

  • I have signed (or will sign, when the bot asks) the Contributor License Agreement
  • One concern per PR (see CONTRIBUTING.md)
  • Builds cleanly (./build.sh or Xcode) with no new warnings: not built, see above
  • AgentTests pass (and new tests added where it makes sense): not run
  • Matches existing style (Swift 6.2, @Observable view models, async/await)
  • Docs / README updated if behavior or setup changed: no setup change
  • No API keys, tokens, or personal paths in the diff

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.

@furkanerday

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✅
Posted by the CLA Assistant Lite bot.

@furkanerday

Copy link
Copy Markdown
Contributor Author

recheck

AgentiLoop added a commit that referenced this pull request Dec 4, 2026
@AgentiLoop
AgentiLoop merged commit 2c1eef0 into AgentiLoop:main Dec 5, 2026
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