secret-agent

gamberooni/secret-agent

3.1

If you are the rightful owner of secret-agent and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Secret Agent is a demonstration project that illustrates how to build an LLM-powered agent capable of encrypting and decrypting strings using DSPy and the Model Context Protocol (MCP).

Secret Agent

A demonstration project showing how to build an LLM-powered agent that can encrypt and decrypt strings using DSPy and the Model Context Protocol (MCP).

Overview

Secret Agent is a simple application that showcases:

  1. How to create a custom MCP server with encryption/decryption tools using FastMCP
  2. How to build a DSPy agent that can use these tools

In this demo, the "encryption" is simply string reversal, but the architecture could be extended to support more complex cryptographic operations.

Installation

  1. Clone this repository:

    git clone <repository-url>
    cd secret-agent
    
  2. Set up a virtual environment:

    uv sync
    source .venv/bin/activate
    
  3. Set your MODEL and API key in .env

Usage

Starting the MCP Server

First, start the MCP server that provides the encryption/decryption tools:

uv run task mcp

This will start the server on http://127.0.0.1:8000/sse.

Running the Agent

In a separate terminal, run the main application:

uv run task app -s "your secret message"

If you don't provide an input string, it will default to "topsecret!".

The application will:

  1. Encrypt your input string
  2. Show the encrypted result
  3. Decrypt the encrypted string to show the original input string