mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
060afb94b5
Model Context Protocol server implementation for AI agent access to IFC projects
29 lines
761 B
Python
29 lines
761 B
Python
from ifcmcp.server import server
|
|
|
|
|
|
class TestServerRegistration:
|
|
def test_server_name(self):
|
|
assert server.name == "ifc-mcp"
|
|
|
|
def test_all_tools_registered(self):
|
|
tools = [t.name for t in server._tool_manager.list_tools()]
|
|
expected = [
|
|
"ifc_load",
|
|
"ifc_save",
|
|
"ifc_summary",
|
|
"ifc_tree",
|
|
"ifc_info",
|
|
"ifc_select",
|
|
"ifc_relations",
|
|
"ifc_clash",
|
|
"ifc_list",
|
|
"ifc_docs",
|
|
"ifc_edit",
|
|
]
|
|
for name in expected:
|
|
assert name in tools, f"Tool {name} not registered"
|
|
|
|
def test_tool_count(self):
|
|
tools = server._tool_manager.list_tools()
|
|
assert len(tools) == 11
|