Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-with-amazon-bedrock-agent

基于Streamlit和Amazon Bedrock的时间转换助手

article

README

🚀 时间转换助手

时间转换助手是一个基于 Streamlit 的网络应用程序,借助 Amazon Bedrock,能帮助用户轻松处理各类与时间相关的问题和转换。

🚀 快速开始

时间转换助手是一款强大的网络应用,能有效解决时间相关问题。以下是使用前的准备和启动步骤。

✨ 主要特性

  • 基于 Streamlit 构建,提供简洁易用的网络界面。
  • 借助 Amazon Bedrock 实现高效的时间处理与转换。

📦 安装指南

先决条件

  • Python 3.8 或更高版本
  • Podman 已安装并配置完成
  • 对 Amazon Bedrock 的访问权限
  • AWS 有效凭证已配置

安装步骤

  1. 创建并激活虚拟环境
# 创建虚拟环境
python -m venv venv

# 激活虚拟环境
# 适用于 Windows
venv\Scripts\activate
# 适用于 macOS/Linux
source venv/bin/activate
  1. 安装依赖项
pip install -r requirements.txt
  1. 运行应用程序
streamlit run ui.py
  1. 应用程序将启动并在您的默认浏览器中打开,通常位于 http://localhost:8501。
  2. 若您需要创建 requirements.txt 文件,可运行以下命令:
pip freeze > requirements.txt
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client