Skip to content

Commit 987abb2

Browse files
committed
fix: correct import paths for MCP server and client modules
1 parent 547cf5a commit 987abb2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/mcp_server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import sys
44
from typing import Dict, Any, Optional, List
55

6+
7+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
8+
69
# Update these imports with the correct paths
710
from mcp.server import Server
811
from mcp.server.models import Response, Status

examples/mcp_client_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from project3.mcp.client import MCPClient
1+
from mcp.client import MCPClient
22
import json
33

44
def main():

0 commit comments

Comments
 (0)