Skip to main content
Glama
Genesis CAM MCP

Genesis CAM MCP

by Soulsilent

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GENESIS_MCP_CONFIGNoPath to the MCP configuration file. Checked first in the configuration path selection order, before %APPDATA%\Genesis CAM MCP\config.json, the project workspace\config.json, and the temp directory.
GENESIS_MCP_SCREEN_OCRNoSet to 1 to enable the screen OCR tool (read_screen_ocr). Screen OCR is disabled by default; it must be explicitly enabled by the operator in the MCP service environment and the service restarted.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Genesis CAM 使用说明(INFO 内定变量):

  1. 查询 Genesis 数据库统一走 INFO:run_genesis_info("args"),args 形如 "-t layer -e // -d TOOL";不要带 "COM info," 前缀。

  2. INFO 输出是 shell 变量 set g<类别><参数> = 值或数组,例如 -t layer -d TOOL 会得到 gTOOLnum、gTOOLdrill_size 等一组平行数组。

  3. 不确定实体/数据类别/参数时,先查 info_catalog(离线、不连接 Genesis):query 可搜索中文说明或变量名(如 "钻头尺寸"、"gTOOLdrill_size");entity 列出该实体全部数据类别、参数、选项、示例 args;entity + data_type 查看单个类别的参数、选项与将生成的变量。目录整理自《GENESIS2000 内定变量》2008 版,只作提示:Genesis 10.05 可能有更多字段,目录未命中不代表命令无效,仍可直接试探。

  4. 只读流程:list_jobs → get_step_info(job, step) → 选层 → run_genesis_info。几何内容用 read_layer_features / analyze_layer_features / query_step_geometry,避免直接拉全量 FEATURES。check 类查询需要 -o action=<序号>,序号来自 -d CHECKS_LIST。

  5. 任何写入(图形、COM/AUX 修改、脚本执行)都必须先由用户明确确认 Job、Step、图层。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_screen_ocrA

Read entire Windows desktop. Disabled unless operator explicitly enables GENESIS_MCP_SCREEN_OCR=1; ask user permission each time. OCR is not proof of window identity.

check_python_environmentA

检查 MCP 当前 Python 解释器和依赖;只检查、不安装、不连接 Genesis。

create_genesis_script_draftB

Create a script draft under the Genesis project workspace; this never executes it.

read_genesis_scriptB

Read a script strictly within the Genesis project workspace.

run_genesis_scriptC

Execute a workspace script through Gateway after explicit user confirmation.

inspect_genesis_contextC

Return a compact, read-only context summary for script analysis.

get_genesis_connection_statusA

Return connection state without waiting on a potentially blocked Genesis operation.

discover_genesis_installationsB

Scan common Genesis installation roots and infer supported versions.

configure_genesisC

保存 Genesis 路径/版本;提供 PID 时跳过慢速内存扫描并直接验证候选进程。

disconnect_genesisB

Disconnect Gateway or stop the in-Genesis Socket script; report cleanup failures.

begin_genesis_demandC

Begin one user-demand lease by attaching its chosen PID through Gateway.

end_genesis_demandA

Finish one user-demand lease and close its Gateway connection.

discover_genesis_instancesA

Discover Genesis processes; connect automatically only when exactly one is found.

inspect_genesis_instance_contextB

Read Job/Step process-memory fields for a chosen Genesis PID; not proof of editor group identity.

compare_genesis_instance_contextB

Compare selected PID's process-memory Job/Step against requested target; this does not prove group or layer state.

select_genesis_instanceC

Attach a Genesis PID using the Gateway base layer or Socket advanced layer.

read_current_infoC

Run INFO against the currently connected Genesis session; no PID is required.

info_catalogA

查询 Genesis INFO 目录(离线,不连接 Genesis)。

用来回答"某个实体/数据类别是什么、参数与选项有哪些、会得到哪些 gVAR 变量、 args 该怎么写"。三种用法:

  • info_catalog(query="钻头尺寸") / query="gTOOLdrill_size":按中文说明或变量名搜索;

  • info_catalog(entity="layer"):列出该实体全部数据类别、参数、选项与示例;

  • info_catalog(entity="layer", data_type="TOOL"):查看单个类别。 数据整理自《GENESIS2000 内定变量》(2008),仅作提示:Genesis 10.05 可能有更多字段, 目录未命中不代表命令无效。

run_genesis_infoB

Run native Genesis INFO arguments; return raw lines and parsed assignments.

执行前会用内置目录(info_catalog)对 -t/-e/-d/-p/-o 做仅提示性校验:命中失败时 在结果里附 catalog 说明与建议,但不阻断调用(Genesis 10.05 可能有目录外字段)。

run_genesis_comA

Run a native Genesis COM command without the COM prefix. Commands may alter data; obtain user confirmation first.

run_genesis_auxA

