Skip to content

Commit 1b90379

Browse files
update user_config in manifest.json (#61)
1 parent a53f0e7 commit 1b90379

File tree

5 files changed

+111
-5
lines changed

5 files changed

+111
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp.science"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
description = "Open Source MCP Servers for Scientific Research"
55
readme = "README.md"
66
requires-python = ">=3.10"

servers/jupyter-act/manifest.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"mcp-science",
1717
"jupyter-act"
1818
],
19-
"env": {}
19+
"env": {
20+
"JUPYTER_SERVER_URL": "${user_config.jupyter_server_url}",
21+
"JUPYTER_SERVER_TOKEN": "${user_config.jupyter_server_token}"
22+
}
2023
}
2124
},
2225
"tools": [
@@ -49,5 +52,19 @@
4952
"repository": {
5053
"type": "git",
5154
"url": "https://github.com/pathintegral-institute/mcp.science"
55+
},
56+
"user_config": {
57+
"jupyter_server_url": {
58+
"type": "string",
59+
"title": "Jupyter Server URL",
60+
"description": "The URL of the Jupyter server to connect to.",
61+
"required": true
62+
},
63+
"jupyter_server_token": {
64+
"type": "string",
65+
"title": "Jupyter Server Token",
66+
"description": "The token of the Jupyter server to connect to.",
67+
"required": true
68+
}
5269
}
5370
}

servers/materials-project/manifest.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"mcp-science",
1717
"materials-project"
1818
],
19-
"env": {}
19+
"env": {
20+
"MP_API_KEY": "${user_config.mp_api_key}"
21+
}
2022
}
2123
},
2224
"tools": [
@@ -53,5 +55,14 @@
5355
"repository": {
5456
"type": "git",
5557
"url": "https://github.com/pathintegral-institute/mcp.science"
58+
},
59+
"user_config": {
60+
"mp_api_key": {
61+
"type": "string",
62+
"title": "Materials Project API Key",
63+
"description": "Your API key for authentication to the Materials Project API",
64+
"sensitive": true,
65+
"required": true
66+
}
5667
}
5768
}

servers/nemad/manifest.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"mcp-science",
1717
"nemad"
1818
],
19-
"env": {}
19+
"env": {
20+
"NEMAD_API_KEY": "${user_config.nemad_api_key}"
21+
}
2022
}
2123
},
2224
"tools": [
@@ -41,5 +43,13 @@
4143
"repository": {
4244
"type": "git",
4345
"url": "https://github.com/pathintegral-institute/mcp.science"
46+
},
47+
"user_config": {
48+
"nemad_api_key": {
49+
"type": "string",
50+
"title": "NEMAD API Key",
51+
"description": "The API key for the NEMAD database.",
52+
"required": true
53+
}
4454
}
4555
}

servers/ssh-exec/manifest.json

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@
1616
"mcp-science",
1717
"ssh-exec"
1818
],
19-
"env": {}
19+
"env": {
20+
"SSH_HOST": "${user_config.ssh_host}",
21+
"SSH_PORT": "${user_config.ssh_port}",
22+
"SSH_USERNAME": "${user_config.ssh_username}",
23+
"SSH_PRIVATE_KEY": "${user_config.ssh_private_key}",
24+
"SSH_PASSWORD": "${user_config.ssh_password}",
25+
"SSH_ALLOWED_COMMANDS": "${user_config.ssh_allowed_commands}",
26+
"SSH_ALLOWED_PATHS": "${user_config.ssh_allowed_paths}",
27+
"SSH_COMMANDS_BLACKLIST": "${user_config.ssh_commands_blacklist}",
28+
"SSH_ARGUMENTS_BLACKLIST": "${user_config.ssh_arguments_blacklist}"
29+
}
2030
}
2131
},
2232
"tools": [
@@ -29,5 +39,63 @@
2939
"repository": {
3040
"type": "git",
3141
"url": "https://github.com/pathintegral-institute/mcp.science"
42+
},
43+
"user_config": {
44+
"ssh_host": {
45+
"type": "string",
46+
"title": "SSH Host",
47+
"description": "The hostname or IP address of the remote system to connect to.",
48+
"required": true
49+
},
50+
"ssh_port": {
51+
"type": "number",
52+
"title": "SSH Port",
53+
"description": "The port number to use for the SSH connection.",
54+
"default": 22
55+
},
56+
"ssh_username": {
57+
"type": "string",
58+
"title": "SSH Username",
59+
"description": "The username to use for SSH authentication.",
60+
"required": true
61+
},
62+
"ssh_private_key": {
63+
"type": "string",
64+
"title": "SSH Private Key",
65+
"description": "The private key content for SSH authentication (optional).",
66+
"sensitive": true,
67+
"default": ""
68+
},
69+
"ssh_password": {
70+
"type": "string",
71+
"title": "SSH Password",
72+
"description": "The password for SSH authentication (optional).",
73+
"sensitive": true,
74+
"default": ""
75+
},
76+
"ssh_allowed_commands": {
77+
"type": "string",
78+
"title": "Allowed Commands",
79+
"description": "Comma-separated list of commands that are allowed to be executed (optional).",
80+
"default": ""
81+
},
82+
"ssh_allowed_paths": {
83+
"type": "string",
84+
"title": "Allowed Paths",
85+
"description": "Comma-separated list of paths that are allowed to be accessed (optional).",
86+
"default": ""
87+
},
88+
"ssh_commands_blacklist": {
89+
"type": "string",
90+
"title": "Commands Blacklist",
91+
"description": "Comma-separated list of commands that are not allowed to be executed.",
92+
"default": "rm,mv,dd,mkfs,fdisk,format"
93+
},
94+
"ssh_arguments_blacklist": {
95+
"type": "string",
96+
"title": "Arguments Blacklist",
97+
"description": "Comma-separated list of arguments that are not allowed to be used.",
98+
"default": "-rf,-fr,--force"
99+
}
32100
}
33101
}

0 commit comments

Comments
 (0)