Update server.py
Browse files
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():
|