Skip to content

Commit cc5be87

Browse files
authored
Merge pull request #87 from lhhhappy/main
fix Optimade_Server metadata
2 parents 01fce6a + 15a3626 commit cc5be87

6 files changed

Lines changed: 29 additions & 21 deletions

File tree

data/CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Thank you to all our contributors! 🎉
1616
| **[@Rasic2](https://github.com/Rasic2)** | 1 (CatalysisMCP) | 3 | chemistry |
1717
| **[@lhappy](https://github.com/lhappy)** | 1 (dna_sequence_analyzer) | 3 | biology |
1818
| **[@Junshang Zhang](https://github.com/Junshang Zhang)** | 2 (HEA_extractTool, HEA_predictTool) | 3 | machine-learning, research |
19+
| **[@NingWang-art](https://github.com/NingWang-art)** | 1 (OptimadeServer) | 3 | materials |
1920
| **[@lhhhappy](https://github.com/lhhhappy)** | 2 (PYSR-Symbolic-Regression, paper_search) | 3 | physics, research |
2021
| **Haoming Yan** | 1 (perovskite_literature_plot) | 3 | data |
2122
| **[@felix5572](https://github.com/felix5572)** | 1 (deepmd_docs_rag) | 2 | materials |
@@ -24,14 +25,13 @@ Thank you to all our contributors! 🎉
2425
| **[@nlz25](https://github.com/nlz25)** | 1 (data_analysis) | 1 | data |
2526
| **2043899742@qq.com** | 1 (matbench_property_prediction) | 1 | materials |
2627
| **[@vrtejus](https://github.com/vrtejus)** | 1 (PyMOL) | 1 | chemistry |
27-
| **[@NingWang-art](https://github.com/NingWang-art)** | 1 (OptimadeServer) | 0 | materials |
2828

2929

3030
## Stats
3131

3232
- **Contributors**: 19
3333
- **Total Collections**: 26
34-
- **Total Tools**: 130
34+
- **Total Tools**: 133
3535

3636
## How to Contribute
3737

data/contributors.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,17 @@
117117
"research"
118118
]
119119
},
120+
{
121+
"author": "@NingWang-art",
122+
"collections": [
123+
"OptimadeServer"
124+
],
125+
"collections_count": 1,
126+
"tools_count": 3,
127+
"categories": [
128+
"materials"
129+
]
130+
},
120131
{
121132
"author": "@lhhhappy",
122133
"collections": [
@@ -206,20 +217,9 @@
206217
"categories": [
207218
"chemistry"
208219
]
209-
},
210-
{
211-
"author": "@NingWang-art",
212-
"collections": [
213-
"OptimadeServer"
214-
],
215-
"collections_count": 1,
216-
"tools_count": 0,
217-
"categories": [
218-
"materials"
219-
]
220220
}
221221
],
222222
"total_contributors": 19,
223223
"total_collections": 26,
224-
"total_tools": 130
224+
"total_tools": 133
225225
}

data/tools.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@
374374
],
375375
"start_command": "# SSE mode\ncd servers/Optimade_Server && python server.py --port <PORT>\n# stdio mode\ncd servers/Optimade_Server && MCP_TRANSPORT=stdio python server.py",
376376
"install_command": "cd servers/Optimade_Server && uv sync",
377-
"tools": []
377+
"tools": [
378+
"fetch_structures_with_bandgap",
379+
"fetch_structures_with_filter",
380+
"fetch_structures_with_spg"
381+
]
378382
},
379383
{
380384
"name": "orca_tools",

servers/Optimade_Server/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"name": "OptimadeServer",
33
"description": "Optimade Server for materials database",
44
"author": "@NingWang-art",
5-
"category": "materials"
5+
"category": "materials",
6+
"tools": ["fetch_structures_with_filter", "fetch_structures_with_spg", "fetch_structures_with_bandgap"]
67
}

servers/Optimade_Server/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ async def _query_one(provider: str, clause: str) -> dict:
405405
}
406406

407407

408-
# === RUN MCP SERVER ===
409408
if __name__ == "__main__":
410-
logging.info("Starting Optimade MCP Server…")
411-
mcp.run(transport="sse")
409+
# Get transport type from environment variable, default to SSE
410+
transport_type = os.getenv('MCP_TRANSPORT', 'sse')
411+
mcp.run(transport=transport_type)

showcase/index.html

Lines changed: 5 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)