feat: add Oracle MCP server with Docker support and configuration

This commit is contained in:
Marcelo Ochoa
2025-03-13 16:51:37 +00:00
parent 941266c05a
commit 9846ccc695
9 changed files with 691 additions and 6 deletions

View File

@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/microsoft/vscode-dev-containers/blob/main/containers/docker-from-docker-compose/.devcontainer/devcontainer.json
{
"name": "MCPServer",
"dockerComposeFile": "docker-compose-local.yml",
"service": "mcp-server",
"runServices": ["mcp-server","db"],
"workspaceFolder": "/modelcontextprotocol/servers",
// Set *default* container specific settings.json values on container create.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
//"forwardPorts": [3000],
// "mounts": [
// "source=/etc/hosts,target=/etc/hosts,type=bind,consistency=cached"
// ]
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "apt update && apt install -y git postgresql-client docker.io",
// Comment out to connect as root instead.
"remoteUser": "root"
}

View File

@@ -0,0 +1,24 @@
version: '3.7'
services:
mcp-server:
image: "node:22"
#command: ["host.docker.internal:1521/freepdb1"]
#build:
# context: ..
# dockerfile: src/oracle/Dockerfile
# platforms:
# - "linux/arm64"
command: tail -f /dev/null
environment:
- ORACLE_USER=hr
- ORACLE_PASSWORD=hr_2025
volumes:
- ..:/modelcontextprotocol/servers
- /var/run/docker.sock:/var/run/docker.sock
db:
image: postgres:latest
environment:
POSTGRES_USER: hr
POSTGRES_PASSWORD: hr_2025
POSTGRES_DB: hr