Skip to main content
Glama
kaeljune

Fibaro HC3 MCP Server

by kaeljune

fibaro_stop_scene

Stop a running scene on your Fibaro Home Center 3 smart home system by specifying the scene ID.

Instructions

Stop a running scene

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesScene ID to stop

Implementation Reference

  • MCP tool handler for fibaro_stop_scene: validates connection, extracts scene ID from args, calls fibaroClient.stopScene, and returns success message.
    case 'fibaro_stop_scene': {
      if (!this.fibaroClient) {
        throw new Error('Not connected to Fibaro HC3. Please check your configuration and restart the MCP server.');
      }
      const sceneId = args?.id as number;
      await this.fibaroClient.stopScene(sceneId);
      return {
        content: [
          {
            type: 'text',
            text: `Successfully stopped scene ${sceneId}`,
          },
        ],
      };
    }
  • src/index.ts:316-328 (registration)
    Tool registration including name, description, and input schema definition (requires scene ID). Part of the tools array passed to server.setTools.
      name: 'fibaro_stop_scene',
      description: 'Stop a running scene',
      inputSchema: {
        type: 'object',
        properties: {
          id: {
            type: 'number',
            description: 'Scene ID to stop',
          },
        },
        required: ['id'],
      },
    },
  • Core implementation: sends POST request to Fibaro HC3 API endpoint /api/scenes/{id}/action/stop to stop the scene.
    async stopScene(id: number): Promise<void> {
      try {
        await this.client.post(`/api/scenes/${id}/action/stop`, {
          args: []
        });
      } catch (error) {
        throw new Error(`Failed to stop scene ${id}: ${error}`);
      }
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kaeljune/fibaro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server