Browse Source

Fix log file path and add MCP configuration for image recognition

master
Matteo Benedetto 3 months ago
parent
commit
014d654371
  1. 26
      .kilocode/mcp.json
  2. 2
      image_recognition_server/server.py

26
.kilocode/mcp.json

@ -0,0 +1,26 @@
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
},
"tavily": {
"command": "npx",
"args": ["-y", "tavily-mcp@0.2.3"],
"env": {
"TAVILY_API_KEY": "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"
}
},
"image-recognition": {
"command": "/home/enne2/.local/bin/uvx",
"args": [
"--from",
"git+https://git.enne2.net/enne2/mcp-image-server.git",
"image-recognition-mcp"
],
"env": {
"OPENAI_API_KEY": "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"
}
}
}
}

2
image_recognition_server/server.py

@ -12,7 +12,7 @@ import openai
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
filename='/home/enne2/Sviluppo/tetris-sdl/mcp-image-server/image_server.log'
filename='/home/enne2/Sviluppo/mcp-image-server/image_server.log'
)
logger = logging.getLogger(__name__)

Loading…
Cancel
Save