Skip to content

staging <- dev#244

Merged
ducnmm merged 18 commits into
stagingfrom
dev
Jun 5, 2026
Merged

staging <- dev#244
ducnmm merged 18 commits into
stagingfrom
dev

Conversation

@ducnmm

@ducnmm ducnmm commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

ducnmm and others added 18 commits June 1, 2026 10:09
…r login

Two fixes to the stdio MCP login flow, both surfaced while connecting
MCP clients to Walrus Memory.

- login.ts: the localhost callback listener now echoes
  Access-Control-Allow-Private-Network: true on the CORS preflight when
  the browser asks for it. Chrome Private Network Access blocks a fetch
  from an HTTPS public page (memory.walrus.xyz) to 127.0.0.1 unless the
  listener grants it, so on-chain registration succeeded but credentials
  never reached the CLI (the 'did not accept the callback' error).

- auth-required.ts / bridge.ts / index.ts: when memwal_login writes
  credentials mid-session, the auth-required server now detects them on
  the next tool call and hands off to the bridge IN THE SAME PROCESS,
  replaying the request that triggered the handoff. Removes the second
  client restart (the 'double reboot').

- bump package version to 0.0.4 for publish.
Spawns the built MCP with an empty HOME (auth-required mode), asserts
memwal_recall returns the not-signed-in instruction, writes a valid
credentials.json mid-process (what the login callback does), then asserts
the next memwal_recall is served for real against a mock relayer — no
process restart. Adds an npm test script wired to node --test.
- test.yml: add a 'MCP / Integration (login handoff)' job that runs the
  node:test suite on every pull_request/push to main/staging/dev, matching
  the chatbot/server e2e pattern already in the workflow.
- release-mcp.yml: run the same suite after build, before publish, so the
  package is never shipped without the hot-handoff/callback e2e passing.
- package.json: test script uses tsc directly (no nested npm) so it runs
  cleanly under pnpm --filter.
Mirror the entry across packages/mcp/CHANGELOG.md and docs/mcp/changelog.mdx
(same pattern as #238): PNA loopback callback fix + auth-required credential
reload (no second restart).
@ducnmm ducnmm temporarily deployed to benchmark-dev June 5, 2026 08:58 — with GitHub Actions Inactive
@ducnmm ducnmm merged commit 5b88618 into staging Jun 5, 2026
15 of 16 checks passed
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.

4 participants