Skip to content

Commit a4640ff

Browse files
modify for better compliance
1 parent db7528e commit a4640ff

3 files changed

Lines changed: 5217 additions & 3 deletions

File tree

mp_api/mcp/mp_mcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class MPMcp(BaseModel):
16-
name: str = Field("Materials Project MCP")
16+
name: str = Field("Materials_Project_MCP")
1717
client_kwargs: dict[str, Any] | None = Field(None)
1818
_client: MPRester | None = PrivateAttr(None)
1919

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33

44
from mp_api.mcp.mp_mcp import MPMcp
55

6-
MP_MCP = MPMcp().mcp()
7-
MP_MCP.run()
6+
mcp = MPMcp().mcp()
7+
8+
if __name__ == "__main__":
9+
mcp.run()

0 commit comments

Comments
 (0)