Skip to main content
Glama

MCP Server.exe

by shadowcz007
notify.js684 B
function configureMcp (server, ResourceTemplate, z) { let client = server._client // console.log(client) const sendNotify = client.sendNotify // Configure custom tool server.tool('custom-tool', { message: z.string() }, async ({ message }) => { sendNotify( [ { type: 'desktop', title: '任务执行结果', icon: '' } ], [ { operation: { name: 'custom-tool' }, result: { content: [{ type: 'text', text: message }] } } ] ) 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