Skip to content

chore(#76): make MCP a default feature#77

Merged
randomm merged 2 commits intomainfrom
feature/issue-76-mcp-default-feature
Apr 11, 2026
Merged

chore(#76): make MCP a default feature#77
randomm merged 2 commits intomainfrom
feature/issue-76-mcp-default-feature

Conversation

@randomm
Copy link
Copy Markdown
Owner

@randomm randomm commented Apr 10, 2026

Summary

Makes MCP server a default feature so vipune mcp works without --features mcp.

Changes

  • Cargo.toml: Add default = ["mcp"] to [features] section
  • CI: Add test-no-default-features job to verify sync-only builds still work
  • Docs: Update README, architecture, CLAUDE.md — remove --features mcp, note default-features = false escape hatch
  • src/mcp/mod.rs: Update doc comment to say "default feature" instead of "feature-gated"

Design Decision

The #[cfg(feature = "mcp")] gates remain in code — they protect sync-only downstream library users. MCP is simply ON by default now. Library users can opt out with default-features = false in their Cargo.toml.

Quality Gates

  • cargo fmt --check
  • cargo clippy -- -D warnings
  • cargo test ✅ (161 passed)
  • cargo test --no-default-features ✅ (154 passed)
  • cargo clippy --no-default-features -- -D warnings

Fixes #76

randomm added 2 commits April 11, 2026 11:58
- Add default = ["mcp"] to Cargo.toml so MCP works out of the box
- Add test-no-default-features CI job to verify sync-only build
- Update docs: README, architecture, CLAUDE.md reflect MCP as default
- Update src/mcp/mod.rs doc comment to say 'default feature'
- Library users can opt out with default-features = false

Closes #76
- Replace Runtime::new() with Builder::new_current_thread() for MCP stdio
- Remove rt-multi-thread from tokio features (not needed for sequential stdio)
- Expand From<Error> for rmcp::ErrorData to handle InvalidInput, Validation,
  InvalidTimestamp, and NotFound variants with appropriate error codes
- Only truly internal/unrecoverable errors now use INTERNAL_ERROR
@randomm randomm force-pushed the feature/issue-76-mcp-default-feature branch from 19c0460 to 7ed69db Compare April 11, 2026 08:58
@randomm randomm merged commit 2bc4864 into main Apr 11, 2026
6 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.

chore: make MCP a default feature so it works out of the box

1 participant