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.0a3.tar.gz (507.7 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.0a3-py3-none-any.whl (117.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unpage-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 6ce8522243c4ce2212aebb4c12c43013303ed87ee8dabbc77473702228cbae53
MD5 b65107f349cda14eb71a958e3a94cc76
BLAKE2b-256 cf0f167d9dc2b8c2ff06892e19c0f84a013996daaafe52d0a3677817cf2a9efd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for unpage-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 60831cc35a6de652a16c7576bca5853fc2b546fdff0dd72af995a7424f9a3e4c
MD5 ba4f800ae7bd9d934789bd4bc877f8e2
BLAKE2b-256 abb5210edf93a4bf04f25b4f308c3309830b76c2e650b8ab016a642256bccbf6

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