Fix MCP deps, and put service on port 8000

This commit is contained in:
Cyber MacGeddon 2025-07-02 18:14:59 +01:00
parent 11e00ff5fd
commit 50b831cd0a
2 changed files with 1 additions and 5 deletions

View file

@ -34,7 +34,6 @@ setuptools.setup(
python_requires='>=3.8', python_requires='>=3.8',
download_url = "https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v" + version + ".tar.gz", download_url = "https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v" + version + ".tar.gz",
install_requires=[ install_requires=[
"trustgraph-base>=1.1,<1.2",
"mcp", "mcp",
"websockets", "websockets",
], ],

View file

@ -17,9 +17,6 @@ from websockets.asyncio.client import connect
from . tg_socket import WebSocketManager from . tg_socket import WebSocketManager
# TrustGraph
from trustgraph.api import Api
@dataclass @dataclass
class AppContext: class AppContext:
sockets: dict[str, WebSocketManager] sockets: dict[str, WebSocketManager]
@ -50,7 +47,7 @@ async def app_lifespan(server: FastMCP) -> AsyncIterator[AppContext]:
# Create an MCP server # Create an MCP server
mcp = FastMCP( mcp = FastMCP(
"TrustGraph", dependencies=["trustgraph-base"], "TrustGraph", dependencies=["trustgraph-base"],
host="0.0.0.0", port=8092, host="0.0.0.0", port=8000,
lifespan=app_lifespan, lifespan=app_lifespan,
) )