Skip to content

Conversation

@almathew
Copy link
Member

@almathew almathew commented Sep 18, 2025

Sorry that this PR does two things. I have been working on the Operations piece whenever I have downtime, and it ended up getting munged with the other MCP work. Prior to the examples, AI would do some pretty wildly wrong things, especially for the .aptible.yml file. With these changes, it's generating things that are at least syntactically correct, even if they're not perfect.

Example of Claude pulling and using examples (I made a slight tweak to the description to correct for the fact that migrations do not belong here):
Screenshot 2025-09-18 at 1 18 06 PM

Example of Claude using operation logs for debugging:
Screenshot 2025-09-18 at 1 20 48 PM

And operation lookup/debugging:
Screenshot 2025-09-18 at 1 21 21 PM

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds operations lookups and operation logs functionality to the Aptible MCP, along with example configurations for GitHub Actions and Aptible deployment files. The changes enable users to debug deployments and access deployment logs through the MCP interface.

  • Adds Operation model and OperationManager for managing deployment operations
  • Implements operation log retrieval and operations lookup by resource (app, database, vhost)
  • Provides GitHub Actions workflow examples and Aptible configuration templates

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
models/operation.py New Operation model and manager with methods for retrieving operations and logs
models/init.py Exports the new Operation and OperationManager classes
main.py Adds operation-related tools and example template retrieval functions
examples/github_actions.py GitHub Actions workflow templates for Aptible operations
examples/aptible.py Aptible configuration file examples (Procfile and .aptible.yml)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant