Logo MIST - 任务模型智能系统

MIST - 任务模型智能系统

Cộng đồng
CLoaKY233

MCP server empowering AI assistants with real-world capabilities: Gmail, Calendar, Tasks, Git integration, and note management. Bridges AI assistants to external services through standardized protocol with secure authentication.

Nhà phát hànhCLoaKY233
Kho mãMIST
Ngôn ngữPython
Bản fork
2
Sao
13
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    MIST - 任务模型智能系统 cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    13 sao và 2 bản fork từ kho mã được liên kết.

MIST - Model Intelligence System for Tasks

MIST Banner

MIST is a comprehensive MCP (Model Context Protocol) server that empowers AI assistants with real-world capabilities for note management, Gmail, Calendar, Tasks, and Git integration. It bridges the gap between AI assistants and external tools, enabling them to interact with your data and services through a standardized protocol.

License: MIT Python Version Version

Overview

MIST allows AI assistants to:

  • Manage notes: Create, edit, search, and organize notes with persistent storage
  • Interact with Gmail: Search emails, read messages, send emails, manage labels
  • Manage calendar events: View, create, update, and delete Google Calendar events
  • Organize tasks: Create task lists, add tasks, mark tasks as complete
  • Work with Git repositories: Perform Git operations like status, diff, commit, branch management

By implementing the Model Context Protocol (MCP), MIST enables AI assistants to perform actions in external systems, access real-time information, and maintain context across interactions.

Key Features

Note Management

  • Create and store notes with rich text formatting
  • Search notes by content, tags, or metadata
  • Generate summaries of notes or collections
  • Organize notes by subject, date, or custom categories
  • Store notes locally in your filesystem

Gmail Integration

  • Search emails with advanced filtering options
  • Read complete email content
  • Compose and send emails
  • Manage email labels and organization
  • Mark messages as read/unread
  • Batch operations for multiple messages

Calendar Integration

  • List all available calendars
  • Create and manage calendar events
  • Update existing events
  • Search events by keyword or date range
  • View detailed event information

Tasks Integration

  • List and manage task lists
  • Create tasks with titles, notes, and due dates
  • Mark tasks as complete
  • Delete completed tasks
  • Organize tasks into different lists

Git Integration

  • Perform Git operations in local repositories
  • View status, diffs, and commit history
  • Commit changes and manage branches
  • Create, checkout and merge branches
  • Manage remote repositories
  • Display commit details and changes

Future Roadmap

MIST is continuously evolving to offer more integrations and features. Here's what we're planning to add:

Document & File Management

  • Google Drive Integration: Access and manage files, search documents, and analyze content
  • Google Sheets Integration: Create, read, and update spreadsheets for data analysis

Search & Information Access

  • Google Custom Search: Enable web search capabilities for research and information retrieval
  • Knowledge Base: Build local repositories of information for offline access

Collaboration Tools

  • Google Classroom: Access courses, assignments, and educational materials
  • Google Chat: Interact with chat spaces and messages for team collaboration

Data & Location Services

  • Google Forms: Create and manage forms for data collection
  • Google Maps: Add location-based services including geocoding and directions

Platform Improvements

  • Enhanced Caching: Improve performance for frequently accessed data
  • Multi-User Support: Add user profiles and permission management
  • Expanded AI Assistant Compatibility: Support more AI assistants and models

We welcome contributions in any of these areas! Check our Contributing Guidelines for more information on how to get involved.

System Architecture

MIST operates as an MCP server that connects AI assistants to various services. It handles authentication, data retrieval, and actions with the appropriate services, returning structured data back to the AI assistant.

Communication Flow

Installation

Prerequisites

  • Python 3.13 or newer
  • UV package manager (recommended) or pip
  • Google account (for Gmail/Calendar/Tasks integration)
  • Git (for Git integration features)

Setup

  1. Clone this repository:

    bash
    git clone https://github.com/cloaky233/mist.git
    cd mist
  2. Install dependencies:

    With UV (recommended):

    bash
    uv install

    With pip:

    bash
    pip install -e .
  3. Configure your environment:

    bash
    # Create a .env file with your configuration
    echo "MIST_NOTES_DIR=/path/to/your/notes/directory" > .env
    echo "MIST_GOOGLE_CREDENTIALS_PATH=./credentials.json" >> .env
    echo "MIST_GOOGLE_TOKEN_PATH=./token.json" >> .env

    Edit the .env file to set the correct paths for your environment.

Environment Configuration

The following environment variables can be set in your .env file:

env
# Notes storage configuration
MIST_NOTES_DIR=/path/to/notes/directory

# Google API configuration
MIST_GOOGLE_CREDENTIALS_PATH=./credentials.json
MIST_GOOGLE_TOKEN_PATH=./token.json

Google API Configuration

