Token导航 LogoToken导航TokenDH.com
Agent Integration With MCP Servers Notion Git logo
开发工具stdio官方级别未说明来源级核验

Agent Integration With MCP Servers Notion Git

MCP Server

一个基于Flask和Notion/GitHub的MCP代理服务,提供智能工具选择、多源数据合成和直接工具执行功能,适用于开发效率提升和内容管理。

工具数

9

提示词数

0

GitHub Stars

0

资源数

0
开发工具PythonGitHub

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Ashishsharmastudio

提供方

Ashishsharmastudio

最后核验

2026/5/17 20:22

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -r requirements.txt

详细介绍

MCP Agent (Flask + Notion/GitHub via MCP)

Production-ready skeleton using official MCP servers:

  • GitHub MCP Server over STDIO with GITHUB_PERSONAL_ACCESS_TOKEN and GITHUB_TOOLSETS. :contentReference[oaicite:15]{index=15}
  • Notion MCP via @notionhq/notion-mcp-server (tools: notion-search, notion-fetch, auto-aliased to search/fetch in some hosts). :contentReference[oaicite:16]{index=16}
  • Python MCP SDK client flow: stdio_clientClientSession.initialize()call_tool(); parse CallToolResult (text/JSON/resources). :contentReference[oaicite:17]{index=17}

Features

  • LLM-Powered Tool Selection: Intelligent tool selection based on tool descriptions and JSON schemas
  • Direct Tool Execution: Commit count queries return direct answers ("The repository has 3 commits")
  • Feature Comparison: Compare features between Notion documentation and GitHub code
  • Multi-Source Synthesis: AI synthesizes responses using data from both Notion and GitHub
  • Docker Support: Run the application in Docker containers
  • Comprehensive Testing: Full test suite for all components

Quickstart

Option 1: Single-Command Docker Execution (Recommended)

# Linux/macOS
./run_with_docker.sh

# Windows
run_with_docker.bat

Option 2: Manual Setup

cp .env.example .env
# fill tokens
pip install -r requirements.txt
python app.py
# GET http://127.0.0.1:5000/agent?query=compare%20features%20between%20docs%20and%20code

Available Tools

The MCP Agent has access to 35+ tools across GitHub and Notion:

GitHub Tools (17 tools)

  • list_commits - Get list of commits in a repository
  • list_branches - List branches in a repository
  • get_file_contents - Get file or directory contents
  • search_code - Search code across GitHub repositories
  • search_repositories - Find repositories by various criteria
  • get_latest_release - Get the latest release information
  • And 12 more tools for repository management

Notion Tools (18 tools)

  • notion-search - Search Notion pages
  • notion-fetch - Fetch Notion page content
  • API-post-search - Direct API search
  • And 15 more tools for content management

API Endpoints

  • GET /healthz - Health check endpoint
  • GET /agent - Main query endpoint

- Parameters: - query (required) - The query string

Example Queries

  • Commit Information: "How many commits are in the repository?" → "The repository has 3 commits."
  • Branch Information: "What branches are in the repo?" → List of branches
  • Feature Comparison: "Compare features between docs and code" → Detailed feature diff
  • General Queries: "What is this project about?" → AI-synthesized response
  • Code Search: "Find documentation about the API" → Relevant results from GitHub

Environment Variables

VariableDescriptionRequired
OPENAI_API_KEYOpenAI API key for LLM access
GITHUB_PERSONAL_ACCESS_TOKENGitHub personal access token
GITHUB_TOOLSETSGitHub toolsets (default: repos)
GITHUB_REPOGitHub repository in owner/repo format
GITHUB_DEFAULT_REFDefault branch (default: master)
NOTION_TOKENNotion integration token
PORTApplication port (default: 5000)
FLASK_ENVFlask environment (default: development)

目录标签

目录标签

开发工具PythonGitHub本地部署数据合成自动化代理GitHub集成Notion集成

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

api-key

工具数量(toolCount,工具数)

9

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdioapi-key部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP