Skip to content

Examples MCPToolsets

Truong Giang Vu edited this page May 31, 2026 · 1 revision

Example: MCP Toolsets

Samples:

Use these examples when you want an AI client or MCP client to discover and call a curated set of tools instead of relying on ad-hoc shell commands.

What They Show

Sample Purpose
Samples/McpToolsetDemo/ .NET tools, prompts, and resources
Samples/RevitMcpToolSet/ Revit-oriented MCP tools
Samples/PythonDemo/mcp_toolset/ Python MCP toolset structure

Run / Try

  1. Build the .NET toolset sample if you are testing assembly-based discovery.
  2. Register the toolset path in RevitDevTool MCP settings.
  3. Refresh or reload the MCP registry.
  4. Confirm tools/prompts/resources appear in the registry UI.
  5. Call a simple tool first before testing host-aware tools.

Python MCP Toolset Notes

The Python sample contains:

parser_annotation_sample.py
parser_lowlevel_sample.py
revitdevtool_mcp.py
dto/

Start with parser samples to understand what the registry can discover, then move to host-aware tools.

Troubleshooting

Symptom Check
.NET toolset not visible build the sample and register the compiled assembly/path
Python toolset not visible check dependencies and entry file layout
tool appears but call fails start with a non-host tool, then test host-aware context
AI client cannot connect confirm the MCP server/runtime is running

Related

Clone this wiki locally