Compare commits

...

13 Commits

Author SHA1 Message Date
Stanislav Khromov
dab61bdb3c Update README.md 2025-09-17 01:40:43 +02:00
Stanislav Khromov
0719e06f6a Update README.md 2025-09-17 01:40:31 +02:00
Stanislav Khromov
7346b0387a Update bypass.php 2025-09-17 01:39:04 +02:00
Stanislav Khromov
3af6c887e9 Update bypass.php 2025-09-17 01:38:10 +02:00
Stanislav Khromov
d91a4f2b51 wip 2025-09-17 01:36:54 +02:00
Stanislav Khromov
ec2e12f7f2 Update docker-compose.yml 2025-09-17 01:10:21 +02:00
Stanislav Khromov
7805fb8a24 set up mcp-inspector 2025-09-17 01:06:18 +02:00
Stanislav Khromov
5280f37a05 Update docker-compose.yml 2025-09-17 01:02:02 +02:00
Stanislav Khromov
621c6cf3c7 Update package.json 2025-09-17 00:57:45 +02:00
Stanislav Khromov
5772110214 Update docker-compose.yml 2025-09-17 00:54:32 +02:00
Stanislav Khromov
b171f6a19f Update docker-compose.yml 2025-09-17 00:50:13 +02:00
Stanislav Khromov
3882733a66 Update docker-compose.yml 2025-09-17 00:44:15 +02:00
Stanislav Khromov
e178374683 Create docker-compose.yml 2025-09-17 00:43:23 +02:00
5 changed files with 69 additions and 1 deletions

View File

@@ -11,3 +11,12 @@ pnpm dev
```
1. Set the VOYAGE_API_KEY for embeddings support
#### Optional tools
```
docker-compose up
```
- MCP Inspector: http://localhost:6274/ (Connect with `http://host.docker.internal:5173/mcp` + Streamable HTTP)
- http://localhost:8081/ - Adminer SQLite frontend

31
bypass.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
function adminer_object() {
include_once "plugins/login-sqlite.php";
class NoAuthSqlite extends Adminer {
function login($login, $password) {
return true;
}
function credentials() {
return array('/tmp/test.db', '', '');
}
function database() {
return '/tmp/test.db';
}
function loginForm() {
echo '<input type="hidden" name="auth[driver]" value="sqlite">';
echo '<input type="hidden" name="auth[server]" value="/tmp/test.db">';
echo '<input type="hidden" name="auth[username]" value="">';
echo '<input type="hidden" name="auth[password]" value="">';
echo '<input type="hidden" name="auth[db]" value="/tmp/test.db">';
echo '<p><input type="submit" value="Connect to SQLite Database"></p>';
}
}
return new NoAuthSqlite;
}
include "adminer.php";

25
docker-compose.yml Normal file
View File

@@ -0,0 +1,25 @@
services:
mcp-inspector:
image: ghcr.io/modelcontextprotocol/inspector:latest
ports:
- '6274:6274'
- '6277:6277'
environment:
- DANGEROUSLY_OMIT_AUTH=true
- HOST=0.0.0.0
restart: unless-stopped
container_name: mcp-inspector-sveltejs-mcp
adminer:
image: adminer:4.6.2
ports:
- '8081:8080'
volumes:
- ./test.db:/tmp/test.db
- ./bypass.php:/var/www/html/bypass.php
environment:
- ADMINER_DEFAULT_SERVER=sqlite:/tmp/test.db
- ADMINER_DESIGN=hydra
restart: unless-stopped
container_name: adminer-sveltejs-mcp
command: ["php", "-S", "[::]:8080", "-t", "/var/www/html", "/var/www/html/bypass.php"]

View File

@@ -6,7 +6,7 @@
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"dev": "vite dev",
"dev": "vite dev --host",
"build": "vite build",
"preview": "vite preview",
"prepare": "svelte-kit sync || echo ''",

View File

@@ -18,4 +18,7 @@ export default defineConfig({
},
],
},
server: {
allowedHosts: ['host.docker.internal'],
},
});