""" Semantica MCP Server Package A full Model Context Protocol (MCP) server for Semantica — exposes knowledge graph construction, semantic extraction, decision intelligence, reasoning, analytics, and export capabilities as MCP tools and resources. Run the server: python -m mcp.server # from repo root python -m semantica.mcp_server # alias inside installed package Configure in Claude Desktop, Windsurf, Cline, Continue, VS Code: { "mcpServers": { "semantica": { "command": "python", "args": ["-m", "mcp.server"], "cwd": "/path/to/semantica" } } } """ import os # MCP stdio framing IS stdout: any progress bar or console renderer that writes # to stdout would interleave with the JSON-RPC stream and corrupt framing for # every client. This package is always used as an MCP stdio server, so force # progress tracking off for the entire process. Set before importing server / # tools so the Semantica progress-tracker singleton is never created with # output enabled (the singleton reads this variable at construction time and # the enabled.setter re-checks it, so later re-enable attempts are also blocked). os.environ["SEMANTICA_DISABLE_PROGRESS"] = "1" # `semantica.__version__` is the authoritative package version — see # semantica/mcp_server/__init__.py for why it is used directly rather than # importlib.metadata.version("semantica"). from semantica import __version__ from .server import SemanticaMCPServer, main __all__ = ["SemanticaMCPServer", "main", "__version__"]