benjosaur commited on
Commit
f15c689
·
1 Parent(s): 7032e13
Files changed (6) hide show
  1. .python-version +1 -0
  2. app.py +4 -1
  3. main.py +6 -0
  4. pyproject.toml +7 -10
  5. requirements.txt +0 -4
  6. uv.lock +0 -0
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.11
app.py CHANGED
@@ -176,6 +176,9 @@ with gr.Blocks(title="EV Utility Function Calculator") as demo:
176
 
177
  This tool calculates utility scores for electric vehicles based on user preferences.
178
  User preferences are stored in Upstash Redis with their trained coefficients.
 
 
 
179
 
180
  **Note:** If a user_id is not found, default coefficients will be used.
181
  """)
@@ -237,7 +240,7 @@ with gr.Blocks(title="EV Utility Function Calculator") as demo:
237
  This tool is also available as an MCP (Model Context Protocol) server that can be used with Claude Desktop
238
  and other MCP-compatible clients.
239
 
240
- **Repository:** [GitHub Link]
241
 
242
  ### How it works:
243
 
 
176
 
177
  This tool calculates utility scores for electric vehicles based on user preferences.
178
  User preferences are stored in Upstash Redis with their trained coefficients.
179
+
180
+ **Train your own function here**
181
+ https://autofinder.onrender.com
182
 
183
  **Note:** If a user_id is not found, default coefficients will be used.
184
  """)
 
240
  This tool is also available as an MCP (Model Context Protocol) server that can be used with Claude Desktop
241
  and other MCP-compatible clients.
242
 
243
+ **Repository:** https://github.com/MJ141592/AutoFinder
244
 
245
  ### How it works:
246
 
main.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ def main():
2
+ print("Hello from utility-function-mcp!")
3
+
4
+
5
+ if __name__ == "__main__":
6
+ main()
pyproject.toml CHANGED
@@ -1,15 +1,12 @@
1
  [project]
2
- name = "utility-mcp-server"
3
  version = "0.1.0"
4
- description = "MCP server for EV utility function calculations"
5
  readme = "README.md"
6
- requires-python = ">=3.10"
7
  dependencies = [
8
- "mcp>=1.0.0",
9
- "upstash-redis>=1.1.1",
10
- "python-dotenv>=1.0.0",
 
11
  ]
12
-
13
- [build-system]
14
- requires = ["hatchling"]
15
- build-backend = "hatchling.build"
 
1
  [project]
2
+ name = "utility-function-mcp"
3
  version = "0.1.0"
4
+ description = "Add your description here"
5
  readme = "README.md"
6
+ requires-python = ">=3.11"
7
  dependencies = [
8
+ "gradio>=6.0.1",
9
+ "mcp>=1.22.0",
10
+ "python-dotenv>=1.2.1",
11
+ "upstash-redis>=1.5.0",
12
  ]
 
 
 
 
requirements.txt DELETED
@@ -1,4 +0,0 @@
1
- gradio>=5.0.0
2
- upstash-redis>=1.1.1
3
- python-dotenv>=1.0.0
4
- mcp>=1.0.0
 
 
 
 
 
uv.lock CHANGED
The diff for this file is too large to render. See raw diff