MCPcopy
hub / github.com/opactorai/Claudable / getProjectById

Function getProjectById

lib/services/project.ts:34–43  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

32 * Retrieve project by ID
33 */
34export async function getProjectById(id: string): Promise<Project | null> {
35 const project = await prisma.project.findUnique({
36 where: { id },
37 });
38 if (!project) return null;
39 return {
40 ...project,
41 selectedModel: normalizeModelId(project.preferredCli ?? 'claude', project.selectedModel ?? undefined),
42 } as Project;
43}
44
45/**
46 * Create new project

Callers 15

connectVercelProjectFunction · 0.90
connectProjectToGitHubFunction · 0.90
pushProjectToGitHubFunction · 0.90
ensureProjectFunction · 0.90
listProjectDirectoryFunction · 0.90
readProjectFileContentFunction · 0.90
writeProjectFileContentFunction · 0.90
validateProjectExistsFunction · 0.90
installDependenciesMethod · 0.90
startMethod · 0.90
stopMethod · 0.90
executeClaudeFunction · 0.90

Calls 1

normalizeModelIdFunction · 0.90

Tested by

no test coverage detected