Skip to content

fix: MCP server token resolution and MISSIVE_API_KEY alias#1

Merged
ernestkoe merged 2 commits intomainfrom
fix/mcp-token-resolution
Mar 24, 2026
Merged

fix: MCP server token resolution and MISSIVE_API_KEY alias#1
ernestkoe merged 2 commits intomainfrom
fix/mcp-token-resolution

Conversation

@ernestkoe
Copy link
Copy Markdown
Contributor

Summary

  • MCP server now uses shared resolveToken() instead of inline env-only check, fixing crash when MISSIVE_API_KEY is set instead of MISSIVE_API_TOKEN
  • Token resolution chain: MISSIVE_API_TOKEN > MISSIVE_API_KEY > config file (~/.config/missive-ai/config.json)
  • Made --organization required for conv label command (Missive API requires it)
  • Updated README and CLAUDE.md to document the MISSIVE_API_KEY alias

Test plan

  • npx tsc --noEmit passes
  • All 55 tests pass
  • Verify MCP server starts in Claude.ai desktop with MISSIVE_API_KEY env var

🤖 Generated with Claude Code

ernestkoe and others added 2 commits March 15, 2026 16:14
Posts are Missive's recommended approach for automations. Unlike drafts,
they leave a visible trace and don't create ghost draft artifacts.
Document that close != archive (no archive API exists).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The MCP server crashed on startup when configured with MISSIVE_API_KEY
instead of MISSIVE_API_TOKEN. Now reuses the shared resolveToken() chain
(env MISSIVE_API_TOKEN > MISSIVE_API_KEY > config file) instead of an
inline env-only check.

Also makes organization required for label commands and updates docs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ernestkoe ernestkoe merged commit 3f19757 into main Mar 24, 2026
1 check passed
@ernestkoe ernestkoe deleted the fix/mcp-token-resolution branch March 24, 2026 15:06
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 24, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f21dd3a2-d5bb-4bfa-82ff-13da087c5afe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/mcp-token-resolution

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

github-actions Bot pushed a commit that referenced this pull request Mar 24, 2026
## [0.4.1](v0.4.0...v0.4.1) (2026-03-24)

### Bug Fixes

* MCP server token resolution and MISSIVE_API_KEY alias ([#1](#1)) ([3f19757](3f19757))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.4.1 🎉

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