@awesomate/hosting-mcp 0.74.0 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: awesomate-onebrain
3
- description: Use the business's 1Brain (Business Blueprint's home for its systems) from Claude Code, its automations and its AI agents. Use when the user mentions 1Brain, Business Blueprint, "our systems", SOPs, policies, procedures, "what's our procedure for", "how do we do X here", "write this up as an SOP", "connect 1Brain", the 1Brain node in n8n, an agent that answers from our procedures, training courses, quizzes, acknowledgements or read markers. Covers connecting 1Brain in the hub, the three ways to use it and when to pick each, and the safety rules. Companion to awesomate-n8n (workflows and agents with the 1Brain node) and awesomate-hosting (the business map). Same connection, same PAT.
3
+ description: Use the business's 1Brain (Business Blueprint's home for its systems) from Claude Code, its automations and its AI agents. Use when the user mentions 1Brain, Business Blueprint, "our systems", SOPs, policies, procedures, "what's our procedure for", "what are the procedures for the X role", "how do we do X here", "write this up as an SOP", "connect 1Brain", 1Brain Departments on the business map, the 1Brain node in n8n, an agent that answers from our procedures, training courses, quizzes, acknowledgements or read markers, onboarding a new starter, or a course for a role. Covers connecting 1Brain in the hub, looking procedures up with awesomate_onebrain, 1Brain on the business map, the other ways to use it and when to pick each, and the safety rules. Companion to awesomate-n8n (workflows and agents with the 1Brain node) and awesomate-hosting (the business map). Same connection, same PAT.
4
4
  ---
5
5
 
6
6
  # 1Brain: the business's systems, from Claude Code
@@ -11,18 +11,18 @@ Most people asking about it are business owners and their teams, not
11
11
  developers. Use plain words: "your procedures in 1Brain", "your systems",
12
12
  never "MCP", "OAuth" or "JSON-RPC" unless they use them first.
13
13
 
14
- **Routing rule:** what 1Brain holds comes from 1Brain itself (its own
15
- connector, or the 1Brain node in a workflow). What Awesomate set up (the
16
- connection, the credential, the feature) comes from the Awesomate tools.
17
- Never answer "what's our procedure for X" from memory or general knowledge.
14
+ **Routing rule:** what 1Brain holds comes from 1Brain itself, read live:
15
+ `awesomate_onebrain` in a chat, the 1Brain node in a workflow, or 1Brain's
16
+ own connector for the rarer writes (2d). Awesomate never keeps a copy. Never
17
+ answer "what's our procedure for X" from memory or general knowledge.
18
18
 
19
19
  ## How 1Brain is organised
20
20
 
21
21
  | 1Brain word | What it is | Watch out for |
22
22
  |---|---|---|
