-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.py
More file actions
28 lines (22 loc) · 737 Bytes
/
server.py
File metadata and controls
28 lines (22 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import logging
from mcp.server.fastmcp import FastMCP
from database import init_db
import tools.profile_tools
import tools.job_tools
import tools.application_tools
import tools.cover_letter_tools
import tools.cv_tools
import tools.auto_apply_tools
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("pathwise")
mcp = FastMCP("Pathwise")
init_db()
tools.profile_tools.register_tools(mcp)
tools.job_tools.register_tools(mcp)
tools.application_tools.register_tools(mcp)
tools.cover_letter_tools.register_tools(mcp)
tools.cv_tools.register_tools(mcp)
tools.auto_apply_tools.register_tools(mcp)
logger.info("Pathwise MCP server initialized with 6 tool modules")
if __name__ == "__main__":
mcp.run(transport="stdio")