Skip to main content
Glama
register.ts630 B
#!/usr/bin/env node import { COMMAND_NAME } from './constant'; import { colorText, registerWithElevatedPermissions } from './utils'; /** * 主函数 */ async function main(): Promise<void> { console.log(colorText(`正在注册 ${COMMAND_NAME} Native Messaging主机...`, 'blue')); try { await registerWithElevatedPermissions(); console.log( colorText('注册成功!现在Chrome扩展可以通过Native Messaging与本地服务通信。', 'green'), ); } catch (error: any) { console.error(colorText(`注册失败: ${error.message}`, 'red')); process.exit(1); } } // 执行主函数 main();

Latest Blog Posts

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/hangwin/mcp-chrome'

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