Oracle MCP server initial impl

This commit is contained in:
Marcelo Ochoa
2025-04-07 15:49:00 -03:00
parent 5d067f5d88
commit a3705f5d0b
4 changed files with 1 additions and 89 deletions

View File

@@ -1,34 +0,0 @@
// 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

@@ -1,24 +0,0 @@
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

View File

@@ -1,30 +0,0 @@
name: ci
on:
push:
branches:
- "main"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./src/oracle/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: mochoa/mcp-oracle:latest

View File

@@ -5,7 +5,7 @@
"license": "MIT",
"author": "Anthropic, PBC (https://anthropic.com)",
"homepage": "https://modelcontextprotocol.io",
"bugs": "https://github.com/marcelo-ochoa/servers/issues",
"bugs": "https://github.com/modelcontextprotocol/servers/issues",
"type": "module",
"bin": {
"mcp-server-oracle": "dist/index.js"