23
23
  | Account (1Brain's code calls it organization) | One business's 1Brain | A person can belong to several. Always name the one you mean |
24
- | Category (some accounts call it "Organization") | A top-level group of departments | Two categories can share a name: pick by id |
25
- | Department | A part of the business, such as Marketing or Finance | Matches a division on the business map |
24
+ | Category (some accounts call it "Organization") | A business: a top-level group of 1Brain Departments | Two categories can share a name: pick by id. On the map, each business is one category |
25
+ | Department | A part of the business, such as Marketing or Finance | Say **"1Brain Department"** where it could be unclear: the business map calls its own top level departments too. Each 1Brain Department sits in one department of the map (`mapDepartmentNo`) |
26
26
  | Folder | A small topical group of pages in a department | Titles are unique within a department |
27
27
  | Page (System, SOP, policy) | One procedure or policy | Has a status: draft, published or for review |
28
28
 
@@ -61,44 +61,78 @@ then **Connect 1Brain**.
61
61
  its permission, so the hub links each 1Brain account's own MCP settings page
62
62
  where they remove it.
63
63
 
64
- You cannot connect 1Brain for them, and no Awesomate tool reads or changes the
65
- connection. Never ask for a 1Brain token or password in chat.
64
+ You cannot connect 1Brain for them. `awesomate_onebrain` `status` says whether
65
+ the person this key belongs to is connected, which 1Brain accounts they
66
+ allowed and whether their credential is in their automations; nothing changes
67
+ the connection from Claude. Never ask for a 1Brain token or password in chat.
66
68
 
67
69
  **Today 1Brain's connection point runs only on 1Brain's development server
68
70
  (`dev.1brain.io`).** `1brain.io` and `staging.1brain.io` do not offer it yet.
69
71
  Until they do, a connection reaches 1Brain's development server, not the
70
72
  1Brain the team signs in to every day. Say so if their pages "are missing".
71
73
 
72
- ## 2. Three ways to use 1Brain, and which to pick
74
+ ## 2. The ways to use 1Brain, and which to pick
73
75
 
74
76
  | They want | Use |
75
77
  |---|---|
76
- | Claude (Claude Code, Claude.ai) to look things up or write in 1Brain, in a chat | **1Brain's own Claude connector** (2a) |
77
- | A workflow step that reads or writes 1Brain: a scheduled report, a form or email turned into an SOP draft, a sync | **The 1Brain node** with the hub-made "1Brain - <person>" credential (2b) |
78
- | An AI agent in their automations that answers from their procedures | **The 1Brain node as an agent tool** (`CUSTOM.oneBrainTool`: Page Search, then Page Get), on the credential of the person the agent answers to (2b) |
79
- | An AI agent that needs every 1Brain action, with no setup in the node | **MCP Client Tool** with n8n's own MCP OAuth2 credential (2c) |
78
+ | Claude to find a procedure, read a page, list a role's systems, place 1Brain Departments on the map, or save a draft procedure | **`awesomate_onebrain`** (2a) |
79
+ | A workflow step that reads or writes 1Brain: a scheduled report, a form or email turned into an SOP draft, a sync | **The 1Brain node** with the hub-made "1Brain - <person>" credential (2c) |
80
+ | An AI agent in their automations that answers from their procedures | **The 1Brain node as an agent tool** (`CUSTOM.oneBrainTool`: Page Search, then Page Get), on the credential of the person the agent answers to (2c) |
81
+ | A 1Brain course for a role or for everyone joining, and starting someone's onboarding | **`awesomate_onebrain`** onboarding actions (5) |
82
+ | Claude doing what `awesomate_onebrain` does not: writing quizzes, acknowledgements, tailoring, publishing | **1Brain's own Claude connector** (2d) |
83
+ | An AI agent that needs every 1Brain action, with no setup in the node | **MCP Client Tool** with n8n's own MCP OAuth2 credential (2e) |
80
84
  | Something done as the business rather than as a person | **Not possible yet.** Every 1Brain connection is a person |
81
85
 
82
- ### 2a. Claude working directly in 1Brain
83
-
84
- 1Brain has its own connector for Claude at `https://dev.1brain.io/mcp`
85
- (the development server, see above). The person adds it themselves:
86
-
87
- - Claude Code: `claude mcp add --transport http onebrain https://dev.1brain.io/mcp`,
88
- then run `/mcp` in Claude Code and sign in to 1Brain.
89
- - Claude.ai: Settings, Connectors, Add custom connector, with that address.
90
-
91
- It signs in as them and asks which 1Brain accounts to allow. The Awesomate MCP
92
- has no 1Brain tool of its own: if 1Brain's tools are not in this session,
93
- never pretend to search 1Brain. Offer to set up the connector, or build a
94
- workflow that does it.
95
-
96
- When 1Brain's tools are in the session: confirm which account first (1Brain's
97
- own instructions ask this too), pass it on every call, search, then read the
98
- page before answering. 1Brain search returns titles only, and ranks loosely,
99
- so read the top few pages, not just the first.
100
-
101
- ### 2b. Workflows and agents: the 1Brain node
86
+ ### 2a. Claude looking things up: `awesomate_onebrain`
87
+
88
+ It reads 1Brain live through the 1Brain login of the person this key belongs
89
+ to, so it sees exactly what they can see. Start with `status`: not connected
90
+ means sending them to Settings, Integrations, 1Brain, and nothing else.
91
+ `business.linked: null` means the map could not be read just now: try again,
92
+ never treat it as unlinked.
93
+
94
+ - **"What are the procedures for the front desk role?"** `awesomate_business_map`
95
+ `roles` for the role's slug, then `systems_for_role` {slug} (each system with its
96
+ link; a folder comes with its pages), then `fetch` {id} the pages that
97
+ answer the question. End with the link to every page used.
98
+ - **"How do we do X?"** `search` {query}, then `fetch` the top few: search
99
+ returns titles only and ranks loosely, so never answer from a title.
100
+ - **Nothing on the role yet?** Say so, then search, and offer to add what fits
101
+ with `link_role` {slug, ids} once they agree.
102
+ - **A new procedure:** write it from their own words, show it, then
103
+ `propose_draft` {departmentId, title, contents}. It is always a draft in
104
+ 1Brain; a person publishes it there. If 1Brain asks for a business
105
+ description or which template to follow, ask them exactly that and call
106
+ again with their answer.
107
+ - **More than one 1Brain account and no category linked:** the tool asks for
108
+ `accountId`; `status` lists the accounts. Ask the user which.
109
+
110
+ ### 2b. 1Brain on the business map
111
+
112
+ - **A category is a business.** The business is linked to one 1Brain
113
+ category; until it is, `departments` answers `not_linked`. `categories` lists
114
+ each 1Brain account the person can see with its categories; ask the owner
115
+ which one is this business (two can share a name, so pick by id), then link
116
+ it with `map` {accountId, categoryId}.
117
+ - **1Brain Departments sit in the map's departments.** `departments` lists each one with
118
+ its map department (`mapDepartmentNo`, 1 to 7) and sub-department (`subDepartmentNo`), suggested
119
+ from its name until someone saves the map. Place one with `map` {projectId, mapDepartmentNo,
120
+ subDepartmentNo?}; `mapDepartmentNo: null` takes
121
+ it off the map. From Claude, a change to the map is a suggestion the owner
122
+ accepts from Tasks: say it is waiting for them, never that it is done.
123
+ - **Each role keeps its 1Brain systems.** `link_role` adds pages or folders (up
124
+ to 10 at a time; a folder brings everything in it) and tags them
125
+ `job:<slug>` in 1Brain so people see it there too. The answer is per id:
126
+ when 1Brain refuses the tag (the person cannot edit that page), the system
127
+ stays on the role and the reason comes back: relay it. When 1Brain stops
128
+ partway (`stopped`: the rate limit, access switched off), what was added
129
+ stays added; ask again later with `retryIds` only, never the whole list. This list is knowledge, what someone in
130
+ the role must know. It grants nobody access to anything.
131
+ - **Taking one off** is done on the map page in the hub. 1Brain cannot remove
132
+ tags over its connection yet, so the tag stays in 1Brain until someone
133
+ removes it there.
134
+
135
+ ### 2c. Workflows and agents: the 1Brain node
102
136
 
