본문으로 건너뛰기
cccskills
무료GitHub에 공개

bdb-vectorworks-mcp

Utilizes the Vectorworks RAG + MCP server to search and retrieve Python and VectorScript API documentation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구Docker
설치 방법 보기

포함된 파일(1)

  • SKILL.md4.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Vectorworks RAG MCP — Integration and AI Agent Guide

This skill file instructs AI agents on how to utilize the Vectorworks RAG (Retrieval-Augmented Generation) and MCP server. It details documentation searches, VectorScript code generation, and troubleshooting steps.

1. Overview and Pipeline Value

The Vectorworks RAG + MCP Server integrates local Vectorworks Python and VectorScript developer documentation. Using sentence-transformers and a FAISS semantic index, it provides immediate API lookups and code generation recommendations directly to AI models. This avoids syntax hallucinations when generating CAD or BIM layout scripts.

Architecture

  • FastAPI / WebSocket Server: Exposes search routes (/search, /answer) and a WebSocket JSON-RPC 2.0 interface (default port 8765) acting as the MCP endpoint.
  • FAISS Vector Index: Performs local CPU-bound cosine similarity queries against chunked document sources.
  • Dockerized Environment: Package compose wraps the indexer, database, and FastAPI applications.

2. System Instructions

Workflow Priorities

  1. API Validation first: Before generating any VectorScript or Vectorworks Python script, query the RAG database to verify the function signature (e.g. parameter order, return values).
  2. Context boundaries: VectorScript (Pascal-based syntax) and Vectorworks Python have specific execution rules. Explicitly query RAG if you are unsure how attributes or records are handled.
  3. Drafting Verification: Use vw.answer to receive a detailed breakdown with citations. Do not write complex routines without consulting the retrieved document chunks first.

3. Available Tools and API Parameters

The server provides three tools via WebSocket:

ToolParametersDescription
vw.searchquery: string, k?: int (default 6)Returns semantic search hits from the Vectorworks SDK/VectorScript references.
vw.answerquery: string, k?: intReturns a draft explanation or script snippet synthesized from indexed document blocks.
vw.getdoc_id: string, chunk_id: stringRetrieves a specific document chunk to review source context or examples.

4. Code Recipes and Prompt Cookbook

Recipe 1: Retrieve Function Signatures

Find details on drawing a standard rectangle with attributes using VectorScript:

// Tool Call: vw.search
{
  "query": "Rect or CreateRectangle or PushAttrs"
}

// Tool Call: vw.answer
{
  "query": "How do I draw a rectangle in VectorScript and set its fill color?"
}

Recipe 2: VectorScript Structure Example

Consulting a search result from vw.get, construct a standard VectorScript block:

Procedure CreateCustomRect;
VAR
    h : HANDLE;
Begin
    { Draw rectangle }
    Rect(0, 0, 150, 100);
    h := LNewObj;
    
    { Set fill style and color to red }
    SetFPat(h, 1); { Solid fill }
    SetFillBack(h, 65535, 0, 0); { RGB 16-bit color }
    
    ReDraw;
End;
Run(CreateCustomRect);

5. Troubleshooting and Connection Details

Configuration and Setup

  • Web Interface: http://localhost:8000 (FastAPI UI)
  • MCP WebSocket URL: ws://localhost:8765
  • Port Settings:
    • API_PORT (FastAPI): Default 8000
    • MCP_PORT (WebSocket): Default 8765

Connection Verification

Ensure the Docker containers are running and port 8765 is bound:

# Verify WebSocket port
curl http://localhost:8000/search?q=PushAttrs

Rebuilding index

If you update or add new documentation files inside the data/ folder, rebuild the FAISS database index:

docker compose run --rm app python -m app.indexer --rebuild

Common Errors and Fixes

  1. Connection Refused on ws://localhost:8765
    • Cause: The Docker containers are not running, or the app container crashed.
    • Fix: Run docker compose up -d in the vectorworks-mcp directory and inspect container logs via docker compose logs app.
  2. API signature hallucination / Incorrect Pascal syntax
    • Cause: The AI did not consult the RAG database before generating the code block.
    • Fix: Force the agent to run vw.search with the specific function name or topic, then review output references.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when manage multiple local CLI agents via tmux sessions (start/stop/monitor/assign) with cron-friendly scheduling.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hybridlabor-api/aos62026년 10월 16일 업데이트

Use when a hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hybridlabor-api/aos62026년 10월 16일 업데이트

Reference for how BDB structures autonomous software engineering work — the seven-node dispatcher graph (Architect, TechLead, UI/UX, Engineering, Media/EventTech, Reviewer, Shipping) that /startcycle-graph actually runs. Use when you need the high-level lifecycle framing without inventing your own process.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hybridlabor-api/aos62026년 10월 16일 업데이트

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hybridlabor-api/aos62026년 10월 16일 업데이트

Harness patterns for coding agents — memory, permissions, context engineering, delegation, skills, hooks, bootstrap.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hybridlabor-api/aos62026년 10월 16일 업데이트

agenttrail: live map of a multi-agent build in the browser: which plan component is being worked on, by which agent or harness, what is done and what is stuck. Use when a multi-agent pipeline starts (/startcycle, /startcycle-graph, /teamwork-preview) or after a plan-canvas approve, when the user asks to see what the agents are doing ("live map", "build board", "who is running now"), or by yourself whenever a multi-agent run is under way — no user prompt needed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hybridlabor-api/aos62026년 10월 16일 업데이트

hybridlabor-api의 스킬 모두 보기

이 스킬의 문제 신고