@kya-os/mcp-i
Version:
COMING SOON:Production-ready MCP Identity with automatic registration, key rotation, and optimized performance
30 lines • 858 B
JavaScript
/**
* Auto-initialization for MCP Identity
*
* Just import this file to automatically enable MCP-I for any MCP server:
*
* ```typescript
* import "@kya-os/mcp-i/auto";
* ```
*
* That's it! Your MCP server now has identity.
*/
import { enableMCPIdentity } from './index.js';
import { getLogger } from './logger.js';
// Auto-initialize on import
(async () => {
try {
await enableMCPIdentity();
}
catch (error) {
const logger = getLogger();
logger.error('[MCP-I] Failed to auto-initialize:', error);
// More detailed error logging for debugging
if (error.stack) {
logger.debug('[MCP-I] Error stack:', error.stack);
}
// Don't throw the error - allow the server to continue running
// even if MCP-I initialization fails
}
})();
//# sourceMappingURL=auto.js.map