MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / toKey

Function toKey

src/cm/lsp/serverCatalog.ts:4–8  ·  view source on GitHub ↗
(id: string | undefined | null)

Source from the content-addressed store, hash-verified

2import type { LspServerBundle, LspServerManifest } from "./types";
3
4function toKey(id: string | undefined | null): string {
5 return String(id ?? "")
6 .trim()
7 .toLowerCase();
8}
9
10interface RegistryAdapter {
11 registerServer: (

Callers 3

registerServerBundleFunction · 0.70
unregisterServerBundleFunction · 0.70
getServerBundleFunction · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected