matlab-simulink-mcp 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- matlab_simulink_mcp/__init__.py +0 -0
- matlab_simulink_mcp/__main__.py +13 -0
- matlab_simulink_mcp/data/__init__.py +0 -0
- matlab_simulink_mcp/data/blacklist.txt +39 -0
- matlab_simulink_mcp/data/simlib_db.json +20023 -0
- matlab_simulink_mcp/functions.py +194 -0
- matlab_simulink_mcp/installer/__init__.py +0 -0
- matlab_simulink_mcp/installer/installer.py +160 -0
- matlab_simulink_mcp/installer/launcher.py +45 -0
- matlab_simulink_mcp/installer/win_elevate.py +18 -0
- matlab_simulink_mcp/log_utils.py +112 -0
- matlab_simulink_mcp/security.py +56 -0
- matlab_simulink_mcp/server.py +54 -0
- matlab_simulink_mcp/state.py +106 -0
- matlab_simulink_mcp-0.1.0.dist-info/METADATA +169 -0
- matlab_simulink_mcp-0.1.0.dist-info/RECORD +19 -0
- matlab_simulink_mcp-0.1.0.dist-info/WHEEL +5 -0
- matlab_simulink_mcp-0.1.0.dist-info/entry_points.txt +2 -0
- matlab_simulink_mcp-0.1.0.dist-info/top_level.txt +1 -0
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import argparse
|
2
|
+
import matlab_simulink_mcp.server as server
|
3
|
+
|
4
|
+
def main():
|
5
|
+
parser = argparse.ArgumentParser()
|
6
|
+
parser.add_argument("--console", action="store_true", help="Keep console open.")
|
7
|
+
args = parser.parse_args()
|
8
|
+
|
9
|
+
server.console = args.console
|
10
|
+
server.run()
|
11
|
+
|
12
|
+
if __name__ == "__main__":
|
13
|
+
main()
|
File without changes
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# The commands mentioned in this file are not allowed to be used by the LLM for safety reasons.
|
2
|
+
# The LLM is also not allowed to use absolute paths (and thus access anything not on MATLAB path).
|
3
|
+
# ! is only blocked in the code when used at the beginning of the line i.e. as a proper command
|
4
|
+
|
5
|
+
!
|
6
|
+
eval
|
7
|
+
rehash
|
8
|
+
feval
|
9
|
+
system
|
10
|
+
unix
|
11
|
+
dos
|
12
|
+
builtin
|
13
|
+
str2func
|
14
|
+
perl
|
15
|
+
python
|
16
|
+
pyenv
|
17
|
+
py.
|
18
|
+
javaobject
|
19
|
+
javamethod
|
20
|
+
javamethodedt
|
21
|
+
javaclasspath
|
22
|
+
javaaddpath
|
23
|
+
matlab.desktop.editor.opendocument
|
24
|
+
matlab.desktop.editor.save
|
25
|
+
addpath
|
26
|
+
rmpath
|
27
|
+
cd
|
28
|
+
userpath
|
29
|
+
path
|
30
|
+
savepath
|
31
|
+
restoredefaultpath
|
32
|
+
genpath
|
33
|
+
which
|
34
|
+
what
|
35
|
+
matlabroot
|
36
|
+
uigetdir
|
37
|
+
uigetfile
|
38
|
+
uiopen
|
39
|
+
uiputfile
|