crcdng
commited on
Commit
·
21f0f09
1
Parent(s):
0221aaa
try fix secret
Browse files
app.py
CHANGED
|
@@ -35,10 +35,12 @@ class MCPClientWrapper:
|
|
| 35 |
is_python = server_path.endswith('.py')
|
| 36 |
command = "python" if is_python else "node"
|
| 37 |
|
|
|
|
|
|
|
| 38 |
server_params = StdioServerParameters(
|
| 39 |
command=command,
|
| 40 |
args=[server_path],
|
| 41 |
-
env={"PYTHONIOENCODING": "utf-8", "PYTHONUNBUFFERED": "1"}
|
| 42 |
)
|
| 43 |
|
| 44 |
stdio_transport = await self.exit_stack.enter_async_context(stdio_client(server_params))
|
|
|
|
| 35 |
is_python = server_path.endswith('.py')
|
| 36 |
command = "python" if is_python else "node"
|
| 37 |
|
| 38 |
+
nasa_api_key = os.getenv("NASA_API_KEY")
|
| 39 |
+
|
| 40 |
server_params = StdioServerParameters(
|
| 41 |
command=command,
|
| 42 |
args=[server_path],
|
| 43 |
+
env={"PYTHONIOENCODING": "utf-8", "PYTHONUNBUFFERED": "1", "NASA_API_KEY": nasa_api_key}
|
| 44 |
)
|
| 45 |
|
| 46 |
stdio_transport = await self.exit_stack.enter_async_context(stdio_client(server_params))
|