Setting up Gmail, Calendar, and Tasks APIs

  1. Create a Google Cloud Project

    • Navigate to the Google Cloud Console
    • Create a new project or select an existing one
    • Give it a descriptive name (e.g., "MIST Integration")
  2. Enable Required APIs

    • Go to "APIs & Services" > "Library"
    • Search for and enable:
      • Gmail API
      • Calendar API
      • Tasks API
  3. Configure OAuth Consent Screen

    • Go to "APIs & Services" > "OAuth consent screen"
    • Select "External" user type (or "Internal" for Google Workspace)
    • Fill in required information:
      • App name: "MIST Integration"
      • User support email: Your email address
      • Developer contact information: Your email address
    • Click "Save and Continue"
    • Add necessary scopes for each API
    • Add your Google account as a test user
  4. Create OAuth Credentials

    • Go to "APIs & Services" > "Credentials"
    • Click "Create Credentials" > "OAuth client ID"
    • Select "Desktop application" as the application type
    • Enter a name (e.g., "MIST Desktop Client")
    • Download the JSON file and save it as credentials.json in your project directory

Usage

Running the MCP Server

Start the MCP server with:

bash
uv run --with mcp[cli] --with-editable . mcp run mist/server.py

For production use, you may want to use a process manager like systemd, supervisor, or pm2.

Connecting to AI Assistants

Claude Desktop

Add the following to your Claude Desktop settings:

json
{
  "mcpServers": {
    "M.I.S.T.": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with-editable",
        "/path/to/mist",
        "mcp",
        "run",
        "/path/to/mist/server.py"
      ],
      "env": {
        "MIST_GOOGLE_CREDENTIALS_PATH": "/path/to/mist/credentials.json",
        "MIST_GOOGLE_TOKEN_PATH": "/path/to/mist/token.json",
        "MIST_NOTES_DIR": "/path/to/notes"
      }
    }
  }
}

Zed Editor

Add the following to your Zed editor settings:

json
"context_servers": {
  "mist-server": {
    "command": {
      "path": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with-editable",
        "/path/to/mist",
        "mcp",
        "run",
        "/path/to/mist/server.py"
      ],
      "env": {
        "MIST_GOOGLE_CREDENTIALS_PATH": "/path/to/mist/credentials.json",
        "MIST_GOOGLE_TOKEN_PATH": "/path/to/mist/token.json",
        "MIST_NOTES_DIR": "/path/to/notes"
      }
    },
    "settings": {
      "enable_server": true
    }
  }
}

First Run Authentication

When you first run the server, you'll need to authenticate with Google:

  1. A browser window will open with Google's authentication page
  2. Sign in with your Google account
  3. Grant the requested permissions
  4. The authorization code will be captured automatically
  5. MIST will save the authentication token for future use

API Reference

Note Management API

FunctionDescriptionParameters
add_noteCreate a new notetitle, content, subject (optional)
read_noteRead a note by ID or titlenote_id or title
list_notesList notes with filterssubject, tag, limit
search_notesSearch notes by contentquery
edit_noteUpdate an existing notenote_id, new_content
delete_noteDelete a notenote_id

Gmail API

FunctionDescriptionParameters
search_emailsFind emails by criteriaVarious filters
get_emailsGet email content by IDsmessage_ids
send_emailSend a new emailto, subject, body, etc.
list_available_labelsGet Gmail labelsNone

Calendar API

FunctionDescriptionParameters
list_calendars_toolList all calendarsNone
create_event_toolCreate a calendar eventcalendar_id, title, etc.
search_events_toolSearch calendar eventscalendar_id, query, etc.

Tasks API

FunctionDescriptionParameters
list_task_lists_toolList all task listsNone
create_task_toolCreate a new tasktask_list_id, title, etc.
complete_task_toolMark task as completetask_list_id, task_id

Git API

Below is a selection of commonly used Git tools. For a complete list and detailed parameters, please refer to the API Reference.

FunctionDescriptionKey Parameters
status_toolShow working tree statusrepo_path
diff_unstaged_toolShow unstaged changesrepo_path
diff_staged_toolShow staged changesrepo_path
add_toolStage files for commitrepo_path, files
reset_toolReset current HEAD or unstage filesrepo_path, commit_ish (opt), mode (opt)
commit_toolCommit staged changesrepo_path, message
log_toolShow commit historyrepo_path, max_count (opt)
branch_list_toolList all branchesrepo_path
create_branch_toolCreate a new branchrepo_path, branch_name, base_branch (opt)
checkout_toolSwitch branchesrepo_path, branch_name
merge_toolMerge a branch or manage merge staterepo_path, branch (opt), abort (opt)
rebase_toolRebase current branch or manage rebase staterepo_path, branch_or_commit (opt), interactive (opt), abort (opt), continue_rebase (opt)
stash_save_toolStash current changesrepo_path, message (opt)
pull_toolPull changes from a remoterepo_path, remote (opt), branch (opt)
push_toolPush changes to a remoterepo_path, remote (opt), branch (opt), force (opt), tags (opt)

