Skip to content

Preset Registry

registry

example_preset

ExamplePreset

Bases: Preset

ExamplePreset class.

Supporting Hello_World Tool.

Source code in src/MCPStack/core/preset/presets/example_preset.py
class ExamplePreset(Preset):
    """ExamplePreset class.

    Supporting Hello_World Tool.
    """

    @classmethod
    def create(
        cls, config: StackConfig | None = None, **kwargs: dict
    ) -> "MCPStack.stack.MCPStackCore":
        """ "create function."""
        stack = MCPStackCore(config=config or StackConfig())
        tool = Hello_World()
        return stack.with_tool(tool)
create(config=None, **kwargs) classmethod

"create function.

Source code in src/MCPStack/core/preset/presets/example_preset.py
@classmethod
def create(
    cls, config: StackConfig | None = None, **kwargs: dict
) -> "MCPStack.stack.MCPStackCore":
    """ "create function."""
    stack = MCPStackCore(config=config or StackConfig())
    tool = Hello_World()
    return stack.with_tool(tool)