@hiveai/mcp 0.9.9 → 0.9.10
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.
- package/README.md +33 -8
- package/dist/index.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# @hiveai/mcp
|
|
2
2
|
|
|
3
|
-
> **hAIve MCP server** —
|
|
3
|
+
> **hAIve MCP server** — policy-aware briefing and memory tools for MCP-compatible AI coding agents.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The MCP server is how agents load team policy before changing code. By default it exposes a small enforcement-oriented tool surface: briefing, relevant memories, failed-attempt capture, anchor verification, code-map lookup, and pre-commit checks. The larger maintenance surface is still available with `HAIVE_TOOL_PROFILE=full`.
|
|
6
|
+
|
|
7
|
+
hAIve is not just a memory database. The MCP layer participates in enforcement: state-changing hAIve tools require `get_briefing` or `mem_relevant_to` first, so agents cannot silently skip team context while using hAIve.
|
|
6
8
|
|
|
7
9
|
---
|
|
8
10
|
|
|
@@ -30,16 +32,17 @@ npm install -g @hiveai/cli
|
|
|
30
32
|
# 1. Install the CLI
|
|
31
33
|
npm install -g @hiveai/cli
|
|
32
34
|
|
|
33
|
-
# 2. Initialize hAIve in your project (
|
|
35
|
+
# 2. Initialize hAIve in your project (strict enforcement ON by default)
|
|
34
36
|
cd my-project
|
|
35
|
-
haive init #
|
|
37
|
+
haive init # .ai/, policy config, hooks, CI workflow, code-map
|
|
38
|
+
haive enforce install
|
|
36
39
|
# haive init --manual # if you want to approve memories yourself
|
|
37
40
|
|
|
38
41
|
# 3. Point your AI client at the MCP server (see Client configuration below)
|
|
39
42
|
|
|
40
43
|
# 4. Bootstrap project context — run bootstrap_project prompt in your AI client once
|
|
41
44
|
|
|
42
|
-
# 5.
|
|
45
|
+
# 5. Start every substantive task with get_briefing or mem_relevant_to
|
|
43
46
|
```
|
|
44
47
|
|
|
45
48
|
---
|
|
@@ -102,11 +105,33 @@ The project root can also be set via the `HAIVE_PROJECT_ROOT` environment variab
|
|
|
102
105
|
|
|
103
106
|
---
|
|
104
107
|
|
|
105
|
-
## MCP Tools
|
|
108
|
+
## Default MCP Tools
|
|
109
|
+
|
|
110
|
+
By default, hAIve runs with `HAIVE_TOOL_PROFILE=enforcement`. This keeps the agent surface small and aligned with the product promise.
|
|
111
|
+
|
|
112
|
+
Default tools:
|
|
113
|
+
|
|
114
|
+
- `get_briefing`
|
|
115
|
+
- `mem_relevant_to`
|
|
116
|
+
- `mem_save`
|
|
117
|
+
- `mem_tried`
|
|
118
|
+
- `mem_search`
|
|
119
|
+
- `mem_get`
|
|
120
|
+
- `mem_update`
|
|
121
|
+
- `mem_verify`
|
|
122
|
+
- `code_map`
|
|
123
|
+
- `pre_commit_check`
|
|
124
|
+
|
|
125
|
+
Default prompts:
|
|
126
|
+
|
|
127
|
+
- `bootstrap_project`
|
|
128
|
+
- `post_task`
|
|
129
|
+
|
|
130
|
+
Set `HAIVE_TOOL_PROFILE=full` to expose advanced lifecycle, import, timeline, conflict, runtime-journal, and diagnostic tools.
|
|
106
131
|
|
|
107
132
|
### `get_briefing` ⭐ Start every task with this
|
|
108
133
|
|
|
109
|
-
One-shot
|
|
134
|
+
One-shot policy briefing: returns project context + module contexts + ranked decisions, gotchas, failed attempts, stale warnings, and setup warnings under a token budget. This is the first call agents should make before substantive edits.
|
|
110
135
|
|
|
111
136
|
```json
|
|
112
137
|
{
|
|
@@ -148,7 +173,7 @@ One-shot onboarding: returns project context + module contexts + ranked relevant
|
|
|
148
173
|
|
|
149
174
|
### `mem_save`
|
|
150
175
|
|
|
151
|
-
Save a piece of knowledge
|
|
176
|
+
Save a policy-relevant piece of knowledge. For failed approaches, use `mem_tried` immediately so the next agent sees the trap before repeating it.
|
|
152
177
|
|
|
153
178
|
> **Autopilot mode:** memories go directly to `validated` with `team` scope by default. No approval cycle.
|
|
154
179
|
|
package/dist/index.js
CHANGED
|
@@ -3453,7 +3453,7 @@ When done, respond with: "Imported N memories: [list of IDs]" or "Nothing action
|
|
|
3453
3453
|
// src/server.ts
|
|
3454
3454
|
import { loadConfigSync } from "@hiveai/core";
|
|
3455
3455
|
var SERVER_NAME = "haive";
|
|
3456
|
-
var SERVER_VERSION = "0.9.
|
|
3456
|
+
var SERVER_VERSION = "0.9.10";
|
|
3457
3457
|
function jsonResult(data) {
|
|
3458
3458
|
return {
|
|
3459
3459
|
content: [
|
package/dist/server.js
CHANGED
|
@@ -3451,7 +3451,7 @@ When done, respond with: "Imported N memories: [list of IDs]" or "Nothing action
|
|
|
3451
3451
|
// src/server.ts
|
|
3452
3452
|
import { loadConfigSync } from "@hiveai/core";
|
|
3453
3453
|
var SERVER_NAME = "haive";
|
|
3454
|
-
var SERVER_VERSION = "0.9.
|
|
3454
|
+
var SERVER_VERSION = "0.9.10";
|
|
3455
3455
|
function jsonResult(data) {
|
|
3456
3456
|
return {
|
|
3457
3457
|
content: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiveai/mcp",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "hAIve MCP server —
|
|
3
|
+
"version": "0.9.10",
|
|
4
|
+
"description": "hAIve MCP server — policy-aware context and memory tools for AI coding agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"homepage": "https://github.com/Doucs91/hAIve#readme",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"ai",
|
|
15
|
+
"enforcement",
|
|
16
|
+
"policy",
|
|
15
17
|
"memory",
|
|
16
18
|
"mcp",
|
|
17
19
|
"haive",
|
|
@@ -39,10 +41,10 @@
|
|
|
39
41
|
"dependencies": {
|
|
40
42
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
41
43
|
"zod": "^3.23.8",
|
|
42
|
-
"@hiveai/core": "0.9.
|
|
44
|
+
"@hiveai/core": "0.9.10"
|
|
43
45
|
},
|
|
44
46
|
"peerDependencies": {
|
|
45
|
-
"@hiveai/embeddings": "0.9.
|
|
47
|
+
"@hiveai/embeddings": "0.9.10"
|
|
46
48
|
},
|
|
47
49
|
"peerDependenciesMeta": {
|
|
48
50
|
"@hiveai/embeddings": {
|