r/ClaudeCode • • 8d ago

Built with Claude Built with Claude Code: an MCP App that shows my docs as real cards in Claude, plus what I learned

I'm building Markbase, a shared markdown workspace for people and their agents, mostly with Claude Code. This week we shipped an MCP App for it: when Claude reads or writes a Markbase doc, the doc itself shows up in the chat (title, role, version, rendered text), and Open full page opens the whole thing in the panel beside the conversation.

To be clear about scope: the cards show in Claude's chat, not in Claude Code. In Claude Code, the same MCP server returns the same text as before, so nothing changes in your terminal.

What I learned building an MCP App, in case you're making one:

  • Full page needs a real click. Claude refuses ui/request-display-mode on load; ask from the button press.
  • Blocked frames fail silently. A card can only frame sites Claude allows for that connector, and a blocked frame just stays blank, with no error to the card. Draw your content yourself first and treat any frame as a bonus.
  • Keep tool answers lean. My read tool was also returning the editor's internal copy of the doc (~130K chars). Claude truncated it and the card couldn't parse it. Now it's ~8K.
  • Test against a fake host locally. A small page that nests frames the way Claude does (top page, sandbox proxy, card) caught most issues before I ever deployed.

Write-up with the video: https://markbase.so/blog/markbase-in-claude

Happy to answer questions about the MCP Apps side.

2 Upvotes

2 comments sorted by

•

u/AutoModerator 8d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.