Skip to content

fix(assistant): inline email tools so list_inbox/search_email actually work#11

Merged
sbeashwar merged 3 commits into
mainfrom
fix/inline-email-tools
May 2, 2026
Merged

fix(assistant): inline email tools so list_inbox/search_email actually work#11
sbeashwar merged 3 commits into
mainfrom
fix/inline-email-tools

Conversation

@sbeashwar

Copy link
Copy Markdown
Owner

Summary

  • The assistant advertised 5 email tools but the in-process dispatcher only handled filesystem tools, so any list_inbox/search_email/read_email/send_email/reply_email call returned Unknown tool: ... and the model fell back to the generic "I had trouble generating a response" error.
  • Ported the Microsoft Graph implementations from local-tool-server/server.js directly into miniapps/assistant so they share the existing MSAL token cache. No second process / second secret needed.
  • Added @azure/msal-node and unit tests covering happy path, HTML body decoding, Graph error surfacing, and required-arg validation.

Test plan

  • pnpm install
  • pnpm turbo run test (25/25 pass — 18 existing + 7 new)
  • pnpm turbo run build --filter=@mysuperapp/web (clean)
  • After merge, restart the local next start, then ask the assistant Search my email for any Ride1Up Portola discount — expect a real summary, not the generic error

sbeashwar added 3 commits May 2, 2026 16:41
…ually work

- The assistant declared 5 email tools but execTool() only handled filesystem tools, so any list_inbox/search_email/read_email/send_email/reply_email call returned 'Unknown tool: ...' and the model fell back to the generic 'I had trouble generating a response' error
- Ported the Microsoft Graph tools from local-tool-server into miniapps/assistant directly (shares the existing MSAL token cache at C:\mcp-servers\outlook-email)
- Added @azure/msal-node dependency and tests covering happy path, HTML decoding, error surfacing, and required-arg validation
@sbeashwar sbeashwar merged commit bc4f434 into main May 2, 2026
1 check passed
@sbeashwar sbeashwar deleted the fix/inline-email-tools branch May 2, 2026 23:51
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