Elf004Gh Vault Awesome Well Structure — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Elf004Gh Vault Awesome Well Structure (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
这是一个基于 MCP (Model Context Protocol)协议 的井身结构图生成工具,可以根据井数据自动生成井身结构图。由西南石油大学钻井所,何世明——汤明实验室团体提供技术支持。
This service, powered by the Model Context Protocol (MCP), automatically generates borehole structure diagrams from well data. It is technically supported by the He Shiming and Tang Ming research group at the Drilling Research Institute of Southwest Petroleum University.
问题反馈:[email protected](陈春钱)
井身结构示意图绘制:

井身结构数据解析:

这是最简单快捷的安装方式,适合大多数用户。
#### 1. 安装 Python 和 uv
安装 Python:
安装 uv:
# Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh#### 2. 配置 AI 客户端
在 AI 客户端中添加 MCP 服务器配置。
##### Trae 配置方式
在 Trae 的设置中添加以下配置(Ctrl + , 打开设置,搜索 MCP):
{
"mcp.servers": {
"awesome_well_mcp": {
"type": "stdio",
"command": "uvx",
"args": ["awesome_well_mcp"],
"disabled": false
}
}
}配置后重启 Trae 即可使用。
##### Cherry Studio 配置方式
在 Cherry Studio 中添加以下配置:
{
"mcpServers": {
"awesome_well_mcp": {
"command": "uvx",
"args": ["awesome_well_mcp"]
}
}
}##### 其他 MCP 客户端
对于支持 MCP 协议的其他客户端,使用以下通用配置:
{
"command": "uvx",
"args": ["awesome_well_mcp"]
}适合需要自定义修改或离线使用的用户。
#### 1. 下载源码
从以下仓库下载源码(推荐第一个):
主要文件包括:
WellStructure.exe - 井身结构生成器main.py - MCP 服务主程序pyproject.toml - 项目配置文件#### 2. 安装 Python 和 uv
安装 Python:
安装 uv:
# Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh#### 3. 设置虚拟环境
# 进入项目目录
cd /path/to/your/project
# 使用 uv 创建虚拟环境并安装依赖
uv sync#### 4. 配置 AI 客户端
在 AI 客户端中添加 MCP 服务器配置。
Trae 配置方式:
在 Trae 的设置中添加以下配置(Ctrl + , 打开设置,搜索 MCP):
{
"mcp.servers": {
"awesome_well_mcp_local": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP",
"run",
"main.py"
],
"disabled": false
}
}
}注意: 请将 C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP 替换为你的实际项目路径。
配置后重启 Trae 即可使用。
Cherry Studio 配置方式:
通过界面配置:
--directory
C:\Files\test_MCP\awesome_well(填写你的文件夹地址)
run
main.py通过配置文件编辑:
{
"mcpServers": {
"awesome_well_mcp_local": {
"name": "awesome_well_mcp_local",
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"C:\\_Git_Files\\test",
"run",
"main.py"
]
}
}
}注意: 请将 C:\\_Git_Files\\test 替换为你的实际项目路径。
工具名称:generate_well_structure
参数:
well_data: (Dict[str, Any]): 井数据字典,必需。返回:
返回格式:
井身结构示意图为:

