MCPcopy Create free account
hub / github.com/arctic-cli/interface / status

Function status

packages/arctic/src/lsp/index.ts:143–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 export type Status = z.infer<typeof Status>
142
143 export async function status() {
144 return state().then((x) => {
145 const result: Status[] = []
146 for (const client of x.clients) {
147 result.push({
148 id: client.serverID,
149 name: x.servers[client.serverID].id,
150 root: path.relative(Instance.directory, client.root),
151 status: "connected",
152 })
153 }
154 return result
155 })
156 }
157
158 async function getClients(file: string) {
159 const s = await state()

Callers 1

SessionTurnFunction · 0.50

Calls 2

stateFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected