Skip to content

kpolley/easy-agents

Repository files navigation

Easy Agents

Easy Agents

A novel approach to automation that replaces traditional scripting with simple natural language instructions. Powered by Claude Agent SDK and MCP tool-calling.

Overview

Easy Agents is a framework designed to make it as easy as possible for teams to build intelligent automation agents. Instead of writing complex scripts, you define your automation logic using natural language instructions.

Use this as a template to build agentic workflows tailored to your specific environment and use case.

How it Works

Define your agent's behavior with simple natural language:

You are an expert security agent that is responsible for investigating security alerts.

High level steps to accomplish your task:
1. Look up the alert with the given id
2. Perform an extremely in-depth analysis of the alert
3. Generate a detailed report of your findings
4. If the alert is a valid alert, send the report to the slack channel #security-alerts

That's it! Your agent is ready to handle this complex and ambiguous security workflow automatically.

Real-World Examples

This repository includes four working examples that demonstrate the framework's capabilities. It utilizes multiple 3rd party MCP servers including Panther Security Monitoring, VirusTotal, Github, Linear, and Slack MCP servers.

While these examples are cybersecurity focused, this framework can be used to build agents for any team such as those in product engineering or customer support.

This agent triages incoming security alerts by correlating events across multiple sources, assessing risk levels, and routing to appropriate teams. The agent reads the alert context, investigates related events, and makes intelligent decisions about severity and response.

This agent reviews GitHub Advanced Security code-scanning alerts and automatically creates fix PRs for valid issues. It even runs tests and linters to ensure all tests pass, and assigns the right reviewers to the PR.

This agent triages Github Dependabot alerts by evaluating vulnerability impact, updating packages to secure versions, ensuring tests pass, and managing the entire pull request workflow.

Every Sunday, this agent reviews Linear tickets and projects for their team. It writes a report on current projects, what got done that week and by whom.

Why This Approach Works

Claude Agent SDK excels at intelligent task orchestration. It transforms high-level goals into detailed action plans, adapts when obstacles arise, and thinks critically through complex problems. With the right tools and clear instructions, it can automate workflows that would typically require hundreds of lines of custom code—making it the ideal MCP client for both technical and operational tasks.

MCP makes tool integration effortless. The Model Context Protocol creates a standardized way for AI to interact with external tools, making integrations as simple as configuration changes (example)

Natural language is maintainable. Your operational playbooks become your automation logic. Team members can easily understand, modify, and extend workflows without wrestling with complex code and 3rd party APIs.

Getting Started

Prerequisites

Installation

  1. Clone this repository or create a template:
git clone https://github.com/kpolley/easy-agents.git
cd easy_agents
  1. Install dependencies:
uv sync
  1. Start the development server:
uv run fastapi dev main.py

Creating Custom Agents

Creating a new agent is as simple as:

  1. Define your agent's behavior in natural language
  2. Specify the MCP servers it needs access to
  3. Deploy via the provided FastAPI endpoints or cronjob triggers

Creating Custom MCP Servers

Extend your agent's capabilities by creating custom MCP servers with FastMCP. See mcps/github_extended.py as an example.

Production Deployment

See DEPLOYMENT.md for guidance.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.

Some ideas we have in mind:

  • More examples and use cases (perhaps from other operational areas such as customer support)
  • Human-in-the-loop interactions (e.g., Slack message an admin with interactive buttons and wait for their response)

About

Deploy agents easily

Resources

Stars

Watchers

Forks

Languages