Project Structure

mist/
├── __init__.py               # Package initialization with version info
├── server.py                 # Main MCP server entry point
├── tools/                    # Tool implementations
│   ├── note_tools/           # Note management
│   │   ├── __init__.py
│   │   └── tool.py           # Note tool implementations
│   ├── gmail_tools/          # Gmail integration
│   │   ├── __init__.py
│   │   ├── config.py         # Gmail-specific config
│   │   ├── gmail.py          # Gmail API utilities
│   │   └── tool.py           # Gmail tool implementations
│   ├── calendar_tools/       # Calendar integration
│   │   ├── __init__.py
│   │   ├── calendar.py       # Calendar API utilities
│   │   ├── config.py         # Calendar-specific config
│   │   └── tool.py           # Calendar tool implementations
│   ├── tasks_tools/          # Tasks integration
│   │   ├── __init__.py
│   │   ├── config.py         # Tasks-specific config
│   │   ├── tasks.py          # Tasks API utilities
│   │   └── tool.py           # Tasks tool implementations
│   ├── git_tools/            # Git operations
│   │   ├── __init__.py
│   │   ├── config.py         # Git-specific config (imports from google_api)
│   │   ├── gitapi.py         # Core Git command implementations
│   │   └── tool.py           # Git tool functions exposed to MCP
│   ├── google_api/           # Common Google API utilities
│   │   ├── __init__.py
│   │   ├── client.py         # Google API client
│   │   └── config.py         # Shared Google API config
│   └── __init__.py           # Tools package init
├── config_docs/              # Configuration documentation
│   ├── api_reference.md      # API reference documentation
│   ├── configs.md            # Example configuration templates
│   ├── configuration_guide.md# Detailed configuration guide
│   └── troubleshooting_guide.md # Troubleshooting guide
├── .github/                  # GitHub configuration
│   └── ISSUE_TEMPLATE/       # Issue templates for bug reports, etc.
├── LICENSE                   # MIT License
├── CONTRIBUTING.md           # Contributing guidelines
├── README.md                 # Project documentation
├── pyproject.toml            # Project metadata and dependencies
├── uv.lock                   # UV lock file for dependencies
├── credentials.json          # Google API credentials (should be user-provided)
└── .env                      # Environment configuration (user-created)

Security Considerations

  • API keys and tokens are stored in the .env file or environment variables
  • OAuth tokens are securely managed by Google's authentication flow
  • Your data remains on your own device or within your own accounts
  • No data is sent to third-party services unless explicitly configured

Troubleshooting

Authentication Issues

  • Credentials not working: Delete token.json and re-authenticate
  • Permission errors: Check OAuth consent screen for proper scopes
  • Token expired: MIST should refresh tokens automatically, but you may need to re-authenticate if refresh fails

Connection Problems

  • AI assistant cannot connect: Verify paths in configuration are correct
  • Server fails to start: Check Python version (3.13+ required)
  • API errors: Verify API keys and credentials are correctly set up

Data Issues

  • Notes not saving: Check MIST_NOTES_DIR path exists and is writable

Development

Linting and Formatting

bash
ruff check .
ruff format .

Contributing

Contributions are welcome! Please see our Contributing Guidelines for details on how to get started.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and commit them: git commit -m 'Add amazing feature'
  4. Push to your branch: git push origin feature/amazing-feature
  5. Open a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Model Context Protocol for the protocol specification
  • Google APIs for Gmail, Calendar, and Tasks integration

Made with ❤️ by CLoaKY

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "cloaky233-mist": {
      "command": "",
      "args": []
    }
  }
}

Dùng MCP MIST - 任务模型智能系统 với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối MIST - 任务模型智能系统, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm MIST - 任务模型智能系统 làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của MIST - 任务模型智能系统.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "cloaky233-mist": {
      "command": "npx",
      "args": [
        "-y",
        "mist"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của MIST - 任务模型智能系统, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của MIST - 任务模型智能系统.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng MIST - 任务模型智能系统 giúp tôi làm việc này không?
MIST - 任务模型智能系统
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng MIST - 任务模型智能系统.

Câu hỏi thường gặp

Máy chủ MCP MIST - 任务模型智能系统 dùng để làm gì?

MIST - 任务模型智能系统 là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP MIST - 任务模型智能系统 với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng MIST - 任务模型智能系统 với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP MIST - 任务模型智能系统 với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối MIST - 任务模型智能系统, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP MIST - 任务模型智能系统 với TypingMind?

MIST - 任务模型智能系统 hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP MIST - 任务模型智能系统 cung cấp những công cụ nào trong TypingMind?

MIST - 任务模型智能系统 cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP MIST - 任务模型智能系统 không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu MIST - 任务模型智能系统 yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