arcticaurora commited on
Commit
ca9445d
·
verified ·
1 Parent(s): 14b9237

Update tools/calculator.py

Browse files
Files changed (1) hide show
  1. tools/calculator.py +5 -1
tools/calculator.py CHANGED
@@ -1,5 +1,5 @@
1
  from mcp.server.fastmcp import FastMCP
2
-
3
  mcp = FastMCP("Calculator")
4
 
5
  @mcp.tool()
@@ -18,6 +18,10 @@ def add(a: float, b: float):
18
  add(-2, 7) returns 5.0
19
  add(3.14, 2.86) returns 6.0
20
  """
 
 
 
 
21
  return a + b
22
 
23
  @mcp.tool()
 
1
  from mcp.server.fastmcp import FastMCP
2
+ import os
3
  mcp = FastMCP("Calculator")
4
 
5
  @mcp.tool()
 
18
  add(-2, 7) returns 5.0
19
  add(3.14, 2.86) returns 6.0
20
  """
21
+ client_id = os.getenv('REDDIT_CLIENT_ID')
22
+ client_secret = os.getenv('REDDIT_CLIENT_SECRET')
23
+ user_agent = os.getenv('REDDIT_USER_AGENT', 'MCP Reddit Tool v1.0')
24
+ print(client_id,client_secret,user_agent)
25
  return a + b
26
 
27
  @mcp.tool()