gamberooni/secret-agent
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:
- How to create a custom MCP server with encryption/decryption tools using FastMCP
- 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
-
Clone this repository:
git clone <repository-url> cd secret-agent
-
Set up a virtual environment:
uv sync source .venv/bin/activate
-
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:
- Encrypt your input string
- Show the encrypted result
- Decrypt the encrypted string to show the original input string