Skip to main content
Glama
@clawket/mcp
by clawket

@clawket/mcp

MCP (Model Context Protocol) server for Clawket.

A stdio server that allows LLMs to explore Clawket's RAG repository via pull-based tool_use. It handles exploratory and conditional queries that fixed injection (Push) in the SessionStart hook cannot cover.

Status

Status: Pre-alpha / Scaffolding (CK-299) Spec: Clawket artifact ART-01KPCQ4ZPF0HHJ029WERJAHWD3 Unit: P7 (UNIT-01KPCPQKDW2NQ91BJC6HFN8XQB)

Tools have not been implemented yet. It only responds to stdio handshakes after build.

Installation

It is automatically installed alongside the Clawket CLI (since CK-302).

pnpm install @clawket/mcp   # 단독 사용 시

Execution

Installing the Seungwoo321-clawket plugin will automatically register .mcp.json.

Manual execution

clawket mcp        # CK-302 이후: CLI 서브커맨드
node dist/index.js # 빌드 후 직접 실행

Exposed Tools (Planned)

Tool

Purpose

clawket_search_artifacts

Semantic search for design documents and decisions

clawket_search_tasks

Task search

clawket_find_similar_tasks

Extract similar past tasks + decisions/issues

clawket_get_task_context

Aggregate artifacts, relationships, and comments around a specific task

clawket_get_recent_decisions

Recent decisions (artifact type=decision)

For detailed specifications, refer to artifact ART-01KPCQ4ZPF0HHJ029WERJAHWD3 in the Clawket DB.

Development

pnpm install
pnpm build       # TypeScript → dist/
pnpm dev         # watch 모드

Daemon Connection

  • Default: Read port from ~/.cache/clawket/clawketd.port

  • Override: CLAWKET_DAEMON_URL=http://localhost:PORT environment variable

Architectural Principles

  • Read-only — State changes are the responsibility of the clawket CLI

  • Independent Package — Importing lattice-codex/ code is prohibited; rely only on HTTP API

  • Pull-only — Complements SessionStart injection (Push); duplicate results are marked as _already_injected

License

MIT

Available Tools

5 tools
clawket_find_similar_tasksFind similar Clawket tasksA

특정 Task와 의미적으로 유사한 과거 Task들을 찾습니다. 주로 "이 작업 전에 비슷한 이슈를 해결한 적 있는지?" 확인용. task_id 제공 시: 해당 태스크의 title+body 임베딩으로 KNN 검색. query 제공 시: 자유 쿼리 기반 검색. 결정·이슈 패턴(결정:, Decision:, 이슈:, Issue: 등)을 코멘트에서 추출해 decisions/issues 필드에 포함합니다. 반환: ticket_number, title, status, distance, extracted(decisions, issues). 비슷한 작업 유무만 확인하려면 clawket_search_tasks가 더 가볍습니다.

Inputs: task_id, query, limit, status, +1 more.

clawket_get_recent_decisionsGet recent Clawket decisionsA

최근 결정(Artifact type=decision, scope=rag)을 목록 조회합니다. 세션 시작 시 "지난 회차에서 어떤 결정이 있었지?" 확인용. 자연어 검색이 아닌 타입 기반 필터 — 키워드 탐색은 clawket_search_artifacts를 사용하세요. plan_id 미지정 시 전체 프로젝트의 결정을 최신순으로 반환.

Inputs: plan_id, limit, since_ts.

clawket_get_task_contextGet Clawket task contextA

특정 Task의 주변 맥락(관련 아티팩트, 관계, 코멘트, 이력)을 일괄 조회합니다. "이 티켓이 무슨 배경으로 만들어졌는지" 파악할 때 사용. 기본 include: artifacts, relations. comments/history는 명시적으로 추가. 아티팩트는 scope=rag만 스니펫 반환. 전체 내용은 별도 조회 필요.

Inputs: task_id (required), include.

clawket_search_artifactsSearch Clawket artifactsA

프로젝트의 설계 문서·결정사항·스펙(아티팩트 scope=rag)을 시맨틱/키워드 하이브리드로 검색합니다. 이전 세션의 결정사항을 찾거나, 특정 주제(예: "RAG 청킹 전략", "데몬 포트 설정")의 문서를 탐색할 때 사용하세요. 반환: 제목, 타입, 스니펫(300자), 유사도. 전체 내용이 필요하면 get_task_context 또는 별도 조회를 이용하세요. archive·reference 스코프는 접근 불가 — rag 스코프만 반환합니다.

Inputs: query (required), mode, limit, type_filter, +1 more.

clawket_search_tasksSearch Clawket tasksA

Clawket의 Task(작업 티켓)를 시맨틱/키워드 하이브리드로 검색합니다. 과거에 비슷한 작업을 했는지, 관련 티켓이 있는지 확인할 때 사용하세요. 더 풍부한 패턴/결정 추출이 필요하면 find_similar_tasks를 사용하세요. 반환: ticket_number(CK-xxx), title, status, priority, unit_id, 유사도.

Inputs: query (required), mode, limit, status.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 5 tools

    Disambiguation4/5

    Tools are mostly distinct, with clear descriptions differentiating the two task search tools (find_similar_tasks vs search_tasks) and the two artifact tools (search_artifacts vs get_recent_decisions). However, some overlap exists between search_tasks and find_similar_tasks that could cause confusion if descriptions are not read carefully.

    Naming Consistency5/5

    All tools follow a consistent prefix 'clawket_' with snake_case and verb_noun pattern (find_similar_tasks, get_recent_decisions, get_task_context, search_artifacts, search_tasks). No mixing of conventions.

    Tool Count5/5

    5 tools is a well-scoped set for a retrieval-focused server covering task search, artifact search, context, and decisions. Neither too few nor too many for the domain.

    Completeness4/5

    The tools cover key retrieval needs (search tasks, find similar tasks, search artifacts, get context, list decisions). Minor gaps include the absence of a direct 'get artifact' or 'get task detail' tool, but the descriptions indicate context and snippets are provided, and full content can be obtained separately.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors