🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
import { ListSkillsQuerySchema } from "@langfuse/shared";
import { prisma } from "@langfuse/shared/src/db";
import { SkillService } from "@/src/features/skills/server/skill-service";
import { defineTool } from "../../../core/define-tool";
import { runMcpTool } from "../../../core/run-mcp-tool";
export const [listSkillsTool, handleListSkills] = defineTool({
name: "listSkills",
description:
"List and search project skills with tags and version summaries. Supports filtering and pagination.",
action: "skills:read",
baseSchema: ListSkillsQuerySchema,
inputSchema: ListSkillsQuerySchema,
handler: async (input, context) =>
runMcpTool({
spanName: "mcp.skills.list",
context,
fn: async () =>
new SkillService(prisma).list({
projectId: context.projectId,
input,
}),
}),
readOnlyHint: true,
});