mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-21 07:14:19 +01:00
refactor: split request handle logic to controller
This commit is contained in:
@@ -37,6 +37,22 @@ export const Config = Effect.gen(function* () {
|
||||
};
|
||||
});
|
||||
|
||||
export const getMcpListOutput = (projectCwd: string) =>
|
||||
Effect.gen(function* () {
|
||||
const { claudeCodeExecutablePath } = yield* Config;
|
||||
const output = yield* Command.string(
|
||||
Command.make(
|
||||
"cd",
|
||||
projectCwd,
|
||||
"&&",
|
||||
claudeCodeExecutablePath,
|
||||
"mcp",
|
||||
"list",
|
||||
),
|
||||
);
|
||||
return output;
|
||||
});
|
||||
|
||||
export const getAvailableFeatures = (
|
||||
claudeCodeVersion: ClaudeCodeVersion.ClaudeCodeVersion | null,
|
||||
) => ({
|
||||
|
||||
Reference in New Issue
Block a user