Skip to main content
Glama

MCP Development Framework

docker-compose.yml.json32 kB
{ "sourceFile": "docker-compose.yml", "activeCommit": 0, "commits": [ { "activePatchIndex": 39, "patches": [ { "date": 1741245882812, "content": "Index: \n===================================================================\n--- \n+++ \n" }, { "date": 1741494815890, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -9,11 +9,16 @@\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n+ - LLM_API_KEY=${LLM_API_KEY:-\"\"}\n+ - LLM_API_BASE_URL=${LLM_API_BASE_URL:-\"api.openai.com\"}\n+ - LLM_MODEL=${LLM_MODEL:-\"gpt-4o\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ # 挂载图片保存目录\n+ - /Users/liuyanzhi/Desktop/pdf_images:/host_images\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741495204623, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -9,16 +9,11 @@\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n- - LLM_API_KEY=${LLM_API_KEY:-\"\"}\n- - LLM_API_BASE_URL=${LLM_API_BASE_URL:-\"api.openai.com\"}\n- - LLM_MODEL=${LLM_MODEL:-\"gpt-4o\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- # 挂载图片保存目录\n- - /Users/liuyanzhi/Desktop/pdf_images:/host_images\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741521124496, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -9,11 +9,20 @@\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n+ # 图像识别相关环境变量\n+ - LLM_API_BASE_URL=${LLM_API_BASE_URL:-api.openai.com}\n+ - LLM_API_KEY=${LLM_API_KEY:-}\n+ - LLM_MODEL=${LLM_MODEL:-gpt-4o}\n+ - LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-400}\n+ - ENABLE_IMAGE_RECOGNITION=${ENABLE_IMAGE_RECOGNITION:-true}\n+ - IMAGE_SAVE_DIR=/img\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ # 挂载图像目录\n+ - /Users/liuyanzhi/Desktop/img:/img\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741521262981, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -15,14 +15,14 @@\n - LLM_API_KEY=${LLM_API_KEY:-}\n - LLM_MODEL=${LLM_MODEL:-gpt-4o}\n - LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-400}\n - ENABLE_IMAGE_RECOGNITION=${ENABLE_IMAGE_RECOGNITION:-true}\n- - IMAGE_SAVE_DIR=/img\n+ - IMAGE_SAVE_DIR=/host_images\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- # 挂载图像目录\n- - /Users/liuyanzhi/Desktop/img:/img\n+ # 挂载图像目录,与GLM-Free-API保持一致\n+ - /Users/liuyanzhi/Desktop/img:/host_images\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741521346043, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -16,8 +16,9 @@\n - LLM_MODEL=${LLM_MODEL:-gpt-4o}\n - LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-400}\n - ENABLE_IMAGE_RECOGNITION=${ENABLE_IMAGE_RECOGNITION:-true}\n - IMAGE_SAVE_DIR=/host_images\n+ - API_IMAGE_PATH=${API_IMAGE_PATH:-/host_images}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n # 挂载图像目录,与GLM-Free-API保持一致\n" }, { "date": 1741523195581, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -9,21 +9,11 @@\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n- # 图像识别相关环境变量\n- - LLM_API_BASE_URL=${LLM_API_BASE_URL:-api.openai.com}\n- - LLM_API_KEY=${LLM_API_KEY:-}\n- - LLM_MODEL=${LLM_MODEL:-gpt-4o}\n- - LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-400}\n- - ENABLE_IMAGE_RECOGNITION=${ENABLE_IMAGE_RECOGNITION:-true}\n- - IMAGE_SAVE_DIR=/host_images\n- - API_IMAGE_PATH=${API_IMAGE_PATH:-/host_images}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- # 挂载图像目录,与GLM-Free-API保持一致\n- - /Users/liuyanzhi/Desktop/img:/host_images\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741527142405, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,8 +12,10 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ extra_hosts:\n+ - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741527149227, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -20,5 +20,5 @@\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n timeout: 10s\n retries: 3\n- start_period: 10s \n\\ No newline at end of file\n+ start_period: 10s\n\\ No newline at end of file\n" }, { "date": 1741529381888, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,13 +12,11 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- extra_hosts:\n- - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n timeout: 10s\n retries: 3\n- start_period: 10s\n\\ No newline at end of file\n+ start_period: 10s \n\\ No newline at end of file\n" }, { "date": 1741606181060, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,8 +12,11 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ extra_hosts:\n+ - \"host.docker.internal:host-gateway\"\n+ - \"d.shuqudata.com:host-gateway\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606242593, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -13,10 +13,9 @@\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n extra_hosts:\n- - \"host.docker.internal:host-gateway\"\n- - \"d.shuqudata.com:host-gateway\"\n+ - \"d.shuqudata.com:172.18.31.70\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606315725, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,8 +2,9 @@\n \n services:\n mcp-server:\n build: .\n+ network_mode: \"host\"\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n" }, { "date": 1741606328964, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -3,10 +3,8 @@\n services:\n mcp-server:\n build: .\n network_mode: \"host\"\n- ports:\n- - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n" }, { "date": 1741606336891, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,9 +2,10 @@\n \n services:\n mcp-server:\n build: .\n- network_mode: \"host\"\n+ ports:\n+ - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n" }, { "date": 1741606387301, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,20 +2,17 @@\n \n services:\n mcp-server:\n build: .\n- ports:\n- - \"${MCP_SERVER_PORT:-8000}:8000\"\n+ network_mode: \"host\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- extra_hosts:\n- - \"d.shuqudata.com:172.18.31.70\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606430142, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,17 +2,22 @@\n \n services:\n mcp-server:\n build: .\n+ # 使用host网络模式,直接使用宿主机网络\n network_mode: \"host\"\n+ # ports:\n+ # - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ # extra_hosts:\n+ # - \"d.shuqudata.com:172.18.31.70\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606440645, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -14,10 +14,8 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- # extra_hosts:\n- # - \"d.shuqudata.com:172.18.31.70\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606523544, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,12 +2,9 @@\n \n services:\n mcp-server:\n build: .\n- # 使用host网络模式,直接使用宿主机网络\n network_mode: \"host\"\n- # ports:\n- # - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n" }, { "date": 1741606529158, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,9 +2,10 @@\n \n services:\n mcp-server:\n build: .\n- network_mode: \"host\"\n+ ports:\n+ - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n" }, { "date": 1741606538827, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,8 +12,10 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ extra_hosts:\n+ - \"d.shuqudata.com:172.18.31.70\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606545658, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,10 +12,8 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n- extra_hosts:\n- - \"d.shuqudata.com:172.18.31.70\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741606587125, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,8 +2,9 @@\n \n services:\n mcp-server:\n build: .\n+ network_mode: host\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n" }, { "date": 1741606631529, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,9 +2,8 @@\n \n services:\n mcp-server:\n build: .\n- network_mode: host\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n@@ -13,8 +12,10 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n+ extra_hosts:\n+ - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n" }, { "date": 1741763906004, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,7 +1,28 @@\n version: '3.8'\n \n services:\n+ mcp:\n+ build: .\n+ ports:\n+ - \"8000:8000\"\n+ volumes:\n+ - .:/app\n+ environment:\n+ - DEBUG=false\n+ - MCP_SERVER_PORT=8000\n+ - MCP_SERVER_HOST=0.0.0.0\n+ extra_hosts:\n+ - \"host.docker.internal:host-gateway\"\n+ # 如果使用方案2,需要加入maxkb的网络\n+ # networks:\n+ # - maxkb_network\n+\n+# 如果使用方案2,需要定义外部网络\n+# networks:\n+# maxkb_network:\n+# external: true\n+\n mcp-server:\n build: .\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n" }, { "date": 1741763923855, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,28 +1,7 @@\n version: '3.8'\n \n services:\n- mcp:\n- build: .\n- ports:\n- - \"8000:8000\"\n- volumes:\n- - .:/app\n- environment:\n- - DEBUG=false\n- - MCP_SERVER_PORT=8000\n- - MCP_SERVER_HOST=0.0.0.0\n- extra_hosts:\n- - \"host.docker.internal:host-gateway\"\n- # 如果使用方案2,需要加入maxkb的网络\n- # networks:\n- # - maxkb_network\n-\n-# 如果使用方案2,需要定义外部网络\n-# networks:\n-# maxkb_network:\n-# external: true\n-\n mcp-server:\n build: .\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n" }, { "date": 1741765231098, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -9,8 +9,12 @@\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n+ # MaxKB配置\n+ - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n+ - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n+ - MAXKB_APPLICATION_ID=${MAXKB_APPLICATION_ID}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n extra_hosts:\n" }, { "date": 1741775253149, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -13,8 +13,9 @@\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n - MAXKB_APPLICATION_ID=${MAXKB_APPLICATION_ID}\n+ - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n extra_hosts:\n" }, { "date": 1741776275523, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,9 +12,8 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n- - MAXKB_APPLICATION_ID=${MAXKB_APPLICATION_ID}\n - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n" }, { "date": 1741776374804, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,23 +1,16 @@\n-version: '3.8'\n+version: '3'\n \n services:\n mcp-server:\n build: .\n ports:\n- - \"${MCP_SERVER_PORT:-8000}:8000\"\n+ - \"8000:8000\"\n environment:\n- - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n- - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n- - DEBUG=${DEBUG:-false}\n- - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n- # MaxKB配置\n- - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n- - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n- - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n- volumes:\n- # 挂载用户的本地目录到容器内的/host_files目录\n- - /Users/liuyanzhi/Desktop:/host_files\n+ - MAXKB_HOST=http://host.docker.internal:8080\n+ - MAXKB_CHAT_ID=f08b23b4-ff29-11ef-82b3-0242ac110002\n+ - MAXKB_APPLICATION_ID=application-e689000edd89acb58572482651fa88e0\n+ - MAXKB_AUTHORIZATION=application-e689000edd89acb58572482651fa88e0\n extra_hosts:\n - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n" }, { "date": 1741776418839, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -1,16 +1,23 @@\n-version: '3'\n+version: '3.8'\n \n services:\n mcp-server:\n build: .\n ports:\n- - \"8000:8000\"\n+ - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n- - MAXKB_HOST=http://host.docker.internal:8080\n- - MAXKB_CHAT_ID=f08b23b4-ff29-11ef-82b3-0242ac110002\n- - MAXKB_APPLICATION_ID=application-e689000edd89acb58572482651fa88e0\n- - MAXKB_AUTHORIZATION=application-e689000edd89acb58572482651fa88e0\n+ - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n+ - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n+ - DEBUG=${DEBUG:-false}\n+ - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n+ # MaxKB配置\n+ - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n+ - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n+ - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n+ volumes:\n+ # 挂载用户的本地目录到容器内的/host_files目录\n+ - /Users/liuyanzhi/Desktop:/host_files\n extra_hosts:\n - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n" }, { "date": 1741776952384, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -12,8 +12,9 @@\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n+ - MAXKB_APPLICATION_ID=${MAXKB_APPLICATION_ID}\n - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n" }, { "date": 1741944050259, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -14,11 +14,14 @@\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n - MAXKB_APPLICATION_ID=${MAXKB_APPLICATION_ID}\n - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n+ # 挂载目录配置\n+ - HOST_MOUNT_SOURCE=${HOST_MOUNT_SOURCE}\n+ - HOST_MOUNT_TARGET=${HOST_MOUNT_TARGET}\n volumes:\n- # 挂载用户的本地目录到容器内的/host_files目录\n- - /Users/liuyanzhi/Desktop:/host_files\n+ # 挂载用户的本地目录到容器内的指定目录\n+ - ${HOST_MOUNT_SOURCE:-/tmp}:${HOST_MOUNT_TARGET:-/host_files}\n extra_hosts:\n - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n" }, { "date": 1744091487522, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -7,8 +7,9 @@\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n+ - MCP_AUTH_URL=${MCP_AUTH_URL:-http://170.106.105.206:4000/users}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n" }, { "date": 1744095380690, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -25,9 +25,9 @@\n extra_hosts:\n - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n- test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n+ test: [\"CMD-SHELL\", \"curl -f -s http://localhost:8000/sse || exit 0\"]\n interval: 30s\n timeout: 10s\n retries: 3\n start_period: 10s \n\\ No newline at end of file\n" }, { "date": 1744096071242, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -7,9 +7,8 @@\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n- - MCP_AUTH_URL=${MCP_AUTH_URL:-http://170.106.105.206:4000/users}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n@@ -25,9 +24,9 @@\n extra_hosts:\n - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n healthcheck:\n- test: [\"CMD-SHELL\", \"curl -f -s http://localhost:8000/sse || exit 0\"]\n+ test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n timeout: 10s\n retries: 3\n start_period: 10s \n\\ No newline at end of file\n" }, { "date": 1744098373399, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -7,8 +7,9 @@\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n+ - MCP_AUTH_URL=${MCP_AUTH_URL:-http://170.106.105.206:4000/users}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n" }, { "date": 1744180924504, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,8 +8,9 @@\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - MCP_AUTH_URL=${MCP_AUTH_URL:-http://170.106.105.206:4000/users}\n+ - MCP_API_KEY=${MCP_API_KEY}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n" }, { "date": 1744181143262, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -8,9 +8,8 @@\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - MCP_AUTH_URL=${MCP_AUTH_URL:-http://170.106.105.206:4000/users}\n- - MCP_API_KEY=${MCP_API_KEY}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n # MaxKB配置\n - MAXKB_HOST=${MAXKB_HOST:-http://host.docker.internal:8080}\n" }, { "date": 1745551294635, "content": "Index: \n===================================================================\n--- \n+++ \n@@ -2,8 +2,9 @@\n \n services:\n mcp-server:\n build: .\n+ container_name: mcp-framework-server\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n@@ -16,10 +17,10 @@\n - MAXKB_CHAT_ID=${MAXKB_CHAT_ID}\n - MAXKB_APPLICATION_ID=${MAXKB_APPLICATION_ID}\n - MAXKB_AUTHORIZATION=${MAXKB_AUTHORIZATION}\n # 挂载目录配置\n- - HOST_MOUNT_SOURCE=${HOST_MOUNT_SOURCE}\n- - HOST_MOUNT_TARGET=${HOST_MOUNT_TARGET}\n+ - HOST_MOUNT_SOURCE=${HOST_MOUNT_SOURCE:-/tmp}\n+ - HOST_MOUNT_TARGET=${HOST_MOUNT_TARGET:-/host_files}\n volumes:\n # 挂载用户的本地目录到容器内的指定目录\n - ${HOST_MOUNT_SOURCE:-/tmp}:${HOST_MOUNT_TARGET:-/host_files}\n extra_hosts:\n" } ], "date": 1741245882812, "name": "Commit-0", "content": "version: '3.8'\n\nservices:\n mcp-server:\n build: .\n ports:\n - \"${MCP_SERVER_PORT:-8000}:8000\"\n environment:\n - MCP_SERVER_PORT=${MCP_SERVER_PORT:-8000}\n - MCP_SERVER_HOST=${MCP_SERVER_HOST:-0.0.0.0}\n - DEBUG=${DEBUG:-false}\n - MCP_USER_AGENT=${MCP_USER_AGENT:-\"MCP Test Server (github.com/modelcontextprotocol/python-sdk)\"}\n volumes:\n # 挂载用户的本地目录到容器内的/host_files目录\n - /Users/liuyanzhi/Desktop:/host_files\n restart: unless-stopped\n healthcheck:\n test: [\"CMD\", \"curl\", \"-f\", \"http://localhost:8000/sse\"]\n interval: 30s\n timeout: 10s\n retries: 3\n start_period: 10s " } ] }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aigo666/mcp-framework'

If you have feedback or need assistance with the MCP directory API, please join our Discord server