Skip to content

Commit 7bf29af

Browse files
feat(docker): prepare for docker release
1 parent 7432b2a commit 7bf29af

File tree

11 files changed

+43
-42
lines changed

11 files changed

+43
-42
lines changed

.env_template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ OPENAI_API_KEY=
44
MODEL=
55

66
# Tool Retrieval Configuration
7-
EMBEDDING_MODEL=
8-
EMBEDDING_BASE_URL=
7+
EMBEDDING_MODEL=Qwen3-Embedding-0.6B
98
EMBEDDING_API_KEY=
9+
EMBEDDING_BASE_URL=
1010
EMBEDDING_DIMENSIONS=1024
1111
TOP_SERVERS=5
1212
TOP_TOOLS=3
1313
# Abstract API Configuration (optional)
14-
ABSTRACT_MODEL=
14+
ABSTRACT_MODEL=qwen25_72b_int4_instruct
1515
ABSTRACT_API_KEY=
1616
ABSTRACT_BASE_URL=
1717

baseline/mcp_copilot/config/clean_config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@
265265
"sitemap": {
266266
"command": "uvx",
267267
"args": [
268+
"--with",
269+
"mcp==1.9.0",
268270
"sitemap-mcp-server"
269271
],
270272
"env": {

baseline/scripts/run_baselines_lark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ if [ ! -d "./annotated_data/git" ]; then
22
echo "unzip git data..."
33
bash ./utils/get_git_dir.sh
44
fi
5+
mkdir -p logs
56
nohup uv run -m baseline.run_conversation --input_path ./annotated_data/all_annotations.json > ./logs/run.log 2>&1 &
67
sleep 5
78

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
2-
name = "all-mcps"
2+
name = "LiveMCPBench"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "LiveMCPBench is a benchmark for evaluating the ability of agents to navigate and utilize a large-scale MCP toolset. It provides a comprehensive set of tasks that challenge agents to effectively use various tools in daily scenarios."
55
readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [

scripts/docker_reset.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

scripts/env_reset.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
SRC_DIR="/outside"
3+
DST_DIR="/LiveMCPBench"
4+
5+
find "$SRC_DIR" -mindepth 1 -maxdepth 1 | while read -r item; do
6+
name=$(basename "$item")
7+
target="$DST_DIR/$name"
8+
9+
if [ -e "$target" ]; then
10+
rm -rf "$target"
11+
fi
12+
13+
cp -r "$item" "$target"
14+
done
15+
16+
echo "LiveMCPBench workspace has been updated from $SRC_DIR."

scripts/link_path.sh

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#!/bin/bash
2-
# --- Configuration ---
3-
# Set the source directory where the original directories are located.
42
SOURCE_DIR="/LiveMCPBench/annotated_data"
5-
# Set the destination directory where the symbolic links will be created.
63
DEST_DIR="/root"
74

8-
# --- Safety Checks ---
95

106
# Check if the source directory exists.
117
if [ ! -d "$SOURCE_DIR" ]; then
@@ -19,31 +15,25 @@ if [ ! -d "$DEST_DIR" ]; then
1915
exit 1
2016
fi
2117

22-
# Check for write permissions in the destination directory.
23-
# Since the destination is /root, this script will likely need to be run with root privileges (e.g., using sudo).
2418
if [ ! -w "$DEST_DIR" ]; then
2519
echo "Error: No write permission for destination directory '$DEST_DIR'. Try running this script with 'sudo'."
2620
exit 1
2721
fi
28-
# --- Main Logic ---
2922

3023
echo "Creating symbolic links from '$SOURCE_DIR' to '$DEST_DIR'..."
3124

32-
# Loop through all items (files and directories) in the source directory.
33-
# Using quotes around "$SOURCE_DIR"/* ensures that names with spaces are handled correctly.
34-
for item in "$SOURCE_DIR"/*; do
35-
# Check if the current item is a directory.
36-
# The -d flag tests if the path points to a directory.
37-
if [ -d "$item" ]; then
38-
# If it is a directory, create a symbolic link to it in the destination directory.
39-
# The -s option for the 'ln' command creates a symbolic (soft) link.
40-
# The last argument to 'ln' is the target directory where the link is placed. [12]
41-
ln -s "$item" "$DEST_DIR"
42-
43-
# Get the base name of the directory for a more user-friendly output message.
44-
BASENAME=$(basename "$item")
25+
for item in "$SOURCE_DIR"/* "$SOURCE_DIR/git"; do
26+
BASENAME=$(basename "$item")
27+
TARGET_PATH="$DEST_DIR/$BASENAME"
28+
29+
if [ -e "$TARGET_PATH" ] || [ -L "$TARGET_PATH" ]; then
30+
rm -rf "$TARGET_PATH"
31+
echo " -> Removed existing '$BASENAME'."
32+
fi
33+
34+
if [ -d "$item" ] || [ "$BASENAME" = "git" ]; then
35+
ln -s "$item" "$TARGET_PATH"
4536
echo " -> Link created for '$BASENAME'."
4637
fi
4738
done
48-
4939
echo "Script execution finished."

tools/LiveMCPTool/all_config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@
603603
"sitemap": {
604604
"command": "uvx",
605605
"args": [
606+
"--with",
607+
"mcp==1.9.0",
606608
"sitemap-mcp-server"
607609
],
608610
"env": {

tools/LiveMCPTool/tools.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16102,6 +16102,8 @@
1610216102
"sitemap": {
1610316103
"command": "uvx",
1610416104
"args": [
16105+
"--with",
16106+
"mcp==1.9.0",
1610516107
"sitemap-mcp-server"
1610616108
],
1610716109
"env": {

tools/raw_data/clean_config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@
265265
"sitemap": {
266266
"command": "uvx",
267267
"args": [
268+
"--with",
269+
"mcp==1.9.0",
268270
"sitemap-mcp-server"
269271
],
270272
"env": {

0 commit comments

Comments
 (0)