Scribe MCP Usage
Navigation (progressive disclosure)
Start here, then open only what you need:
Core Workflow
references/quickstart.md — minimal correct workflow for any session.
references/INDEX.md — how to search fast across references.
references/Operational_Contract.md — full rules, tool signatures, manage_docs schemas.
references/Scribe_Usage.md — canonical tool usage and examples.
Tools
references/manage_docs.md — manage_docs details and examples.
references/read_file.md — read_file modes, scope rules, and examples.
references/logging.md — logging discipline and reasoning block.
Modes & Rules
references/modes.md — project vs sentinel mode rules.
references/doc_naming.md — doc_name vs doc_category rules.
Bridge System (External MCP Integration)
references/bridges/INDEX.md — bridge system overview and navigation.
references/bridges/quickstart.md — get a bridge running in 5 minutes.
references/bridges/manifest.md — YAML manifest schema reference.
references/bridges/plugin.md — BridgePlugin API reference.
references/bridges/hooks.md — hook lifecycle and execution.
references/bridges/permissions.md — permission system and access control.
references/bridges/tools.md — tool wrapping and custom tools.
references/bridges/admin_cli.md — admin CLI commands.
Templates
assets/templates/ — managed doc templates (research/bug/review/agent card/logs).
assets/templates/bridge/ — bridge manifest and plugin templates.
Non-negotiables (short)
- Use MCP tools directly; no manual substitutes.
- Log after meaningful actions with a reasoning block.
- Use
read_file for file contents; avoid shell reads.
- Bridges must implement
on_activate(), on_deactivate(), health_check().
manage_docs Quick Reference
7 Primary Actions
| Action |
Purpose |
Required Params |
create |
Create new doc (research/bug/custom) |
doc_name, metadata.doc_type |
replace_section |
Replace content by section anchor |
doc_name, section, content |
apply_patch |
Apply unified diff patch |
doc_name, edit or patch |
replace_range |
Replace explicit line range |
doc_name, start_line, end_line, content |
replace_text |
Find/replace text pattern |
doc_name, metadata.find, metadata.replace |
append |
Append content to doc/section |
doc_name, content |
status_update |
Update checklist item status |
doc_name, section, metadata |
Global Optional Params
project — cross-project override
dry_run — preview without applying
target_dir — custom target for CREATE
doc_type Values (INSIDE metadata)
custom (default), research, bug, review, agent_card
Create Examples
# Research doc
manage_docs(
action="create",
doc_name="RESEARCH_AUTH_20251119",
metadata={"doc_type": "research", "research_goal": "Analyze auth flow"}
)
# Bug report (doc_name auto-generated)
manage_docs(
action="create",
metadata={
"doc_type": "bug",
"category": "logic",
"slug": "auth_leak",
"severity": "high",
"title": "Auth token not invalidated"
}
)
# Custom doc
manage_docs(
action="create",
doc_name="COORDINATION_PROTOCOL",
metadata={"doc_type": "custom", "body": "# Protocol\n\nContent..."}
)
Edit Examples
# Replace section
manage_docs(
action="replace_section",
doc_name="architecture",
section="problem_statement",
content="## Problem Statement\nNew content here..."
)
# Update checklist
manage_docs(
action="status_update",
doc_name="checklist",
section="phase_1_task_1",
metadata={"status": "done", "proof": "PR #123 merged"}
)
# Append to section
manage_docs(
action="append",
doc_name="architecture",
section="constraints",
content="- New constraint added",
metadata={"position": "inside"}
)
# Replace text (find/replace)
manage_docs(
action="replace_text",
doc_name="architecture",
metadata={"find": "old_term", "replace": "new_term", "replace_all": True}
)
# Replace line range
manage_docs(
action="replace_range",
doc_name="phase_plan",
start_line=45,
end_line=50,
content="New content for these lines"
)
Deprecated Actions (still work, route to create)
create_research_doc → create(metadata={"doc_type": "research"})
create_bug_report → create(metadata={"doc_type": "bug"})
create_doc → create(metadata={"doc_type": "custom"})
Hidden Actions (advanced use)
list_sections, list_checklist_items, normalize_headers, generate_toc, validate_crosslinks, search, batch
1---2name: scribe-mcp-usage3description: Operate the local Scribe MCP tools for logging, project setup, manage_docs workflows, read_file usage, bridge integrations, and sentinel/project mode discipline. Use whenever you need to follow Scribe tool contracts, document management rules, or bridge development.4---5
6# Scribe MCP Usage
7
8## Navigation (progressive disclosure)
9Start here, then open only what you need:
10
11### Core Workflow
12- `references/quickstart.md` — minimal correct workflow for any session.
13- `references/INDEX.md` — how to search fast across references.
14- `references/Operational_Contract.md` — full rules, tool signatures, manage_docs schemas.
15- `references/Scribe_Usage.md` — canonical tool usage and examples.
16
17### Tools
18- `references/manage_docs.md` — manage_docs details and examples.
19- `references/read_file.md` — read_file modes, scope rules, and examples.
20- `references/logging.md` — logging discipline and reasoning block.
21
22### Modes & Rules
23- `references/modes.md` — project vs sentinel mode rules.
24- `references/doc_naming.md` — doc_name vs doc_category rules.
25
26### Bridge System (External MCP Integration)
27- `references/bridges/INDEX.md` — bridge system overview and navigation.
28- `references/bridges/quickstart.md` — get a bridge running in 5 minutes.
29- `references/bridges/manifest.md` — YAML manifest schema reference.
30- `references/bridges/plugin.md` — BridgePlugin API reference.
31- `references/bridges/hooks.md` — hook lifecycle and execution.
32- `references/bridges/permissions.md` — permission system and access control.
33- `references/bridges/tools.md` — tool wrapping and custom tools.
34- `references/bridges/admin_cli.md` — admin CLI commands.
35
36### Templates
37- `assets/templates/` — managed doc templates (research/bug/review/agent card/logs).
38- `assets/templates/bridge/` — bridge manifest and plugin templates.
39
40## Non-negotiables (short)
41- Use MCP tools directly; no manual substitutes.
42- Log after meaningful actions with a reasoning block.
43- Use `read_file` for file contents; avoid shell reads.
44- Bridges must implement `on_activate()`, `on_deactivate()`, `health_check()`.
45
46---
47
48## manage_docs Quick Reference
49
50### 7 Primary Actions
51
52| Action | Purpose | Required Params |
53|--------|---------|-----------------|
54| `create` | Create new doc (research/bug/custom) | `doc_name`, `metadata.doc_type` |
55| `replace_section` | Replace content by section anchor | `doc_name`, `section`, `content` |
56| `apply_patch` | Apply unified diff patch | `doc_name`, `edit` or `patch` |
57| `replace_range` | Replace explicit line range | `doc_name`, `start_line`, `end_line`, `content` |
58| `replace_text` | Find/replace text pattern | `doc_name`, `metadata.find`, `metadata.replace` |
59| `append` | Append content to doc/section | `doc_name`, `content` |
60| `status_update` | Update checklist item status | `doc_name`, `section`, `metadata` |
61
62### Global Optional Params
63- `project` — cross-project override
64- `dry_run` — preview without applying
65- `target_dir` — custom target for CREATE
66
67### doc_type Values (INSIDE metadata)
68`custom` (default), `research`, `bug`, `review`, `agent_card`
69
70### Create Examples
71```python
72# Research doc
73manage_docs(
74 action="create",
75 doc_name="RESEARCH_AUTH_20251119",
76 metadata={"doc_type": "research", "research_goal": "Analyze auth flow"}
77)
78
79# Bug report (doc_name auto-generated)
80manage_docs(
81 action="create",
82 metadata={
83 "doc_type": "bug",
84 "category": "logic",
85 "slug": "auth_leak",
86 "severity": "high",
87 "title": "Auth token not invalidated"
88 }
89)
90
91# Custom doc
92manage_docs(
93 action="create",
94 doc_name="COORDINATION_PROTOCOL",
95 metadata={"doc_type": "custom", "body": "# Protocol\n\nContent..."}
96)
97```
98
99### Edit Examples
100```python
101# Replace section
102manage_docs(
103 action="replace_section",
104 doc_name="architecture",
105 section="problem_statement",
106 content="## Problem Statement\nNew content here..."
107)
108
109# Update checklist
110manage_docs(
111 action="status_update",
112 doc_name="checklist",
113 section="phase_1_task_1",
114 metadata={"status": "done", "proof": "PR #123 merged"}
115)
116
117# Append to section
118manage_docs(
119 action="append",
120 doc_name="architecture",
121 section="constraints",
122 content="- New constraint added",
123 metadata={"position": "inside"}
124)
125
126# Replace text (find/replace)
127manage_docs(
128 action="replace_text",
129 doc_name="architecture",
130 metadata={"find": "old_term", "replace": "new_term", "replace_all": True}
131)
132
133# Replace line range
134manage_docs(
135 action="replace_range",
136 doc_name="phase_plan",
137 start_line=45,
138 end_line=50,
139 content="New content for these lines"
140)
141```
142
143### Deprecated Actions (still work, route to create)
144- `create_research_doc` → `create(metadata={"doc_type": "research"})`
145- `create_bug_report` → `create(metadata={"doc_type": "bug"})`
146- `create_doc` → `create(metadata={"doc_type": "custom"})`
147
148### Hidden Actions (advanced use)
149`list_sections`, `list_checklist_items`, `normalize_headers`, `generate_toc`, `validate_crosslinks`, `search`, `batch`