Skip to main content

CARLA Traffic Scenario MCP Server for Bailian Platform

Project description

CARLA Traffic Scenario MCP Server

用于阿里云百炼平台的 MCP 服务,生成 CARLA 交通仿真场景配置脚本。

PyPI version Python

功能

  • 生成道路/路口类型配置
  • 生成交通流配置
  • 生成信号灯控制配置
  • 生成车辆行为配置
  • 生成行人配置
  • 生成天气配置
  • 生成完整的 CARLA 交通场景 Python 脚本

安装

从 PyPI 安装(推荐)

pip install carla-traffic-mcp

使用 uvx 运行

uvx -y carla-traffic-mcp

使用

在百炼平台配置 MCP 服务时使用以下 JSON:

{
  "mcpServers": {
    "carla-traffic-mcp": {
      "command": "uvx",
      "args": [
        "-y",
        "carla-traffic-mcp"
      ]
    }
  }
}

MCP 工具列表

工具名称 功能描述
generate_road_junction 生成道路/路口类型配置
generate_traffic_flow 生成交通流配置
generate_signal_control 生成信号灯控制配置
generate_vehicle_behavior 生成车辆行为配置
generate_pedestrian 生成行人配置
generate_weather 生成天气配置
generate_full_scenario 生成完整的 CARLA 交通场景 Python 脚本

支持的场景类型

场景 地图 说明
十字路口 Town03 标准城市十字路口
T字路口 Town02 T型交叉口
环岛 Town03 圆形环岛
五岔路口 Town04 复杂五岔路口
高速公路 Town05 高速公路场景

开发

本地开发

# 克隆仓库
git clone https://github.com/your-username/carla-traffic-mcp.git
cd carla-traffic-mcp

# 安装开发依赖
pip install -e ".[dev]"

# 运行测试
pytest

发布到 PyPI

参考 PyPI发布指南.md

许可证

MIT

作者

版本历史

版本 日期 说明
0.1.6 2026-03-15 修复入口点和 Tool 类型问题
0.1.0 2026-03-15 初始发布

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carla_traffic_mcp-0.1.7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carla_traffic_mcp-0.1.7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file carla_traffic_mcp-0.1.7.tar.gz.

File metadata

  • Download URL: carla_traffic_mcp-0.1.7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for carla_traffic_mcp-0.1.7.tar.gz
Algorithm Hash digest
SHA256 82ad451c72e8b9ef7ca76f33139d4d70a52d5d3a8accfaf0e5c4a572338713e2
MD5 f8b58437320b2f36366a4b8a40e9faa1
BLAKE2b-256 ad4fa06308a91610c9d58784301ccdf2a94a428b1f7349b7ecf48b850b7f806a

See more details on using hashes here.

File details

Details for the file carla_traffic_mcp-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for carla_traffic_mcp-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc7b2930be32376edcbd72f8a869e95e983eb2ed88333a50cd3a4c26294746da
MD5 a4c39726266ac3de824882973b5a7ea8
BLAKE2b-256 57a5d0562d0bb89e8c0c7c85957619292bf80c7b9756766c8560838bdf698631

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page