Skip to content

fix: restore default export for Docusaurus plugin compatibility#6

Closed
scalvert wants to merge 1 commit into
mainfrom
fix/restore-default-export
Closed

fix: restore default export for Docusaurus plugin compatibility#6
scalvert wants to merge 1 commit into
mainfrom
fix/restore-default-export

Conversation

@scalvert

Copy link
Copy Markdown
Owner

Summary

  • Restores the default export in src/index.ts which is required for Docusaurus plugin loading
  • Updates the example to demonstrate icon-only mode with custom header text for McpInstallButton

Problem

Docusaurus requires plugins to have a default export. This was removed in a previous commit but caused plugin loading to fail with:

normalizedPluginConfig.plugin is not a function

Test plan

  • Run npm run build and verify no errors
  • Run the example site and verify McpInstallButton renders correctly
  • Verify icon-only mode works (no label prop)
  • Verify custom header text displays in dropdown

🤖 Generated with Claude Code

Docusaurus requires plugins to have a default export. This was removed
in a previous commit but caused plugin loading to fail with:
"normalizedPluginConfig.plugin is not a function"

Also updates the example to demonstrate icon-only mode with custom
header text for McpInstallButton.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@scalvert scalvert added bug Something isn't working enhancement New feature or request labels Jan 28, 2026
@scalvert scalvert closed this Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant