docs(product): update user docs to skills-first and current MCP tools
This commit is contained in:
+46
-176
@@ -1,203 +1,75 @@
|
||||
# Tools & Guides
|
||||
# Tools & Skills
|
||||
|
||||
> MCP tools for external agents and the guides system for context sharing.
|
||||
> MCP tools for graph operations and skills for procedural guidance.
|
||||
|
||||
**How it works:** RA-OS exposes tools via MCP that external AI agents can call to read, create, and update your knowledge graph. Guides are markdown documents that help external agents understand your knowledge base.
|
||||
**How it works:** External agents call MCP tools to read and write your graph. For complex tasks, they read skills (`listSkills`/`readSkill`) to follow your preferred operating patterns.
|
||||
|
||||
---
|
||||
|
||||
## MCP Tools
|
||||
|
||||
RA-OS provides 14 MCP tools for external agents:
|
||||
RA-OS exposes these core standalone MCP tools:
|
||||
|
||||
### Node Operations
|
||||
### Context + Graph
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `rah_add_node` | Create a new knowledge node |
|
||||
| `rah_search_nodes` | Search nodes by title, content, or dimensions |
|
||||
| `rah_update_node` | Update an existing node |
|
||||
| `rah_get_nodes` | Get nodes by ID array |
|
||||
| `getContext` | Graph overview: stats, hub nodes, dimensions, recent activity, skills |
|
||||
| `queryNodes` | Search nodes by keyword/dimensions/date |
|
||||
| `getNodesById` | Fetch full nodes by ID |
|
||||
| `createNode` | Create a node |
|
||||
| `updateNode` | Update a node |
|
||||
| `createEdge` | Create an edge between nodes |
|
||||
| `queryEdge` | Query edges |
|
||||
| `updateEdge` | Update edge explanation |
|
||||
| `queryDimensions` | List dimensions |
|
||||
| `createDimension` | Create a dimension |
|
||||
| `updateDimension` | Update/rename a dimension |
|
||||
| `deleteDimension` | Delete a dimension |
|
||||
|
||||
### Edge Operations
|
||||
### Skills + Search
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `rah_create_edge` | Create relationship between nodes |
|
||||
| `rah_query_edges` | Query existing edges |
|
||||
| `rah_update_edge` | Update edge metadata |
|
||||
|
||||
### Dimension Operations
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `rah_create_dimension` | Create a new dimension tag |
|
||||
| `rah_update_dimension` | Update dimension description |
|
||||
| `rah_delete_dimension` | Delete a dimension |
|
||||
|
||||
### Search
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `rah_search_embeddings` | Semantic search across chunk embeddings |
|
||||
|
||||
### Guides
|
||||
|
||||
| Tool | Description |
|
||||
|------|-------------|
|
||||
| `rah_list_guides` | List all available guides |
|
||||
| `rah_read_guide` | Read a specific guide's content |
|
||||
| `rah_write_guide` | Create or update a guide |
|
||||
| `listSkills` | List available skills |
|
||||
| `readSkill` | Read one skill |
|
||||
| `writeSkill` | Create/update a skill |
|
||||
| `deleteSkill` | Delete a skill |
|
||||
| `searchContentEmbeddings` | Search source chunks/transcripts |
|
||||
| `sqliteQuery` | Read-only SQL (`SELECT`, `WITH`, `PRAGMA`) |
|
||||
|
||||
---
|
||||
|
||||
## Tool Schemas
|
||||
## Skills
|
||||
|
||||
### rah_add_node
|
||||
Skills are markdown instructions stored locally and shared across internal + external agents.
|
||||
|
||||
```typescript
|
||||
{
|
||||
title: string, // Required
|
||||
content?: string,
|
||||
description?: string,
|
||||
dimensions?: string[],
|
||||
link?: string,
|
||||
metadata?: object
|
||||
}
|
||||
```
|
||||
### Default seeded skills
|
||||
|
||||
### rah_search_nodes
|
||||
- `db-operations`
|
||||
- `create-skill`
|
||||
- `audit`
|
||||
- `traverse`
|
||||
- `onboarding`
|
||||
- `persona`
|
||||
- `calibration`
|
||||
- `connect`
|
||||
|
||||
```typescript
|
||||
{
|
||||
search?: string, // Full-text search
|
||||
dimensions?: string[],// Filter by dimensions
|
||||
limit?: number // Max results (default: 20)
|
||||
}
|
||||
```
|
||||
### Storage
|
||||
|
||||
### rah_update_node
|
||||
|
||||
```typescript
|
||||
{
|
||||
id: number, // Node ID
|
||||
title?: string,
|
||||
content?: string, // Replaces existing content
|
||||
description?: string,
|
||||
dimensions?: string[],
|
||||
link?: string,
|
||||
metadata?: object
|
||||
}
|
||||
```
|
||||
|
||||
### rah_create_edge
|
||||
|
||||
```typescript
|
||||
{
|
||||
from_node_id: number,
|
||||
to_node_id: number,
|
||||
context?: string // Relationship description
|
||||
}
|
||||
```
|
||||
|
||||
### rah_search_embeddings
|
||||
|
||||
```typescript
|
||||
{
|
||||
query: string, // Search query
|
||||
node_id?: number, // Scope to specific node
|
||||
limit?: number, // Max results
|
||||
threshold?: number // Similarity threshold (0-1)
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Guides
|
||||
|
||||
Guides are markdown documents stored in `src/config/guides/` that help external AI agents understand your knowledge base context, conventions, and usage patterns.
|
||||
|
||||
### Why Guides?
|
||||
|
||||
When an external agent (like Claude Code) connects to RA-H via MCP, it has access to tools but lacks context about:
|
||||
- How your knowledge base is organized
|
||||
- What dimensions mean in your system
|
||||
- Best practices for creating/linking nodes
|
||||
- Your specific workflows and conventions
|
||||
|
||||
Guides bridge this gap by providing structured documentation that agents can read.
|
||||
|
||||
### Managing Guides
|
||||
|
||||
**Via UI:**
|
||||
1. Open Settings (gear icon)
|
||||
2. Click the "Guides" tab
|
||||
3. Create, edit, or delete guides
|
||||
|
||||
**Via Pane:**
|
||||
- Click the Guides icon in the left toolbar
|
||||
- Browse and read guides directly
|
||||
|
||||
### Built-in Guides
|
||||
|
||||
| Guide | Purpose |
|
||||
|-------|---------|
|
||||
| `connect` | How to find and create connections between nodes |
|
||||
| `integrate` | Deep analysis and integration patterns |
|
||||
| `prep` | Preparing content for the knowledge base |
|
||||
| `research` | Research workflow patterns |
|
||||
| `survey` | Survey and discovery patterns |
|
||||
|
||||
### Creating Custom Guides
|
||||
|
||||
Guides use markdown with optional YAML frontmatter:
|
||||
|
||||
```markdown
|
||||
---
|
||||
description: Brief description shown in guide list
|
||||
---
|
||||
|
||||
# Guide Title
|
||||
|
||||
Your guide content here...
|
||||
```
|
||||
- Live skills: `~/Library/Application Support/RA-H/skills/`
|
||||
- Bundled defaults: `src/config/skills/`
|
||||
|
||||
---
|
||||
|
||||
## API Routes
|
||||
|
||||
RA-OS exposes REST APIs that MCP tools call internally:
|
||||
|
||||
| Route | Method | Purpose |
|
||||
|-------|--------|---------|
|
||||
| `/api/nodes` | GET/POST | List/create nodes |
|
||||
| `/api/nodes/[id]` | GET/PUT/DELETE | Node CRUD |
|
||||
| `/api/nodes/search` | POST | Search nodes |
|
||||
| `/api/edges` | GET/POST | List/create edges |
|
||||
| `/api/edges/[id]` | GET/PUT/DELETE | Edge CRUD |
|
||||
| `/api/dimensions` | GET/POST | List/create dimensions |
|
||||
| `/api/dimensions/search` | GET | Search dimensions |
|
||||
| `/api/guides` | GET | List guides |
|
||||
| `/api/guides/[name]` | GET/PUT/DELETE | Guide CRUD |
|
||||
|
||||
---
|
||||
|
||||
## Database Tools (Internal)
|
||||
|
||||
These tools are used by APIs and internal operations:
|
||||
|
||||
| Tool | File | Purpose |
|
||||
|------|------|---------|
|
||||
| `queryNodes` | `src/tools/database/queryNodes.ts` | Search nodes |
|
||||
| `createNode` | `src/tools/database/createNode.ts` | Create node |
|
||||
| `updateNode` | `src/tools/database/updateNode.ts` | Update node |
|
||||
| `deleteNode` | `src/tools/database/deleteNode.ts` | Delete node |
|
||||
| `getNodesById` | `src/tools/database/getNodesById.ts` | Get by ID |
|
||||
| `createEdge` | `src/tools/database/createEdge.ts` | Create edge |
|
||||
| `updateEdge` | `src/tools/database/updateEdge.ts` | Update edge |
|
||||
| `queryEdge` | `src/tools/database/queryEdge.ts` | Query edges |
|
||||
| `queryDimensions` | `src/tools/database/queryDimensions.ts` | Query dimensions |
|
||||
| `searchContentEmbeddings` | `src/tools/other/searchContentEmbeddings.ts` | Semantic search |
|
||||
| `/api/skills` | GET | List skills |
|
||||
| `/api/skills/[name]` | GET/PUT/DELETE | Skill CRUD |
|
||||
| `/api/guides` | GET | Compatibility alias to skills |
|
||||
| `/api/guides/[name]` | GET/PUT/DELETE | Compatibility alias to skills |
|
||||
|
||||
---
|
||||
|
||||
@@ -205,9 +77,7 @@ These tools are used by APIs and internal operations:
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `apps/mcp-server-standalone/` | **Standalone MCP server (recommended)** |
|
||||
| `apps/mcp-server/server.js` | HTTP MCP server (requires app running) |
|
||||
| `apps/mcp-server/stdio-server.js` | STDIO bridge to HTTP server |
|
||||
| `src/tools/infrastructure/registry.ts` | Tool registry |
|
||||
| `src/services/guides/guideService.ts` | Guide management |
|
||||
| `src/config/guides/*.md` | Built-in guides |
|
||||
| `apps/mcp-server-standalone/` | Standalone MCP server (recommended) |
|
||||
| `src/services/skills/skillService.ts` | Skills runtime service |
|
||||
| `src/config/skills/*.md` | Bundled default skills |
|
||||
| `src/components/panes/SkillsPane.tsx` | Skills pane UI |
|
||||
|
||||
Reference in New Issue
Block a user