
mcp server proj4 sse
FunctionAI created repo based on template fcai-start-mcp-python-hello-world@0.0.7
Repository Info
About This Server
FunctionAI created repo based on template fcai-start-mcp-python-hello-world@0.0.7
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以不推荐直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,强烈推荐通过
s init ${模版名称}的方法或应用中心进行初始化,详情可参考部署 & 体验 。
mcp-server-proj4-sse
基于 Python 的 FC MCP SSE Server 案例
资源准备
使用该项目,您需要有开通以下服务并拥有对应权限:
| 服务/业务 | 权限 | 相关文档 |
|---|---|---|
| 函数计算 | AliyunFCFullAccess | 帮助文档 计费文档 |
部署 & 体验
- :fire: 通过 云原生应用开发平台 CAP ,
该应用。
案例介绍
基于 FastMCP 和 Starlette 构建的 Serverless 服务端事件(SSE)应用
功能特性
- 使用 FastMCP 框架实现 SSE 协议支持
- 集成 Starlette 高性能 ASGI 服务器
- 提供示例工具端点
transform-coordinates:在不同坐标系统之间转换坐标,支持EPSG、WKT和Proj格式的坐标系统 - 提供示例工具端点
list-supported-crs:列出所有支持的坐标系统 - 支持阿里云函数计算部署
使用流程
调试
部署完成后,取得触发器 URL,即可使用任意支持 SSE 的 MCP Client 进行调试。您也可以使用 MCP 官方的调试器进行测试:
npx @modelcontextprotocol/inspector node build/index.js
注意:填写 URL 时,需加上 /sse 后缀。
二次开发指南
环境要求
- Python ≥3.10
- pip 包管理工具
安装依赖
pip install -r requirements.txt
本地运行
uvicorn main:app --host 0.0.0.0 --port 9000
Quick Start
Clone the repository
git clone https://github.com/radial-hks/mcp-server-proj4-sseInstall dependencies
cd mcp-server-proj4-sse
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.