- Explore MCP Servers
- valkey-ai-tasks
Valkey Ai Tasks
What is Valkey Ai Tasks
Valkey MCP Task Management Server is a task management system that enables seamless integration with agentic AI tools using the Model Context Protocol (MCP). It allows AI agents to create, manage, and track tasks within various projects while utilizing Valkey for data persistence.
Use cases
The system can be used for project management, task management, and monitoring task statuses. It is beneficial for teams looking to streamline their project workflows, prioritize tasks efficiently, and facilitate AI agents in automating and optimizing project management processes.
How to use
To utilize the Valkey MCP Task Management Server, users can either run it locally using Go or deploy it via Docker. AI agents interact with the system through provided MCP API endpoints to create projects, manage tasks, and track statuses based on defined functions.
Key features
Key features include project and task management functionality (create, read, update, delete), task prioritization and ordering, status tracking for tasks, MCP server for agent integration, and Docker container support for simplified deployment.
Where to use
The Valkey MCP Task Management Server is ideal for development environments, project management offices, and organizations utilizing AI solutions for task automation and team collaboration, enabling enhanced productivity and streamlined workflows.
Overview
What is Valkey Ai Tasks
Valkey MCP Task Management Server is a task management system that enables seamless integration with agentic AI tools using the Model Context Protocol (MCP). It allows AI agents to create, manage, and track tasks within various projects while utilizing Valkey for data persistence.
Use cases
The system can be used for project management, task management, and monitoring task statuses. It is beneficial for teams looking to streamline their project workflows, prioritize tasks efficiently, and facilitate AI agents in automating and optimizing project management processes.
How to use
To utilize the Valkey MCP Task Management Server, users can either run it locally using Go or deploy it via Docker. AI agents interact with the system through provided MCP API endpoints to create projects, manage tasks, and track statuses based on defined functions.
Key features
Key features include project and task management functionality (create, read, update, delete), task prioritization and ordering, status tracking for tasks, MCP server for agent integration, and Docker container support for simplified deployment.
Where to use
The Valkey MCP Task Management Server is ideal for development environments, project management offices, and organizations utilizing AI solutions for task automation and team collaboration, enabling enhanced productivity and streamlined workflows.
Content
Valkey MCP Task Management Server
A task management system that implements the Model Context Protocol (MCP) for seamless integration with agentic AI tools. This system allows AI agents to create, manage, and track tasks within plans using Valkey as the persistence layer.
Features
- Plan management (create, read, update, delete)
- Task management (create, read, update, delete)
- Task ordering and prioritization
- Status tracking for tasks
- MCP server for AI agent integration
- Docker container support for easy deployment
Architecture
The system is built using:
- Go: For the backend implementation
- Valkey: For data persistence
- Valkey-Glide v2: Official Go client for Valkey
- Model Context Protocol: For AI agent integration
Directory Structure
valkey-ai-tasks/ ├── go/ # Go implementation │ ├── cmd/ # Command-line applications │ │ └── mcpserver/ # MCP server entry point │ ├── internal/ # Internal packages │ │ ├── models/ # Data models │ │ ├── mcp/ # MCP server implementation │ │ └── storage/ # Valkey storage layer │ └── Dockerfile # Docker build file for Go implementation ├── docker-compose.yml # Docker Compose configuration └── README.md # This file
Getting Started
Prerequisites
- Go 1.24 or later
- Valkey server
- Docker and Docker Compose (for containerized deployment)
- GNU Make (for running Makefile commands)
Installation
Local Development
-
Clone the repository:
git clone https://github.com/jbrinkman/valkey-ai-tasks.git cd valkey-ai-tasks
-
Install dependencies:
cd go go mod download
-
Run the MCP server:
go run cmd/mcpserver/main.go
Running Tests
The project includes a Makefile in the go
directory with targets for running tests:
-
Run all tests:
cd go make test
-
Run integration tests only:
cd go make integ-test
-
Run tests with a filter:
cd go make test filter=TestName
-
Run tests with verbose output:
cd go make test verbose=1
-
Generate test coverage report:
cd go make coverage
-
View all available Makefile targets:
cd go make help
Docker Deployment
-
Clone the repository:
git clone https://github.com/jbrinkman/valkey-ai-tasks.git cd valkey-ai-tasks
-
Start the containers:
docker-compose up -d
-
The MCP server will be available at
http://localhost:8080
Environment Variables
The MCP server can be configured using the following environment variables:
VALKEY_HOST
: Valkey server hostname (default: “localhost”)VALKEY_PORT
: Valkey server port (default: 6379)VALKEY_USERNAME
: Valkey username (default: “”)VALKEY_PASSWORD
: Valkey password (default: “”)SERVER_PORT
: MCP server port (default: 8080)
MCP API Reference
The MCP server exposes the following endpoints:
GET /mcp/list_functions
: Lists all available functionsPOST /mcp/invoke/{function_name}
: Invokes a function with the given parameters
Available Functions
Project Management
create_project
: Create a new projectget_project
: Get a project by IDlist_projects
: List all projectslist_projects_by_application
: List all projects for a specific applicationupdate_project
: Update an existing projectdelete_project
: Delete a project by ID
Task Management
create_task
: Create a new task in a projectget_task
: Get a task by IDlist_tasks_by_project
: List all tasks in a projectlist_tasks_by_status
: List all tasks with a specific statusupdate_task
: Update an existing taskdelete_task
: Delete a task by IDreorder_task
: Change the order of a task within its project
MCP Configuration
Local MCP Configuration
To configure an AI agent to use the local MCP server, add the following to your ~/.codeium/windsurf/mcp_config.json
file:
{
"mcpServers": {
"valkey-tasks": {
"serverUrl": "http://localhost:8080/sse"
}
}
}
Docker MCP Configuration
When running in Docker, use the container name as the hostname:
If accessing from outside the Docker network:
{
"mcpServers": {
"valkey-tasks": {
"serverUrl": "http://localhost:8080/sse"
}
}
}
Using with AI Agents
AI agents can interact with this task management system through the MCP API. Here’s an example of how an agent might use the API:
- The agent calls
/sse/list_functions
to discover available functions - The agent calls
/sse/invoke/create_project
with parameters:{ "application_id": "my-app", "name": "New Feature Development", "description": "Implement new features for the application" }
- The agent can add tasks to the project using either:
- Individual task creation with
/sse/invoke/create_task
- Bulk task creation with
/sse/invoke/bulk_create_tasks
for multiple tasks at once:
- Individual task creation with
- The agent calls
/sse/invoke/update_task
to update task status as work progresses
Sample Agent Prompt
Here’s a sample prompt that would trigger an AI agent to use the MCP task management system:
I need to organize work for my new application called "inventory-manager". Create a project for this application and add the following tasks: 1. Set up database schema 2. Implement REST API endpoints 3. Create user authentication system 4. Design frontend dashboard 5. Implement inventory tracking features Prioritize the tasks appropriately and set the first two tasks as "in_progress".
With this prompt, an AI agent with access to the Valkey MCP Task Management Server would:
- Create a new project with application_id “inventory-manager”
- Add the five specified tasks to the project
- Set appropriate priorities for each task
- Update the status of the first two tasks to “in_progress”
- Return a summary of the created project and tasks
License
This project is licensed under the BSD-3-Clause License.