diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..23e71a0 --- /dev/null +++ b/Pipfile @@ -0,0 +1,13 @@ +[[source]] +url = "https://pypi.org/simple" +verify_ssl = true +name = "pypi" + +[packages] +fastmcp = "*" +ifcopenshell = "*" + +[dev-packages] + +[requires] +python_version = "3.10" diff --git a/README.md b/README.md index a986ce7..cb634e3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # ifcMCP An MCP server that enables LLM agents to talk with IFC (Industry Foundation Classes) files +## Requiremets + - fastmcp==2.14.1 + - ifcopenshell==0.8.4 + ## Star History [![Star History Chart](https://api.star-history.com/svg?repos=smartaec/ifcMCP&type=Date)](https://www.star-history.com/#smartaec/ifcMCP&Date) diff --git a/server.py b/server.py index 2fce303..76aa7e0 100644 --- a/server.py +++ b/server.py @@ -2,7 +2,7 @@ from ifc_util import * -mcp=FastMCP("ifcMCP") +mcp=FastMCP("ifcMCP", host="0.0.0.0", port=8000) @mcp.tool() def greet(name:str) -> str: @@ -194,5 +194,6 @@ def get_space_boundaries(file_path:str, globalId:str): if __name__ == '__main__': #mcp.run(transport="stdio") # Default, so transport argument is optional - mcp.run(transport="streamable-http") # default port 8000, access streamable-http mcp server via http://127.0.01:8000/mcp + # default port 8000, access streamable-http mcp server via http://127.0.01:8000/mcp + mcp.run(transport="streamable-http") #mcp.run(transport="sse") \ No newline at end of file