Skip to main content
Glama

MCP Server.exe

by shadowcz007
database.js528 B
function configureMcp (server, ResourceTemplate, z) { // Configure custom tool server.tool('custom-tool', { message: z.string() }, async ({ message }) => { let dbPath = 'test.sqlite' console.log('#dbPath', dbPath) let client = server._client const db = await client.createDatabase(dbPath) db.exec('CREATE TABLE test (id INT, name TEXT);') db._saveDBFile() return { content: [{ type: 'text', text: `custom tool response: ${message}` }] } }) } module.exports = { configureMcp }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shadowcz007/mcp_server_exe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server