Skip to content

feat: auto-resolve organization ID in MCP server#2

Merged
ernestkoe merged 1 commit intomainfrom
feat/auto-resolve-org-id
Mar 24, 2026
Merged

feat: auto-resolve organization ID in MCP server#2
ernestkoe merged 1 commit intomainfrom
feat/auto-resolve-org-id

Conversation

@ernestkoe
Copy link
Copy Markdown
Contributor

Summary

  • MCP label_conversation and assign_conversation tools no longer require organization as a mandatory parameter
  • Organization ID is lazily fetched from GET /organizations and cached for the session
  • If multiple orgs exist, the parameter is still required (with a clear error message)

Test plan

  • npx tsc --noEmit passes
  • All 56 tests pass (npm test)
  • Restart Claude Desktop MCP server, call label_conversation without organization param — should auto-resolve

🤖 Generated with Claude Code

The MCP label_conversation and assign_conversation tools required an
organization parameter that Claude Desktop didn't reliably provide,
causing Missive API 400 errors. Now the org ID is lazily fetched from
GET /organizations and cached, making the parameter optional.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ernestkoe ernestkoe merged commit 22e5f79 into main Mar 24, 2026
1 check passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant