solidworks_mcp.skills.install¶
solidworks_mcp.skills.install ¶
solidworks-mcp skill install: copy the usage skill into an agent's skills folder.
It writes only <skills folder>/solidworks-mcp/, overwriting the files the
package ships and leaving any other file there alone. It reads nothing but the
packaged skill (no client config, no other skill) and needs no network.
Attributes¶
app
module-attribute
¶
app = typer.Typer(add_completion=False, help='Install the SolidWorks MCP usage skill into an agent.')
Functions:¶
install ¶
install(project: bool = typer.Option(False, '--project', help="Install into this project's .claude/skills."), directory: Path | None = typer.Option(None, '--dir', help='Install into this skills folder (for agents other than Claude Code).'), dry_run: bool = typer.Option(False, '--dry-run', help='Show what would be written, write nothing.')) -> None
Copy the skill into ~/.claude/skills (default), a project, or a folder.
Source code in src/solidworks_mcp/skills/install.py
install_skill ¶
Copy the packaged skill into folder/solidworks-mcp/.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
folder
|
Path
|
The skills folder. |
required |
dry_run
|
bool
|
Report the files without writing them. |
False
|
Returns:
| Type | Description |
|---|---|
list[Path]
|
list[Path]: The files written (or that would be written). |
Raises:
| Type | Description |
|---|---|
OSError
|
When a folder can't be created or a file can't be written. |
ValueError
|
When a target would land outside the skill's folder. |
Source code in src/solidworks_mcp/skills/install.py
main ¶
packaged_files ¶
List the skill's files, relative to the packaged skill folder.
Returns:
| Type | Description |
|---|---|
list[Path]
|
list[Path]: Every file of the skill, sorted. |
Source code in src/solidworks_mcp/skills/install.py
skills_folder ¶
Choose the skills folder the skill goes into.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
bool
|
Use the current project's |
required |
directory
|
Path | None
|
Any other skills folder; wins over |
required |
home
|
Path
|
The user's home folder. |
required |
cwd
|
Path
|
The current working folder. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
The skills folder (the skill goes in a |
Path
|
folder inside it). |