Skip to content

solidworks_mcp.skills

solidworks_mcp.skills

The agent skill shipped with the server, and the instructions sent at connection.

The skill folder (solidworks-mcp/) is plain files inside the package, so every install has it: the server serves it as skill:// resources, and solidworks-mcp skill install copies it into an agent's skills folder.

Attributes

SERVER_INSTRUCTIONS module-attribute

SERVER_INSTRUCTIONS = 'SolidWorks MCP server: drive SolidWorks parts, assemblies and drawings.\n\n- Start with `get_model_info` (or `list_open_documents`) to see what is open.\n- Build in this order: `create_part`, `create_sketch`, draw (`add_rectangle`, `add_circle`, ...), `exit_sketch`, then the feature (`create_extrusion`, `create_cut_extrude`, `create_revolve`). Features use the sketch `sketch_name` \nnames, or the one you closed last.\n- Inputs are millimetres and degrees unless a field says metres.\n- A tool\'s success does not prove the geometry is right: finish a build with `verify_model`, giving the size, volume or counts you expect.\n- A tool whose description starts "Not available yet" returns `not_supported`; use the tool it names instead.\n- On an error, read `error_type` and `hint`; `rebuild_model` names failing features and `undo` steps back.\n\nFull guidance (workflows, selection, units, known limits): read the resource skill://solidworks-mcp/SKILL.md.\n'

SKILL_DIR module-attribute

SKILL_DIR = Path(__file__).parent / SKILL_NAME

SKILL_NAME module-attribute

SKILL_NAME = 'solidworks-mcp'