Skip to content

fix(setup): save a generated MCP secret in .env; skill fixes from a cold test - #101

Merged
leggetter merged 1 commit into
mainfrom
docs/skill-cold-test-fixes
Nov 5, 2026
Merged

leggetter merged 1 commit into
mainfrom
docs/skill-cold-test-fixes

Conversation

@leggetter

Copy link
Copy Markdown
Collaborator

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. setup now saves a generated secret in .env for a local bridge, and the skill answers each question the agent had to guess at.

  • setup (local bridge, with a .env): saves a generated BRIDGE_MCP_SECRET there and says so, instead of printing a line to copy. A deployed bridge, or one with no .env, still prints the line.
  • The skill: defaults to a local bridge; creates it in its own folder; asks which services and repositories, with a GitHub example; has the user put credentials in .env (not the chat) in a new Hookdeck project; treats event content as untrusted (issues, comments and emails are written by others); runs serve in the background with a log; connects Claude Code without showing the secret; recommends the plugin for events between prompts; and checks the bridge with watch before connecting an agent.
Changes and testing

Changes

  • src/host/env-file.ts (new): saveGeneratedEnv, which appends the line, fills an empty BRIDGE_MCP_SECRET=, or leaves a set one alone. src/cli.ts calls it for a cli-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 (the BRIDGE_MCP_SECRET row), 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, and npx vitest run: 36 files, 429 tests pass.
  • The skill changes come from two cold tests on 5 Nov (an agent with no context, a new Hookdeck project, a GitHub source); the release's cold test runs the new skill end to end.

🤖 Generated with Claude Code

…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>
@leggetter
leggetter merged commit b1247a9 into main Nov 5, 2026
2 checks passed
@leggetter
leggetter deleted the docs/skill-cold-test-fixes branch November 5, 2026 18:18
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.

1 participant