AM

aiatrium/mcp-assistant

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

36 stars 5 forks 质量 47 趋势 0

基于MCP的助手,专为忙碌的上下文切换用户设计

概览

这是一个使用 MCP 运行的 AI 助手。 - UV: - 安装 UV 检查此处 - 运行 UV 同步 - 遗留 - 创建 Python VENV 并 PIP 安装 -r requirements.txt。 该应用使用 Arcade 方便工具使用,因此无需运行本地 MCP 服务器或连接云端的任何远程设备。注册使用该仓库后,请注册 Arcade 并在此获取免费 API 密钥。 在项目根的 .env 文件中设置以下环境变量: 你。这个仓库目前只支持 OpenAI 和 Anthropic 模型。 默认情况下,代理会对未授权使用的工具启动 Arcade 的 OAuth 流程。这会导致执行暂停,直到该流程完成。如果你想跳过任何未授权工具而不启动 OAuth 以避免阻塞,可以设置 SKIP_CLI_AUTH=true。 这个项目使用 Langfuse 进行可观察性和追踪。虽然不是强制的,但看到界面中格式化的数十个大型语言模型调用很有帮助。

概述(AI 翻译)

这是一个使用 MCP 运行的 AI 助手。

如何安装再运行

基本设置

  • uv:
  • 安装uv,请点击此处
  • 运行 uv sync
  • 遗产
  • 创建一个 Python venv 和 pip install -r requirements.txt。

该应用使用 Arcade 方便工具使用,因此无需运行本地 MCP 服务器或连接云端的任何远程设备。注册使用该仓库后,请注册 Arcade 并在此获取免费 API 密钥。

在项目根节点的 .env 文件中设置以下环境变量:

你只需要一个LLM密钥。这个仓库目前只支持 OpenAI 和 Anthropic 模型。

默认情况下,代理会对未授权使用的工具启动 Arcade 的 OAuth 流程。这会导致执行暂停,直到该流程完成。如果你想跳过任何未授权工具而不启动 OAuth 以避免阻塞,设置 SKIP_CLI_AUTH=true。

可观测性与追踪

本项目使用 Langfuse 进行可观察性和追踪。虽然不是强制的,但看到界面中格式化的数十个大型语言模型调用很有帮助。要利用它,请在 .env 中设置以下环境变量:

如何跑步

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Agent

This is an AI assistant that runs using MCP.

How to install before running

Basic Setup

  • uv:
  • legacy
    • create a python venv and pip install -r requirements.txt.

This application uses Arcade to facilitate tool use so you don’t need to run any local MCP servers or connect to any remotely in the cloud. Please sign up for Arcade and get a free api key here once registered to use this repo.

Set the following enviroment variables in an .env file in the project root:

ANTHROPIC_API_KEY=
ARCADE_API_KEY=
OPENAI_API_KEY=

You only need ONE LLM key. This repo only supports OpenAI and Anthropic models currently.

By default the agent will kick off an OAuth flow with Arcade for any tools that its not authorized to use. This will cause the exectuion to pause until that flow completes. If you want to skip any unauthorized tools without kicking off OAuth so that it doesn’t block, set SKIP_CLI_AUTH=true.

Observability and tracing

This project uses Langfuse for observability and tracing. Its not mandatory but its helpful to see the dozens of LLM calls that occur nicely formatted in a UI. To utilize it, set these environment variables in the .env:

LANGFUSE_SECRET_KEY=
LANGFUSE_PUBLIC_KEY=
LANGFUSE_HOST="https://cloud.langfuse.com"

How to Run

The MCP Assistant application is heavily customizable. You can do anything email triaging to lead qualification.

The default workflow generates a daily briefing over various tools like email, calendar, whatsapp and Notion that tells you your schedule for the day, gives you background research from the internet about who you’re meeting with and tells you what is urgent.

Run the Default Flow - Daily Briefing in Notion

  1. Create a Notion page called Daily Briefings. Ideally this should be at the root of your Notion workspace.
  2. Update the user_context in main in main.py with a description of who you are, how you like to work (like what communication tools you prefer) and any extra information that will make the model’s output better. Update the base_system_prompt with any special instructions you want it to take into account.
  3. The instructions for the LLM on how to generate the daily briefing are in the INPUT_ACTION variable in main.py in the main method. Change the step-by-step instructions based on how you want you daily briefing created.
    For example, if you want the briefing to also check a specific Notion page that has your tasks, the model can also do this
  4. (Optional) You can alter the DEFAULT_TOOLS array at the top of plan_exec_agent .py to have only these values ["Gmail", "Google Calendar", "Whatsapp", "Exa", "Notion"] so you don’t have to set up every MCP server
在 GitHub 查看完整 README

安装

docker run -d --name redis-local -p 6379:6379 redis:latest
新手?先看 mcpskill.org 教程 →