Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to the Daydream MCP server

Vendor MCP
Open markdown

The Daydream MCP connector routes your AI agent's tool calls to Daydream's own MCP server through Scalekit. Each user connects their own Daydream access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 6 tools.

Tools
6
What they doRead · write · destructive
3 · 1 · 23 read1 write2 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Daydream MCP connection

    In AgentKit > Connections, create a Daydream MCP connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'daydreammcp'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Daydream MCP:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'daydreammcp_get_songs_left',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their Daydream MCP server credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • daydreammcp_get_songWhere a song made with create_song stands: its place in line, or, once done, each version's MP3 and WAV links and its five stems' FLAC links (a few seconds after the mix), and any part being made again with redo_stem.Read-only

    Check a song

    Where a song made with create_song stands: its place in line, or, once done, each version's MP3 and WAV links and its five stems' FLAC links (a few seconds after the mix), and any part being made again with redo_stem. A sound effect (kind "sfx") has no stems.

    Inputs

    idstringrequired
    The song's id from create_song.
  • daydreammcp_get_songs_leftHow many songs the person has made this month and how many they can make (no limit on some accounts), and when the count starts again.Read-only

    Songs left

    How many songs the person has made this month and how many they can make (no limit on some accounts), and when the count starts again.

    Inputs

    This tool takes no inputs.

  • daydreammcp_list_songsThe songs on the person's Daydream account, newest first: each one's id, words, length, tempo and how many versions.Read-only

    Your songs

    The songs on the person's Daydream account, newest first: each one's id, words, length, tempo and how many versions. Use get_song with an id to play one.

    Inputs

    limitinteger
    How many (default 10).
  • daydreammcp_create_songMake an original instrumental song from a description: genre, mood, instruments, tempo, what it's for.Write

    Make a song

    Make an original instrumental song from a description: genre, mood, instruments, tempo, what it's for. Returns it queued; the player in the chat shows it rendering and plays it when it's done (about a minute), with MP3 and WAV downloads and its five stems (drums, bass, guitar, keys, other) as FLAC. Where there's no player, get_song gives those links once it's done. Artist names are not allowed and are removed from prompts before generation: describe the sound instead. Royalty-free, for commercial games and videos. It makes sound effects too, with nothing to switch: a description with no music in it ("heavy rain on a tin roof", "a sword clashing against a metal shield") comes back as a sound effect, one take up to 30 seconds with MP3 and WAV and no stems, and its kind is "sfx".

    Inputs

    promptstringrequired
    The music in words, e.g. "a calm village theme with flute and harp", or a sound with no music in it for a sound effect, e.g. "footsteps on gravel".
    bpminteger
    Tempo; left out, it's chosen from the prompt.
    durationnumber
    Length in seconds (default 120).
    keystring
    A note with sharps and major or minor, like "C major" or "F# minor".
    loopboolean
    A seamless loop, for a game level or a background.
    seedinteger
    Makes the same song again from the same words and settings; left out, a new one each time.
    variationsinteger
    How many versions of it to make (default 1). Two count as one song.one of 12
  • daydreammcp_redo_stemMake one stem of a finished song again (new drums, say), with the other four exactly as they are; the mix becomes the new part with the rest.Destructive

    Redo one part

    Make one stem of a finished song again (new drums, say), with the other four exactly as they are; the mix becomes the new part with the rest. Counts as one song. Takes about a minute; the player shows it. undo_stem puts the old part back.

    Inputs

    idstringrequired
    The song's id.
    stemstringrequired
    The part to make again.one of drumsbassguitarkeysother
    versioninteger
    Which version of the song (default 1).one of 12
  • daydreammcp_undo_stemPut a song's version back to how it was before its last redo_stem: the old part plays again, and the mix with it.Destructive

    Undo the last redo

    Put a song's version back to how it was before its last redo_stem: the old part plays again, and the mix with it. Costs nothing. Only the last redo can be undone.

    Inputs

    idstringrequired
    The song's id.
    versioninteger
    Which version of the song (default 1).one of 12