@bendyline/gezel-mcp 1.0.6 → 1.1.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.
- package/dist/index.d.ts +18 -3
- package/dist/index.js +22 -6
- package/dist/lint-contracts.js +2 -0
- package/dist/server.js +2138 -1134
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { BranchPrioritizedPulls, PullWithHeadRef, prioritizePullsForCurrentBranc
|
|
|
20
20
|
* whose names come from the applied type's manifest, not from this frozen
|
|
21
21
|
* contract. Registration guards them against colliding with these names.
|
|
22
22
|
*/
|
|
23
|
-
declare const ALWAYS_REGISTERED_TOOLS: readonly ["search_memory", "save_memory", "list_memories", "list_dir", "read_file", "read_files", "stat", "write_file", "append_to_file", "replace_in_file", "replace_lines", "apply_patch", "insert_at_marker", "delete_path", "make_dir", "rename", "copy_artifact_to_workspace", "validate", "npm_install", "list_package_scripts", "run_package_script", "run_npx", "run_nodejs_script", "derive_file", "list_packages", "run_playwright_script", "list_artifacts", "read_artifact", "write_artifact", "grep_artifact", "browser_find_page_element", "list_documents", "read_document", "write_document", "delete_document", "search_documents", "list_gezels", "create_gezel", "list_gilde", "list_project_types", "apply_project_type", "start_project_from_type", "
|
|
23
|
+
declare const ALWAYS_REGISTERED_TOOLS: readonly ["search_memory", "save_memory", "list_memories", "list_dir", "read_file", "read_files", "stat", "write_file", "append_to_file", "replace_in_file", "replace_lines", "apply_patch", "insert_at_marker", "delete_path", "make_dir", "rename", "copy_artifact_to_workspace", "validate", "npm_install", "list_package_scripts", "run_package_script", "run_npx", "run_nodejs_script", "derive_file", "list_packages", "run_playwright_script", "list_artifacts", "read_artifact", "write_artifact", "grep_artifact", "browser_find_page_element", "list_documents", "read_document", "write_document", "delete_document", "search_documents", "list_gezels", "create_gezel", "list_gilde", "list_project_types", "apply_project_type", "start_project_from_type", "export_ai_app", "import_ai_app", "ensure_gezel", "update_gezel", "message_gezel", "ask_gezel", "ask_specialist", "delegate_developer", "consult_developer", "delegate_designer", "consult_designer", "delegate_reviewer", "consult_reviewer", "delegate_planner", "consult_planner", "delegate_researcher", "consult_researcher", "delegate_builder", "consult_builder", "delegate_writer", "consult_writer", "delegate_image_generator", "consult_image_generator", "delegate_voorman", "consult_voorman", "delegate_meester", "consult_meester", "ask_user_question", "list_projects", "start_project", "fetch_repo", "fetch_diff", "update_project", "list_project_gezels", "add_gezel_to_project", "remove_gezel_from_project", "list_suggested_work", "enable_suggested_work", "disable_suggested_work", "list_tasks", "get_task", "create_task", "start_plan", "update_task", "set_outcomes", "verify_outcome", "add_verification_step", "spawn_task_instances", "list_task_children", "set_task_status", "activate_task", "assign_task", "add_task_step", "advance_task_step", "read_task_notes", "write_task_note", "search_history", "search_sessions", "how_do_i", "render_image", "generate_image", "describe_image", "read_image_metadata", "generate_video", "transcribe_audio", "synthesize_speech", "fetch_url", "web_search", "wikipedia_search", "wikipedia_read", "search", "grep_files", "find_files", "diff_files", "read_image_as_base64", "outline_file", "find_symbol", "read_symbol", "find_references", "map_repo", "search_code", "file_review", "list_file_issues", "get_file_issue", "set_file_issue_status", "security_scan", "security_overview", "scan_findings", "map_attack_surface", "list_dependencies", "trace_taint", "search_docs", "read_doc_as_markdown", "search_images", "find_similar_images", "describe_folder", "find_entity", "list_entity_mentions", "list_archive", "extract_archive", "run_git", "list_scripts", "run_installed_script", "get_script_run", "list_craftbooks", "suggest_craftbook", "invoke_craftbook", "import_skill", "craftbook_read", "craftbook_write", "craftbook_add_step", "set_step_deliverable", "craftbook_remove_step", "craftbook_reorder_steps", "craftbook_set_entry", "craftbook_update", "export_task_craftbook", "github_pr_list", "github_pr_view", "github_pr_files", "github_pr_file", "github_pr_diff", "github_pr_comments", "github_pr_comment", "github_pr_create", "github_workflow_runs", "github_check_status"];
|
|
24
24
|
/**
|
|
25
25
|
* Tools registered only when their feature or session-context gate is set
|
|
26
26
|
* in the env. Keep contextual/compatibility tools here so inventory users
|
|
@@ -53,8 +53,8 @@ declare const CONDITIONALLY_REGISTERED_TOOLS: {
|
|
|
53
53
|
readonly modelFacing: false;
|
|
54
54
|
};
|
|
55
55
|
readonly craftbook_update_step: {
|
|
56
|
-
readonly envVar: "
|
|
57
|
-
readonly envValue: "
|
|
56
|
+
readonly envVar: "GEZEL_CRAFTBOOK_STEP_EDITING";
|
|
57
|
+
readonly envValue: "1";
|
|
58
58
|
readonly modelFacing: true;
|
|
59
59
|
};
|
|
60
60
|
readonly request_tool_permission: {
|
|
@@ -62,6 +62,21 @@ declare const CONDITIONALLY_REGISTERED_TOOLS: {
|
|
|
62
62
|
readonly envValue: "1";
|
|
63
63
|
readonly modelFacing: false;
|
|
64
64
|
};
|
|
65
|
+
readonly list_tables: {
|
|
66
|
+
readonly envVar: "GEZEL_TABLES_ENABLED";
|
|
67
|
+
readonly envValue: "1";
|
|
68
|
+
readonly modelFacing: true;
|
|
69
|
+
};
|
|
70
|
+
readonly describe_table: {
|
|
71
|
+
readonly envVar: "GEZEL_TABLES_ENABLED";
|
|
72
|
+
readonly envValue: "1";
|
|
73
|
+
readonly modelFacing: true;
|
|
74
|
+
};
|
|
75
|
+
readonly query_table: {
|
|
76
|
+
readonly envVar: "GEZEL_TABLES_ENABLED";
|
|
77
|
+
readonly envValue: "1";
|
|
78
|
+
readonly modelFacing: true;
|
|
79
|
+
};
|
|
65
80
|
readonly draft_email: {
|
|
66
81
|
readonly envVar: "GEZEL_MAIL_ENABLED";
|
|
67
82
|
readonly envValue: "1";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/tool-inventory.ts
|
|
4
|
+
import { resolveDistributionProfile } from "@bendyline/gezel";
|
|
4
5
|
var ALWAYS_REGISTERED_TOOLS = [
|
|
5
6
|
// Memory
|
|
6
7
|
"search_memory",
|
|
@@ -50,8 +51,8 @@ var ALWAYS_REGISTERED_TOOLS = [
|
|
|
50
51
|
"list_project_types",
|
|
51
52
|
"apply_project_type",
|
|
52
53
|
"start_project_from_type",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
54
|
+
"export_ai_app",
|
|
55
|
+
"import_ai_app",
|
|
55
56
|
"ensure_gezel",
|
|
56
57
|
"update_gezel",
|
|
57
58
|
"message_gezel",
|
|
@@ -131,7 +132,9 @@ var ALWAYS_REGISTERED_TOOLS = [
|
|
|
131
132
|
"fetch_url",
|
|
132
133
|
"web_search",
|
|
133
134
|
"wikipedia_search",
|
|
135
|
+
"wikipedia_read",
|
|
134
136
|
// Search / files
|
|
137
|
+
"search",
|
|
135
138
|
"grep_files",
|
|
136
139
|
"find_files",
|
|
137
140
|
"diff_files",
|
|
@@ -226,11 +229,13 @@ var CONDITIONALLY_REGISTERED_TOOLS = {
|
|
|
226
229
|
modelFacing: false
|
|
227
230
|
},
|
|
228
231
|
// The large surgical-step schema is useful in the explicit craftbook
|
|
229
|
-
// editor, but wasteful on every ordinary
|
|
230
|
-
//
|
|
232
|
+
// editor and in task-scoped plan authoring, but wasteful on every ordinary
|
|
233
|
+
// coordinator turn. The chat manager enables this MCP-side registration
|
|
234
|
+
// for those session types; its exact per-turn allowlist still decides
|
|
235
|
+
// whether the schema reaches the model.
|
|
231
236
|
craftbook_update_step: {
|
|
232
|
-
envVar: "
|
|
233
|
-
envValue: "
|
|
237
|
+
envVar: "GEZEL_CRAFTBOOK_STEP_EDITING",
|
|
238
|
+
envValue: "1",
|
|
234
239
|
modelFacing: true
|
|
235
240
|
},
|
|
236
241
|
request_tool_permission: {
|
|
@@ -238,6 +243,14 @@ var CONDITIONALLY_REGISTERED_TOOLS = {
|
|
|
238
243
|
envValue: "1",
|
|
239
244
|
modelFacing: false
|
|
240
245
|
},
|
|
246
|
+
// Observation-table tools — registered only for projects that actually hold
|
|
247
|
+
// a tabular corpus (the chat manager sets GEZEL_TABLES_ENABLED after a
|
|
248
|
+
// directory probe). The tool listing is injected into every system prompt,
|
|
249
|
+
// so three tools a project can never use are pure prompt cost at depth —
|
|
250
|
+
// and a model that sees a tool tends to reach for it.
|
|
251
|
+
list_tables: { envVar: "GEZEL_TABLES_ENABLED", envValue: "1", modelFacing: true },
|
|
252
|
+
describe_table: { envVar: "GEZEL_TABLES_ENABLED", envValue: "1", modelFacing: true },
|
|
253
|
+
query_table: { envVar: "GEZEL_TABLES_ENABLED", envValue: "1", modelFacing: true },
|
|
241
254
|
// Email write tools — registered only for mail-enabled projects (the chat
|
|
242
255
|
// manager sets GEZEL_MAIL_ENABLED when project.mail is configured).
|
|
243
256
|
draft_email: { envVar: "GEZEL_MAIL_ENABLED", envValue: "1", modelFacing: true },
|
|
@@ -256,6 +269,9 @@ var CONDITIONALLY_REGISTERED_TOOLS = {
|
|
|
256
269
|
modelFacing: true
|
|
257
270
|
}
|
|
258
271
|
};
|
|
272
|
+
var HOST_CALLBACK_TOOLS = Object.freeze(
|
|
273
|
+
/* @__PURE__ */ new Set(["request_tool_permission"])
|
|
274
|
+
);
|
|
259
275
|
var RENAMED_TOOLS = {
|
|
260
276
|
readdir: "list_dir",
|
|
261
277
|
readFile: "read_file",
|
package/dist/lint-contracts.js
CHANGED
|
@@ -16,6 +16,7 @@ async function loadBuiltinToolContracts() {
|
|
|
16
16
|
"GEZEL_MCP_TOOL_NAMING",
|
|
17
17
|
"GEZEL_SCRIPT_TOOLS",
|
|
18
18
|
"GEZEL_CRAFTBOOK_ID",
|
|
19
|
+
"GEZEL_CRAFTBOOK_STEP_EDITING",
|
|
19
20
|
"GEZEL_MAIL_ENABLED",
|
|
20
21
|
"GEZEL_SOCIAL_ENABLED",
|
|
21
22
|
"GEZEL_CONNECTORS_ENABLED",
|
|
@@ -30,6 +31,7 @@ async function loadBuiltinToolContracts() {
|
|
|
30
31
|
delete process.env.GEZEL_MCP_TOOL_NAMING;
|
|
31
32
|
delete process.env.GEZEL_SCRIPT_TOOLS;
|
|
32
33
|
process.env.GEZEL_CRAFTBOOK_ID = "schema-lint-craftbook";
|
|
34
|
+
process.env.GEZEL_CRAFTBOOK_STEP_EDITING = "1";
|
|
33
35
|
process.env.GEZEL_MAIL_ENABLED = "1";
|
|
34
36
|
process.env.GEZEL_SOCIAL_ENABLED = "1";
|
|
35
37
|
process.env.GEZEL_CONNECTORS_ENABLED = "1";
|