This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const start = async function() { | |
| try{ | |
| const item = { | |
| "jsonrpc": "2.0", | |
| "method": "tools/list", | |
| "id": 1 | |
| } | |
| const response = await fetch("http://localhost:3000/mcp", { | |
| method: 'POST', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { spawn } from "child_process"; | |
| class RpcClient { | |
| constructor(command) { | |
| this.proc = spawn(command); | |
| this.idCounter = 1; | |
| this.pending = new Map(); | |
| this.proc.stdout.setEncoding("utf8"); | |
| this.proc.stdout.on("data", (data) => this._handleData(data)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { spawn } from "child_process"; | |
| class RpcClient { | |
| constructor(command) { | |
| this.proc = spawn(command); | |
| this.idCounter = 1; | |
| this.pending = new Map(); | |
| this.proc.stdout.setEncoding("utf8"); | |
| this.proc.stdout.on("data", (data) => this._handleData(data)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "hello" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| anyhow = "1.0.100" | |
| argon2 = "0.4" # Argon2 実装(PHC 文字列サポート) | |
| rand_core = "0.6" # Salt 生成に OsRng を使うため | |
| password-hash = { version = "0.5.0", features = ["getrandom"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "rust_mcp_server_1" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| serde = { version = "1.0", features = ["derive"] } | |
| serde_json = "1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module example.com/go-mcp-server-2 | |
| go 1.24.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TURSO_DATABASE_URL="" | |
| TURSO_AUTH_TOKEN= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TURSO_DATABASE_URL="" | |
| TURSO_AUTH_TOKEN= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const EXT_TIME = [ | |
| /* JS */ | |
| ".js", | |
| ".jsx", | |
| ".ts", | |
| ".tsx", | |
| ".json", | |
| ".css", | |
| ".htm", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DB_FILE_NAME=file:local.db |