井身结构信息图为:
返回数据结构:
{
"success": true,
"report_content": "详细的井身结构报告内容(Markdown格式)",
"response": "井身结构示意图为:\n\n\n井身结构信息图为:\n",
"notice": "注意,先整理<report_content>,必须将上面这项<response>包含在整理后的<report_content>中",
"well_info": {
"well_name": "井名",
"well_type": "井型",
"total_depth": 深度
},
"archive_folder": "2025-10-03_11-37-29",
"structure_image_path": "井身结构图绝对路径",
"info_image_path": "井身结构信息图绝对路径"
}#### 基本井型定义
straight well)deviationAngle_deg: 0kickoffPoint_m: nulltargetPointA_m: nulltargetPointB_m: nullDistanceAB_m: nulldeviated well)deviationAngle_deg: 0 < 角度 < 90kickoffPoint_m: 有值(造斜点深度(可根据作图情况调整))targetPointA_m: 有值(目标点A井深)targetPointA_verticalDepth_m: 有值(目标点A的垂深),targetPointB_m: 有值(目标点B井深)DistanceAB_m: 有值(AB点间距离)REAL_kickoffPoint_m: 有值(实际造斜点)horizontal well)deviationAngle_deg: 90kickoffPoint_m: 有值(造斜点深度(可根据作图情况调整))targetPointA_m: 有值(目标点A井深)targetPointA_verticalDepth_m: 有值(目标点A的垂深),targetPointB_m: 有值(目标点B井深)DistanceAB_m: 有值(AB点间距离)REAL_kickoffPoint_m: 有值(实际造斜点)deviationAngle_deg: 90kickoffPoint_m: 有值(造斜点深度(可根据作图情况调整))targetPointA_m: 有值(目标点A井深)targetPointA_verticalDepth_m: 有值(目标点A的垂深),targetPointB_m: 有值(目标点B井深)DistanceAB_m: 有值(AB点间距离)REAL_kickoffPoint_m: 有值(实际造斜点)pilotHoleGuideLine 并设置 "side_tracking": true#### 井型转换规则
当 wellType 为 horizontal well 或 deviated well 时,如果配置了 pilotHoleGuideLine 并设置 "side_tracking": true,则可以表示:
#### pilotHoleGuideLine 配置示例
"pilotHoleGuideLine": {
"topDepth_m": 4530, // 导眼井段起始深度
"bottomDepth_m": 5150, // 导眼井段结束深度
"diameter_mm": 215.9, // 导眼井段直径
"display": true, // 是否显示导眼井段
"highlight": true, // 是否高亮显示
"side_tracking": true // 是否为侧钻井
}#### legendConfig 图例配置示例
"legendConfig": {
"casingLegend": true, // 是否显示套管图例
"holeLegend": false, // 是否显示井眼图例
"kickoffLegend": true, // 是否显示造斜点图例
"targetPointsLegend": true // 是否显示目标点图例
}每次请求完成后,所有生成的文件会自动移动到以时间戳命名的文件夹中:
well_structure_plot.png: 井身结构图well_info.png: 井身结构信息图well_structure_report.md: 井身结构报告stratigraphy.csv: 地层数据casing_sections.csv: 套管数据hole_sections.csv: 井眼数据drilling_fluid_pressure.csv: 钻井液压力数据deviationData.csv: 偏移数据location.csv: 位置数据*_raw.csv 原始数据文件文件归档:
YYYY-MM-DD_HH-MM-SS2025-10-03_11-37-29项目提供了四种井型的设计模板,位于 templates/ 目录:
well_data(导眼井).json - 直井设计模板well_data(导向井) .json - 定向井设计模板well_data(水平井).json - 水平井设计模板well_data(直改平).json - 直改平井设计模板这些模板文件展示了不同井型的标准数据结构和参数配置,可以作为设计新井的参考。每个模板都包含了完整的井身结构数据、地层信息、钻井液压力数据和图例配置。
地层数据定义了井眼穿过的各个地质层位信息:
"stratigraphy": [
{
"name": "遂宁组", // 地层名称
"topDepth_m": 0, // 地层顶深(米)
"bottomDepth_m": 45 // 地层底深(米)
},
{
"name": "沙溪庙组",
"topDepth_m": 45,
"bottomDepth_m": 1195
}
// ... 更多地层
]设计要求:
totalDepth_m钻井液压力数据定义了不同深度段的压力参数:
"drillingFluidAndPressure": [
{
"topDepth_m": 0, // 压力段顶深(米)
"bottomDepth_m": 50, // 压力段底深(米)
"porePressure_gcm3": 1.00, // 孔隙压力(g/cm³)
"pressureWindow_gcm3": { // 压力窗口
"min": 1.05, // 最小压力(g/cm³)
"max": 1.10 // 最大压力(g/cm³)
}
}
// ... 更多压力段
]设计要求:
井身结构定义了井眼和套管的几何参数:
"wellboreStructure": {
"holeSections": [ // 井眼段
{
"topDepth_m": 0, // 井眼段顶深(米)
"bottomDepth_m": 50, // 井眼段底深(米)
"diameter_mm": 660.4, // 井眼直径(毫米)
"note_in": "26\"" // 备注(英寸)
}
// ... 更多井眼段
],
"casingSections": [ // 套管段
{
"topDepth_m": 0, // 套管顶深(米)
"bottomDepth_m": 50, // 套管底深(米)
"od_mm": 508, // 套管外径(毫米)
"note_in": "20\"" // 备注(英寸)
}
// ... 更多套管段
],
"pilotHoleGuideLine": { // 导眼井段(可选)
"topDepth_m": 4530, // 导眼井段顶深(米)
"bottomDepth_m": 5150, // 导眼井段底深(米)
"diameter_mm": 215.9, // 导眼井段直径(毫米)
"display": true, // 是否显示
"highlight": true, // 是否高亮
"side_tracking": true // 是否为侧钻井
}
}设计要求:
#### holeSections(井眼段)
totalDepth_m#### casingSections(套管段)
#### pilotHoleGuideLine(导眼井段)
topDepth_m 和 bottomDepth_m 定义导眼井段范围diameter_mm 应与对应井眼段直径一致side_tracking: true 表示侧钻井特征当前只发布了windows版,后续可能增加对Linux,OS系统的支持。
这是最简单快捷的安装方式,适合大多数用户。
配置步骤:
Ctrl + ,){
"mcp.servers": {
"awesome_well_mcp": {
"type": "stdio",
"command": "uvx",
"args": ["awesome_well_mcp"],
"disabled": false
}
}
}如果需要使用本地开发版本:
配置步骤:
Ctrl + ,){
"mcp.servers": {
"awesome_well_mcp_local": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP",
"run",
"main.py"
],
"disabled": false
}
}
}注意: 请将 C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP 替换为你的实际项目路径。
配置完成后重启 Trae 即可使用。
Claude Code 支持 MCP 协议,可以通过配置文件添加 MCP 服务器。
配置步骤:
%USERPROFILE%\.claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"awesome_well_mcp": {
"command": "uvx",
"args": ["awesome_well_mcp"]
}
}
}配置步骤:
{
"mcpServers": {
"awesome_well_mcp_local": {
"command": "uv",
"args": [
"--directory",
"C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP",
"run",
"main.py"
]
}
}
}注意: 请将 C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP 替换为你的实际项目路径。
配置完成后重启 Claude Code 即可使用。
对于其他支持 MCP 协议的客户端,使用以下通用配置:
{
"command": "uvx",
"args": ["awesome_well_mcp"]
}{
"command": "uv",
"args": [
"--directory",
"C:\\_Git_Files\\GitHub_Prepare\\07_elf004_awesome_well_MCP",
"run",
"main.py"
]
}请根据你的客户端类型选择对应的配置方式。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.