pgurazada1 commited on
Commit
27de058
·
verified ·
1 Parent(s): ee4b867

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +4 -0
server.py CHANGED
@@ -21,6 +21,10 @@ mcp = FastMCP("Credit Card Database Server")
21
  credit_card_db = SQLDatabase.from_uri(r"sqlite:///data/ccms.db")
22
  query_checker_tool = QuerySQLCheckerTool(db=credit_card_db, llm=llm)
23
 
 
 
 
 
24
 
25
  @mcp.tool()
26
  def sql_db_list_tables():
 
21
  credit_card_db = SQLDatabase.from_uri(r"sqlite:///data/ccms.db")
22
  query_checker_tool = QuerySQLCheckerTool(db=credit_card_db, llm=llm)
23
 
24
+ @mcp.custom_route("/", methods=["GET"])
25
+ def hello() -> str:
26
+ return "This is an MCP server tht interfaces with a credit card database"
27
+
28
 
29
  @mcp.tool()
30
  def sql_db_list_tables():