Skip to content

Commit 324beec

Browse files
committed
feat: add YAML syntax highlighting with Prism.js
Add Prism.js (core + YAML grammar, ~9.4 KB) for syntax-highlighted YAML output in the MCP Apps viewer. Tools returning Kubernetes resource YAML now render with color-coded keys, strings, numbers, and comments. - YamlView component with Prism.highlight() and useMemo - looksLikeYaml() heuristic for Kubernetes resource detection - Custom theme CSS using light-dark() for host theme integration - Prism.manual = true to prevent auto-highlighting Signed-off-by: Marc Nuri <marc@marcnuri.com>
1 parent 94901f5 commit 324beec

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/mcpapps/vendor/prism-core.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/mcpapps/vendor/prism-yaml.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)