Reuniones-MCP-Python
El servidor MCP de reuniones proporciona una API que permite a los asistentes de IA interactuar con la aplicación de reuniones a través del protocolo de conversación de máquina. Esto permite a los sistemas de IA ayudar a los usuarios a administrar los gastos compartidos para eventos sociales, salidas o cualquier reunión donde los costos se dividan entre los participantes.
1
Github Watches
1
Github Forks
0
Github Stars
Gatherings MCP Server
A Machine Conversation Protocol (MCP) server interface for the Gatherings expense-sharing application.
Overview
The Gatherings MCP Server provides an API that allows AI assistants to interact with the Gatherings application through the Machine Conversation Protocol. This enables AI systems to help users manage shared expenses for social events, outings, or any gathering where costs are split among participants.
Features
- Create and manage gatherings with multiple members
- Add expenses for specific members
- Calculate fair reimbursements
- Record payments and reimbursements
- Generate detailed payment summaries
- Add/remove members from gatherings
- Rename members as needed
Installation
Prerequisites
- Python 3.8+
- SQLAlchemy
- MCP SDK
Setup
-
Clone this repository:
git clone https://your-repository.git cd accel -
Install the required dependencies:
pip install -r requirements.txt -
Set environment variables (optional):
# Custom database location export GATHERINGS_DB_PATH=path/to/database.db # Custom script location export GATHERINGS_SCRIPT=path/to/gatherings.py
Usage
Start the MCP server:
python gatherings_mcp_server.py
The server runs on stdio, which makes it compatible with MCP protocol clients.
API Reference
The MCP server exposes the following tools:
create_gathering(gathering_id: str, members: int)
Create a new gathering with the specified number of members.
add_expense(gathering_id: str, member_name: str, amount: float)
Add an expense for a member in a gathering.
calculate_reimbursements(gathering_id: str)
Calculate who owes what to whom for a gathering.
record_payment(gathering_id: str, member_name: str, amount: float)
Record a payment made by a member (positive value) or a reimbursement to a member (negative value).
rename_member(gathering_id: str, old_name: str, new_name: str)
Rename a member in a gathering.
show_gathering(gathering_id: str)
Show details of a gathering including expenses and payment status.
list_gatherings()
List all gatherings in the database.
close_gathering(gathering_id: str)
Mark a gathering as closed.
delete_gathering(gathering_id: str, force: bool = False)
Delete a gathering and all associated data. Set force=True to delete closed gatherings.
add_member(gathering_id: str, member_name: str)
Add a new member to an existing gathering.
remove_member(gathering_id: str, member_name: str)
Remove a member from a gathering (only if they have no expenses).
Example Flow
-
Create a gathering for a dinner with 5 friends:
create_gathering("2023-10-15-dinner", 5) -
Add expenses as people pay for things:
add_expense("2023-10-15-dinner", "Alice", 120.50) add_expense("2023-10-15-dinner", "Bob", 35.00) -
Calculate reimbursements:
calculate_reimbursements("2023-10-15-dinner") -
Record payments as people settle up:
record_payment("2023-10-15-dinner", "Charlie", 31.10) -
Close the gathering when all payments are settled:
close_gathering("2023-10-15-dinner")
Architecture
The Gatherings MCP server consists of three main components:
-
MCP Server Interface (
gatherings_mcp_server.py): Provides the MCP protocol interface that AI tools can interact with. -
Service Layer (
services.py): Contains business logic for managing gatherings, expenses, and payments. -
Data Layer (
models.py): Defines the database schema using SQLAlchemy ORM and handles data persistence.
Data Model
- Gathering: Represents a social event with expenses to split
- Member: A participant in a gathering
- Expense: Money spent by a member for the gathering
- Payment: Money paid by a member to settle balances
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Advanced software engineer GPT that excels through nailing the basics.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Converts Figma frames into front-end code for various mobile frameworks.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
La aplicación AI de escritorio todo en uno y Docker con trapo incorporado, agentes de IA, creador de agentes sin código, compatibilidad de MCP y más.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Plataforma de automatización de flujo de trabajo de código justo con capacidades de IA nativas. Combine el edificio visual con código personalizado, auto-anfitrión o nube, más de 400 integraciones.
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
Una lista curada de servidores de protocolo de contexto del modelo (MCP)
Espejo dehttps: //github.com/agentience/practices_mcp_server
Reviews
user_oKlPcSYq
I've been using the bilibili_mcp_server_full product by Jasonw372, and it's been fantastic. The server setup process was seamless, and it offers excellent performance and stability for my Bilibili projects. The comprehensive documentation and prompt support make it a top-notch choice. Highly recommended!