Add mailgate_get_message MCP tool to fetch full body and attachment metadata by ID
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- tooling
Research direction
Start with sdk/mcp.mjs and the existing mailgate_list_messages and mailgate_wait_for_email tools; check how MailGateClient methods are called and how tool responses are structured. Add the read-by-ID tool using getMessage(...) and cover the returned fields, including attachments, in tests/mcp-server.test.mjs. Update the tool table in sdk/README.md; done means the requested tests and typecheck pass.
Written by the indexing model from the issue text.
Description
Context
GET /api/inbox/messages/:id now returns the full sanitized HTML/text body, extracted verification link, and lightweight ttachments metadata ({ filename, mimeType, size }, added in #10).
Currently the MCP server (sdk/mcp.mjs) exposes mailgate_list_messages (summaries only) and mailgate_wait_for_email (polling), but does not expose a direct read-by-ID tool for agents inspecting a specific message returned by mailgate_list_messages.
Proposed Scope
- Add a mailgate_get_message tool to sdk/mcp.mjs accepting email, messageId, and optional password.
- Delegate to MailGateClient.getMessage(...) and return structured JSON (subject, sender, otp_code, erification_link, ody_text, ttachments,
eceived_at). - Update ests/mcp-server.test.mjs to cover mailgate_get_message (including ttachments returned in the payload).
- Update the tool table in sdk/README.md.
Constraints
- Keep sdk/ at zero runtime dependencies (Node.js >= 18 built-ins only).
- Run
pm run typecheck and
pm test before opening a PR.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 4
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Dicka18/mailgate
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
enhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 75/100
-
Add OTP & magic-link extraction test vectors for Slack, Discord, AWS Cognito, and SupabasePossibly taken @onlykushalll claimed this today. Openenhancement good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in Dicka18/mailgate
Similar issues
-
Add a languageOpengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement frontend priority:P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
geolens-io/geolens#4153 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
xdelmo/Portfolio-minimal#667 ·
Maintainers usually reply within 1 day
-
enhancement javascript
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tamadalab/welfare-time#165 ·
Maintainers usually reply within 1 day
-
bug react-native
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PostHog/posthog-js#5908 ·
Maintainers usually reply within 2 days