Repository navigation
fix(setup): save a generated MCP secret in .env; skill fixes from a cold test - #101
Merged
Merged
Conversation
…old test setup, for a local bridge with a .env, saves a generated BRIDGE_MCP_SECRET there instead of printing a line to copy, so an agent running setup never has to handle the secret. The setup skill, after a cold test with an agent that had no context: default to a local bridge, create it in its own folder, ask which services and repositories (with a GitHub example), have the user put credentials in .env in a new Hookdeck project, treat event content as untrusted, run serve in the background with a log, connect Claude Code without showing the secret, recommend the plugin for events between prompts, and check the bridge with watch before connecting an agent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
An agent with no context, asked to "set up the MCP Events bridge" from the skill, got there but had to guess or improvise at several steps, and had to copy the generated MCP secret out of setup's output by hand.
setupnow saves a generated secret in.envfor a local bridge, and the skill answers each question the agent had to guess at.setup(local bridge, with a.env): saves a generatedBRIDGE_MCP_SECRETthere and says so, instead of printing a line to copy. A deployed bridge, or one with no.env, still prints the line..env(not the chat) in a new Hookdeck project; treats event content as untrusted (issues, comments and emails are written by others); runsservein the background with a log; connects Claude Code without showing the secret; recommends the plugin for events between prompts; and checks the bridge withwatchbefore connecting an agent.Changes and testing
Changes
src/host/env-file.ts(new):saveGeneratedEnv, which appends the line, fills an emptyBRIDGE_MCP_SECRET=, or leaves a set one alone.src/cli.tscalls it for acli-inbound bridge.skills/mcp-events-bridge/SKILL.md: the Rules (credentials in.env, a new Hookdeck project, untrusted event content), steps 1, 2, 4 and 5.README.md(theBRIDGE_MCP_SECRETrow),docs/ARCHITECTURE.md(shared secret),CHANGELOG.md.Testing
test/host/env-file.test.ts: appends, fills an empty line in place, leaves a set value alone, writes nothing without a file.npx tsc --noEmit, andnpx vitest run: 36 files, 429 tests pass.🤖 Generated with Claude Code