103
137
  The node is in the account's n8n as `CUSTOM.oneBrain` (and `CUSTOM.oneBrainTool`
104
138
  for AI agents), on the hub-made credential. Load the **awesomate-n8n** skill and
@@ -106,7 +140,22 @@ read its [references/onebrain.md](../awesomate-n8n/references/onebrain.md) for
106
140
  the operations, the parameters and tested patterns. The node is only on some
107
141
  instances so far: check before designing around it (that reference says how).
108
142
 
109
- ### 2c. The no-code agent route
143
+ ### 2d. 1Brain's own Claude connector
144
+
145
+ For what `awesomate_onebrain` does not do (writing quizzes and acknowledgements,
146
+ sharing a course, tailoring, publishing), 1Brain has its own connector for Claude at
147
+ `https://dev.1brain.io/mcp` (the development server, see above). The person
148
+ adds it themselves:
149
+
150
+ - Claude Code: `claude mcp add --transport http onebrain https://dev.1brain.io/mcp`,
151
+ then run `/mcp` in Claude Code and sign in to 1Brain.
152
+ - Claude.ai: Settings, Connectors, Add custom connector, with that address.
153
+
154
+ It signs in as them and asks which 1Brain accounts to allow. Confirm which
155
+ account first (1Brain's own instructions ask this too) and pass it on every
156
+ call. Never pretend to use a 1Brain tool that is not in the session.
157
+
158
+ ### 2e. The no-code agent route
110
159
 
111
160
  n8n's own **MCP Client Tool** on an AI Agent, with an **MCP OAuth2** credential
112
161
  whose server address is `https://dev.1brain.io/mcp`. The person signs in from
@@ -114,7 +163,7 @@ their n8n. It gives the agent every 1Brain tool with no setup, but each
114
163
  reconnect registers a new 1Brain connection, and the agent can do anything the
115
164
  person can, so give it strict instructions. n8n's own code supports this
116
165
  route, but it has not been run end to end yet: say it is untested and test it
117
- with them before anyone relies on it. Prefer 2b when the agent only needs to
166
+ with them before anyone relies on it. Prefer 2c when the agent only needs to
118
167
  read procedures.
119
168
 
120
169
  ## 3. Rules (every route)
@@ -162,13 +211,40 @@ read procedures.
162
211
  5. Publishing is a separate yes. Policies go to review rather than straight
163
212
  to published.
164
213
 
165
- ## 5. Training: courses, quizzes, acknowledgements
166
-
167
- Owners and admins can list and read courses, quizzes and who passed them,
168
- and acknowledgements (read markers: "I have read and understood this page")
169
- and who completed them; members can read courses. Creating a course
170
- publishes it, so confirm first. A quiz or acknowledgement is added to one
171
- page; confirm by name before deleting one.
214
+ ## 5. Training and onboarding
215
+
216
+ Onboarding is about a person and the roles they are about to hold. Each role
217
+ on the business map can have a **1Brain course**, built from that role's 1Brain
218
+ systems; the business has one **starter course** for anyone joining (culture,
219
+ orientation, policies), built from one 1Brain Department or folder. Courses
220
+ live in 1Brain; the hub keeps their ids, never their content. Read
221
+ `features.onebrain_onboarding` in `awesomate_get_context` first: it can be off
222
+ while 1Brain is on.
223
+
224
+ - **`onboarding`**: each role's course (and whether its 1Brain systems changed
225
+ since it was built), the starter course, who checks training, and each
226
+ person's plan with quizzes passed and acknowledgements done. Owners only.
227
+ - **`build_course`** {slug} or {starter: true, projectId or folder}: builds a
228
+ **published** course in 1Brain on the 1Brain login of the person this key
229
+ belongs to, who must be a 1Brain owner or admin. Say so and confirm before
230
+ building. When the answer is `needsConfirm`, 1Brain found systems with no
231
+ quiz: tell the user which, and that those can only be checked by an
232
+ acknowledgement, or not at all. Build anyway (`confirmMissingQuizzes: true`)
233
+ only on their yes; otherwise offer to write quizzes with 1Brain's own
234
+ connector (2d). Rebuilding makes a new course; the old one stays in 1Brain.
235
+ - **`start_onboarding`** {email, starter?, roles?: [slug or {slug, intent}],
236
+ finishBy?} (`hats` is the old name for `roles`): gives the person a Task per course, linking their own onboarding
237
+ page. Nothing is written in 1Brain: the course must still be shared with
238
+ them there, and someone not yet in the business's 1Brain must be added there.
239
+ - **Readiness grants nothing.** Each morning the hub reads quizzes and
240
+ acknowledgements on one Owner's 1Brain (chosen in the hub, re-checked every
241
+ run). When a person has passed every quiz and done every acknowledgement on
242
+ a course, the hub gives their future manager a Task asking whether to hand
243
+ the role over; the map's own rules decide. Never change the map, or anyone's
244
+ access, because someone is ready, and never show one person's results to
245
+ anyone but the Owners and that person.
246
+ - Writing quizzes and acknowledgements, and sharing a course with a learner,
247
+ are 1Brain's own connector's work (2d), owners and admins only.
172
248
 
173
249
  ## 6. Known gaps (say so plainly)
174
250
 
@@ -176,9 +252,12 @@ page; confirm by name before deleting one.
176
252
  way to list them. Tags can be added, not read back or removed.
177
253
  - **Search cannot filter by tag** (or by department or folder). In a workflow,
178
254
  use the node's Limit to Department or Limit to Folder instead.
179
- - So a hat's procedures linked by its 1Brain tag on the business map
180
- (`job:<slug>`, from `awesomate_business_map`) cannot be fetched by tag yet:
181
- find them by department, folder or search.
255
+ - So the hub keeps each role's list of 1Brain systems itself
256
+ (`awesomate_onebrain` `systems_for_role`), and also writes the `job:<slug>`
257
+ tag. A tag someone added by hand in 1Brain is not on the role's list until it
258
+ is added with `link_role`.
259
+ - Tags cannot be removed over the connection, so taking a system off a role
260
+ leaves its tag in 1Brain.
182
261
  - No deleting or moving pages, folders, departments or categories through any
183
262
  route. That is done in 1Brain itself.
184
263
  - Nothing can run as the business itself: every connection is a person.