jedick commited on
Commit
a665466
·
1 Parent(s): 2982302

Add default CRAN mirror and increase MCP timeout

Browse files
Files changed (2) hide show
  1. PlotMyData/agent.py +1 -1
  2. entrypoint.sh +4 -1
PlotMyData/agent.py CHANGED
@@ -28,7 +28,7 @@ server_params = StdioServerParameters(
28
  ],
29
  )
30
  # STDIO transport to local R MCP server
31
- connection_params = StdioConnectionParams(server_params=server_params, timeout=10)
32
 
33
  # Define model
34
  # If we're using the OpenAI API, get the value of OPENAI_MODEL_NAME set by entrypoint.sh
 
28
  ],
29
  )
30
  # STDIO transport to local R MCP server
31
+ connection_params = StdioConnectionParams(server_params=server_params, timeout=30)
32
 
33
  # Define model
34
  # If we're using the OpenAI API, get the value of OPENAI_MODEL_NAME set by entrypoint.sh
entrypoint.sh CHANGED
@@ -5,7 +5,10 @@ set -e
5
 
6
  # MCP session setup for persistent R environment
7
  # Create .Rprofile to run mcp_session() when R starts
8
- echo "library(tidyverse); source('data_summary.R'); mcptools::mcp_session()" > .Rprofile
 
 
 
9
 
10
  # Start R in a detached screen session
11
  # TODO: Look at using supervisord for another way to run multiple services
 
5
 
6
  # MCP session setup for persistent R environment
7
  # Create .Rprofile to run mcp_session() when R starts
8
+ cat > .Rprofile << 'EOF'
9
+ options(repos = c(CRAN = "https://cloud.r-project.org"))
10
+ library(tidyverse); source('data_summary.R'); mcptools::mcp_session()
11
+ EOF
12
 
13
  # Start R in a detached screen session
14
  # TODO: Look at using supervisord for another way to run multiple services