mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-19 16:43:24 +02:00
feat: add Oracle MCP server with Docker support and configuration
This commit is contained in:
34
.devcontainer/devcontainer.json
Normal file
34
.devcontainer/devcontainer.json
Normal 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"
|
||||
}
|
||||
24
.devcontainer/docker-compose-local.yml
Normal file
24
.devcontainer/docker-compose-local.yml
Normal 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
|
||||
Reference in New Issue
Block a user