mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 11:11:03 +02:00
Fix MCP deps, and put service on port 8000
This commit is contained in:
parent
11e00ff5fd
commit
50b831cd0a
2 changed files with 1 additions and 5 deletions
|
|
@ -34,7 +34,6 @@ setuptools.setup(
|
|||
python_requires='>=3.8',
|
||||
download_url = "https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v" + version + ".tar.gz",
|
||||
install_requires=[
|
||||
"trustgraph-base>=1.1,<1.2",
|
||||
"mcp",
|
||||
"websockets",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@ from websockets.asyncio.client import connect
|
|||
|
||||
from . tg_socket import WebSocketManager
|
||||
|
||||
# TrustGraph
|
||||
from trustgraph.api import Api
|
||||
|
||||
@dataclass
|
||||
class AppContext:
|
||||
sockets: dict[str, WebSocketManager]
|
||||
|
|
@ -50,7 +47,7 @@ async def app_lifespan(server: FastMCP) -> AsyncIterator[AppContext]:
|
|||
# Create an MCP server
|
||||
mcp = FastMCP(
|
||||
"TrustGraph", dependencies=["trustgraph-base"],
|
||||
host="0.0.0.0", port=8092,
|
||||
host="0.0.0.0", port=8000,
|
||||
lifespan=app_lifespan,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue