ZeroClawAgent's picture
Upload 10 files
d984ed3 verified
Raw
History Blame Contribute Delete
921 Bytes
"""
Entry point for the fabric-config-oracle MCP server.
Run via:
python main.py
The server speaks MCP over stdio, which is the transport Claude Desktop,
Cursor, and most other MCP-aware clients expect by default.
"""
from __future__ import annotations
import logging
import sys
from mcp_server import get_server
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
stream=sys.stderr, # MCP uses stdout for protocol traffic; logs go to stderr.
)
logger = logging.getLogger("fabric-config-oracle")
def main() -> None:
"""Start the fabric-config-oracle MCP server over stdio transport."""
logger.info("Starting fabric-config-oracle MCP server (stdio transport)...")
server = get_server()
# `run()` blocks until the client disconnects or the process is killed.
server.run(transport="stdio")
if __name__ == "__main__":
main()