Repository navigation
Added show_markdown and show_markdown_file MCP tools - #116
Merged
Merged
Conversation
Two new MCP tools let Claude push content into a NetBeans Markdown Preview tab: - show_markdown(markdown, title?) — renders markdown text directly - show_markdown_file(filePath, title?) — opens a live-updating preview tied to a file on disk; the tab auto-refreshes on file changes Both tools are auto-allowed via permissions.allow in settings.local.json when a session starts, and cleaned up on session stop. Includes a Python POC test (claude-launch-tests/test_show_markdown_poc.py) that verified Claude Code calls the tool correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After removing our tools from permissions.allow, the cleanup also removes the empty deny:[] array we added during merge, then removes the entire permissions key if it becomes empty. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
show_markdownMCP tool: renders markdown text directly in a NetBeans Markdown Preview tab (deduplicates tabs by title, updates in-place on repeated calls)show_markdown_fileMCP tool: opens a live-updating preview tab tied to a.mdfile on disk — the tab auto-refreshes when the file changespermissions.allowinsettings.local.jsonwhen a session starts, and removed on session stopTest plan
Use show_markdown tool with markdown="# Hello\n\nTest" and title="Test"→ Markdown Preview tab opens with rendered contentUse show_markdown_file tool with filePath="~/.claude/plans/<any>.md"→ live preview opens, updates when file is editedsettings.local.jsonhas nomcp__netbeans__show_markdown*entries🤖 Generated with Claude Code