Skip to main content

An agent framework for production engineering

Project description

Unpage

[!WARNING] ALPHA SOFTWARE Unpage is experimental, under heavy development, and may be unstable. Use at your own risk!

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

Installation

Prerequisites

  • 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 Unpage

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

uvx unpage

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

Setup Unpage

uvx unpage configure

Usage

Building the Graph

Before using Unpage, build your knowledge graph:

uvx unpage build-graph

To use a specific profile:

uvx unpage build-graph --profile your-graph-name
# Or set UNPAGE_PROFILE=your-graph-name

Configure your client to use the MCP Server

Claude Desktop

On macOS:

uvx unpage configure

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

How Unpage Works

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

  1. Unpage queries the APIs of your integrated tools and retrieves all supported resources, and adds each one as a node in the knowledge graph.
  2. Unpage extracts unique identifiers and aliases for each retrieved resource, and adds them to a mapping.
  3. Unpage 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

Unpage 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

Unpage can be configured using a config.yaml file in the ~/.unpage folder:

# Default configuration file location: ~/.unpage/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
    # Unpage 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

Unpage 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/unpage/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 unpage 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": {
        "unpage": {
            "command": "/opt/homebrew/bin/uvx",
            "args": ["unpage", "start"],
            "env": {
                "HOME": "/Users/YOUR_USER"
            }
        }
    }
}

Amazon Q

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

AWS Vault Integration

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unpage-0.1.0a1.tar.gz (507.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unpage-0.1.0a1-py3-none-any.whl (116.7 kB view details)

Uploaded Python 3

File details

Details for the file unpage-0.1.0a1.tar.gz.

File metadata

  • Download URL: unpage-0.1.0a1.tar.gz
  • Upload date:
  • Size: 507.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.3

File hashes

Hashes for unpage-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 193a6760d233732ac52040f7a553b5809cff5b3fb0721b6c661627759f684a39
MD5 7594c1953f2201364cf7f6bf53164b98
BLAKE2b-256 7c70459872a90a41f688f61477615fbec4b6ab619a6a4e585f7c7837559d9fe7

See more details on using hashes here.

File details

Details for the file unpage-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: unpage-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 116.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.3

File hashes

Hashes for unpage-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd73c761a37f6b0fc419aea5ad3bb9a07e1db0ccf74f43cc28bfc0389831326
MD5 e1c1bcaa3681d2154d7932a3df870479
BLAKE2b-256 77f097f84d42b459159399ba368c236e1daa1948f016c091cfe6a083aee1c671

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page