Run a native Genesis AUX command without the AUX prefix. Commands may alter data; obtain user confirmation first.

run_genesis_pauseC

Send a Genesis PAUSE prompt. Requires an active Socket server inside Genesis.

run_genesis_mouseB

Send a Genesis MOUSE prompt. Requires an active Socket server inside Genesis.

analyze_genesis_contextC

Collect a compact read-only Job/Step/Layer summary for script planning.

analyze_genesis_cmd_logA

Analyze pasted Genesis CMD output and explain nonzero command codes using the configured installation's ALL_ERRS catalog.

open_genesis_jobC

Open an existing Genesis Job and verify that Genesis reports it as open.

list_jobsA

列出 Genesis 中的 Job 名称;直接读取 JOBS_LIST,避免逐 Job 初始化。

get_job_infoB

获取指定 Job 的打开状态、变更状态、Step 和 Matrix 图层信息。

get_step_infoC

获取 Step 图层、网络和 INFO 原生轮廓限界;不读取未绑定窗口的单位。

preview_feature_writeA

Preview only, never write. Ask the user for Job, Step and layer; obtain explicit confirmation of target and shapes before any later write.

preview_multi_layer_feature_writeB

Preview identical features on the exact affected layer set; never connect or write.

preview_bound_feature_writeC

Prepare a deterministic operation manifest for human review; never authorize or execute it.

write_bound_feature_planC

Write a user-reviewed plan after live Gateway/Socket-state/OCR checks.

read_layer_featuresC

Read raw indexed layer FEATURES without discarding contour or unknown records.

compare_single_primitive_readbackB

Compare raw primitive snapshots offline; does not connect or write Genesis.

Reports only an exact single-record addition when the limited parser accepts both snapshots. It does not prove geometry, completeness, provenance or user approval.

compare_expected_info_additionsB

Compare exact expected raw INFO records, offline and without Genesis writes.

compare_layer_feature_snapshotsA

Compare two previously captured layer FEATURES snapshots without connecting to Genesis.

Equality describes normalized raw records only, not geometry, completeness or authorship.

inspect_current_geometryB

Inspect the currently connected Genesis Job/Step and all its layer geometry.

query_step_geometryC

Query and analyze every requested Step layer in one MCP call.

analyze_layer_featuresC

Read and conservatively analyze indexed layer geometry; raw records are preserved.

analyze_selected_layersC

Read and analyze a caller-specified batch of layers, stopping on first failure.

analyze_step_layersB

Analyze each layer of a Step with INFO; stop on error and retain completed results.

This may generate large responses and INFO temporary files. Analysis is not an atomic snapshot against manual edits or other Genesis clients.

get_layer_infoC

获取指定图层的类型、上下文、极性、属性和 Feature 统计。

get_copper_areaC

计算 Step 铜面积;计算在 Genesis 中执行,可能写入临时文件。

get_exposed_copper_areaC

计算指定防焊开窗下的暴露铜面积。

export_job_archiveA

将 Job 导出为 TGZ;覆盖已有文件必须显式设置 overwrite=true。

Genesis 10.05 的 export_job 只接受已存在的目录作为 path 参数,并在其中 自行生成 <job>.tgz;直接传文件路径会返回 112111(目录不存在或不可写)。 这里把目标文件的父目录交给 Genesis,再把产物改成调用方指定的文件名。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.8/5.0

Scored across 46 tools

Disambiguation2/5

Many tools overlap in purpose: inspect_genesis_context vs analyze_genesis_context vs analyze_genesis_cmd_log, inspect_current_geometry vs analyze_genesis_context, and read_layer_features vs analyze_layer_features vs get_layer_info all target similar read operations. The four preview_* tools and the multiple compare_* tools further blur boundaries, forcing agents to guess which variant applies. The discover_genesis_installations vs discover_genesis_instances distinction is subtle and easy to misselect.

Naming Consistency3/5

Most tools follow snake_case with verb_noun structure, but there are deviations: info_catalog, configure_genesis, disconnect_genesis, and begin/end_genesis_demand place the verb inconsistently. The 'genesis' infix appears in some names (get_genesis_connection_status) but is dropped in others (get_job_info, list_jobs), making the set less predictable. It remains readable overall, so a mid-range score.

Tool Count2/5

46 tools is well above a reasonable surface for a CAM automation server, and several are near-duplicates (multiple compare_*, multiple analyze_*, multiple preview_*). The set feels like it accumulated variations rather than being deliberately scoped. Trimming to ~15-20 consolidated tools would be far more usable.

Completeness4/5

The surface covers connection lifecycle (discover, configure, connect, demand, disconnect), scripting, native INFO/COM/AUX execution, geometry read, guarded feature writes with previews, and area calculations. Lifecycle coverage is strong for the CAM domain, though the guarded write path is roundabout rather than a direct write operation.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues