Skip to content

feat: add mcp server picker header slot - #273

Closed
SonyLeo wants to merge 2 commits into
opentiny:developfrom
SonyLeo:feat/add-mcp-header-slot
Closed

feat: add mcp server picker header slot#273
SonyLeo wants to merge 2 commits into
opentiny:developfrom
SonyLeo:feat/add-mcp-header-slot

Conversation

@SonyLeo

@SonyLeo SonyLeo commented Dec 26, 2025

Copy link
Copy Markdown
Collaborator

McpServerPicker 增加头部操作插槽

Slots

插槽名称 描述 默认内容
header-actions 头部右侧操作区插槽

Summary by CodeRabbit

Release Notes

  • New Features

    • Extended MCP Server Picker component with a new customization option allowing custom header actions to be injected, providing greater flexibility in component configuration.
  • Documentation

    • Updated MCP Server Picker documentation with comprehensive details about the new header customization feature and usage instructions.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 26, 2025

Copy link
Copy Markdown

Walkthrough

A new named slot header-actions is introduced to the MCP Server Picker component, enabling parent components to inject custom header actions. The addition is documented in the component's documentation file.

Changes

Cohort / File(s) Summary
MCP Server Picker - Header Actions Slot
packages/components/src/mcp-server-picker/index.vue, docs/src/components/mcp-server-picker.md
Added header-actions named slot to component template for injecting custom header actions; documented slot in Slots section with description and default content

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A slot for actions, so neat and so fine,
In headers we nest them—now isn't that divine?
Custom injections, a flexible way,
Parent and child can now dance and play! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add mcp server picker header slot' directly and clearly describes the main change—adding a new header-actions slot to the McpServerPicker component.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 77aa8b5 and 09e32ce.

📒 Files selected for processing (2)
  • docs/src/components/mcp-server-picker.md
  • packages/components/src/mcp-server-picker/index.vue
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build / build
🔇 Additional comments (2)
packages/components/src/mcp-server-picker/index.vue (1)

306-306: LGTM! Well-placed slot for extensibility.

The header-actions slot is correctly positioned in the header's right section before the custom add button and close icon. The parent flexbox styling with gap: 20px will properly space any injected content.

docs/src/components/mcp-server-picker.md (1)

83-89: LGTM! Clear and accurate documentation.

The new Slots section properly documents the header-actions slot with a clear description and follows the existing documentation format.


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

github-actions Bot commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

✅ Preview build completed successfully!

Click the image above to preview.
Preview will be automatically removed when this PR is closed.

@github-actions

Copy link
Copy Markdown
Contributor

@SonyLeo SonyLeo closed this Dec 26, 2025
@github-actions

Copy link
Copy Markdown
Contributor

🧹 Preview Cleaned Up

The preview deployment has been removed.

@SonyLeo
SonyLeo deleted the feat/add-mcp-header-slot branch December 26, 2025 07:01
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