Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Daydream

Daydream is an infrastructure knowledge graph builder, and an MCP server to enable your LLM-powered application to understand and query your infrastructure.

Installation

Prerequisites (Legacy - for reference only)

  • Python 3.12 or higher
  • uv package manager

Install uv

On macOS:

brew install uv

For other platforms, follow the official uv installation guide.

Install Daydream (DEPRECATED)

Daydream is designed to be run using uvx, which comes with uv:

uvx daydream

That will automatically install daydream from PyPI in a virtualenv and then run it!

Setup Daydream

uvx daydream configure

Usage

Building the Graph

Before using Daydream, build your knowledge graph:

uvx daydream build-graph

To use a specific profile:

uvx daydream build-graph --profile your-graph-name
# Or set DAYDREAM_PROFILE=your-graph-name

Configure your client to use the MCP Server

Claude Desktop

On macOS:

uvx daydream configure

That will, among many other things, create or update the ~/Library/Application Support/Claude/claude_desktop_config.json file.

How Daydream Works

Daydream builds a knowledge graph of your infrastructure using a fairly simple inference strategy:

  1. Daydream queries the APIs of your integrated tools and retrieves all supported resources, and adds each one as a node in the knowledge graph.
  2. Daydream extracts unique identifiers and aliases for each retrieved resource, and adds them to a mapping.
  3. Daydream extracts potential references from each retrieved resource, and attempts to match them to identifiers and aliases in the mapping to create edges between nodes.

Once the graph is built, the MCP server provides a set of tools for traversing the graph and interacting with nodes.

Configuration

Authentication

Daydream uses your local credentials to access various platforms and tools. Make sure you have the necessary credentials configured:

  1. AWS Credentials: Configure using standard AWS credential methods (profiles, aws configure CLI, EC2 )
  2. Aptible Credentials: Run aptible login to set up your Aptible credentials
  3. Datadog Credentials: Add your Datadog API key and application key to your config.yaml (see below)

config.yaml

Daydream can be configured using a config.yaml file in the ~/.daydream folder:

# Default configuration file location: ~/.daydream/profiles/default/config.yaml
plugins:
  aptible:
    enabled: true
  aws:
    enabled: true
    # These are optional settings for AWS that enable you to specify an existing AWS profile on your system
    # Daydream will use the credentials from that AWS profile to build the infrastructure graph and
    # access CloudWatch metrics about resourse in the MCP server.
    settings:
      accounts:
        dev-account:
          profile: dev-engineering-readonly
  core:
    enabled: true
  datadog:
    enabled: true
    settings:
      api_key: <your datadog API key>
      application_key: <your datadog application key>
  graph:
    enabled: true
  logs:
    enabled: false
  metrics:
    enabled: true
  networking:
    enabled: true

Plugins

Daydream supports various plugins to integrate with different platforms:

AWS Plugin

  • Supports querying AWS resources across multiple regions
  • Uses standard AWS credential resolution and profiles in config.yaml
  • Supported resources: EC2, RDS, ALBs, ELBs, target groups
  • Infers knowledge graph edges between services like ALBs, target groups, and EC2 instances

Aptible Plugin

  • Integrates with Aptible platform
  • Uses credentials from ~/.aptible/tokens.json, which is created by aptible login
  • Supports apps, databases, and environments
  • Infers knowledge graph edges between Aptible and AWS resources

Datadog Plugin

  • Integrates with your Datadog organization
  • Uses the API key and application key configured in your config.yaml
  • Supports importing your Datadog teams, services, systems, and other entities from your software catalog into your knowledge graph

Adding New Plugins

Plugins are managed in the src/daydream/plugins folder. The Aptible and AWS plugins are good examples for adding new resources to the graph and querying metrics.

Client Setup

We recommend using uvx daydream configure to configure clients like Claude Desktop or Amazon Q. This section has examples of configuring those manually...

Claude Desktop

  1. Create or edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
    "mcpServers": {
        "daydream": {
            "command": "/opt/homebrew/bin/uvx",
            "args": ["daydream", "start"],
            "env": {
                "HOME": "/Users/YOUR_USER"
            }
        }
    }
}

Amazon Q

  1. Create or edit ~/.aws/amazonq/mcp.json:
{
    "mcpServers": {
        "daydream": {
            "command": "/opt/homebrew/bin/uvx",
            "args": ["daydream", "start"],
            "env": {
                "HOME": "/Users/YOUR_USER"
            }
        }
    }
}

AWS Vault Integration

If you prefer to use aws-vault (or another similar tool) instead of daydream's configuration directly, you can use a configuration like this:

{
    "mcpServers": {
        "daydream": {
            "command": "aws-vault",
            "args": ["exec", "YOUR_AWS_PROFILE", "--", "/opt/homebrew/bin/uvx", "daydream", "start", "--disable-sse"]
        }
    }
}

Metadata

Release files for daydream 0.2.0a25

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for daydream 0.2.0a25
File Size Uploaded
daydream-0.2.0a25.tar.gz 509.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for daydream 0.2.0a25
File Interpreter ABI Platform
daydream-0.2.0a25-py3-none-any.whl Python 3 none any Details

Total release size: 627.2 kB

Release files / daydream-0.2.0a25.tar.gz

Download URL daydream-0.2.0a25.tar.gz
Size 509.7 kB
Tags Source
SHA-256 checksum
How to use checksums
20f9da5a22394425d03fecf4b49733ddfc93bcfc1ca366633e1e6e7d2e587138
BLAKE2b-256 checksum
How to use checksums
73603c1387897191ad4d00bcb396d7ec9dc3ac44188e5f8d07dbf0bb7253650c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.11

Release files / daydream-0.2.0a25-py3-none-any.whl

Download URL daydream-0.2.0a25-py3-none-any.whl
Size 117.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bbe7b1f692fe6647b1483e80dbad1d86dc3ec5f825e376d5103e526d7973bee
BLAKE2b-256 checksum
How to use checksums
bcfa89462091195357349cf6720193b6432ddded6ec07b155c0b1c6b5c95ca95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page