hoops_ai.mcp_server.examples

Example code collection for the HOOPS_AI MCP server.

This module collects example code from the HOOPS_AI library’s demo files, and makes them available to the MCP server for context.

Functions

get_demo_path()

Get the path to the demos directory if it exists.

get_example_by_name(name)

Get an example by name.

get_examples()

Get example code from the HOOPS_AI library.

hoops_ai.mcp_server.examples.get_demo_path()

Get the path to the demos directory if it exists.

Return type:

Path | None

hoops_ai.mcp_server.examples.get_example_by_name(name)

Get an example by name.

Parameters:

name (str)

Return type:

str | None

hoops_ai.mcp_server.examples.get_examples()

Get example code from the HOOPS_AI library.

Returns:

A list of tuples containing (example_name, example_code)

Return type:

List[Tuple[str, str]]