Skip to content

feat(mcp): add get_node_reference tool#676

Merged
ThomasGorisse merged 1 commit intomainfrom
feat/mcp-get-node-reference
Mar 20, 2026
Merged

feat(mcp): add get_node_reference tool#676
ThomasGorisse merged 1 commit intomainfrom
feat/mcp-get-node-reference

Conversation

@ThomasGorisse
Copy link
Contributor

Summary

  • Adds get_node_reference tool to the @sceneview/mcp server
  • Parses llms.txt at startup, indexes all ###-level sections by node type name (case-insensitive)
  • Tool accepts nodeType parameter and returns the full API reference section for that node
  • Also exposes list_node_types to enumerate all available nodes
  • Includes unit tests in node-reference.test.ts

Usage

get_node_reference { "nodeType": "ModelNode" }
list_node_types {}

Test plan

  • npm test in mcp/ passes
  • MCP server starts and get_node_reference returns correct section for ModelNode
  • CI passes

🤖 Generated with Claude Code

Adds a new MCP tool that looks up the full API reference for a specific
SceneView node type (e.g. ModelNode, LightNode, ARScene) by parsing the
repo-local llms.txt. Returns the relevant ### section as structured
markdown; falls back to listing all available types when the requested
name is not found.

- New module: mcp/src/node-reference.ts — parseNodeSections / findNodeSection / listNodeTypes
- New test file: mcp/src/node-reference.test.ts — 26 tests (all passing)
- mcp/src/index.ts — tool registration + handler wired in
- mcp/package.json — dist/node-reference.js added to published files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ThomasGorisse ThomasGorisse force-pushed the feat/mcp-get-node-reference branch from 2251405 to 3a77021 Compare March 20, 2026 19:29
@ThomasGorisse ThomasGorisse merged commit 5c6ca94 into main Mar 20, 2026
2 checks passed
@ThomasGorisse ThomasGorisse deleted the feat/mcp-get-node-reference branch March 20, 2026 19:29
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