@consilium108/mcp-module-experts 1.0.0 → 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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/src/groups/experts.js +20 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.0 — 2026-11-25
|
|
4
|
+
|
|
5
|
+
<!-- generated by Claude (Opus 5.5), 2026-11-24; Konsilium SDD-CONSILIUM-61 R6 (wave 2 CORE-EXPERTISE) -->
|
|
6
|
+
|
|
7
|
+
- New tool `propose_profile_fact(question_id, url, title?)` (after `get_expert`, as in the in-process MCP): a link that
|
|
8
|
+
literally occurs in an expert's answer is SUGGESTED for that expert's profile — one call of
|
|
9
|
+
`POST /api/projects/:id/tool/propose_profile_fact` (Konsilium server with migration 156). Nothing is published or sent;
|
|
10
|
+
the profile owner decides in the app / bot. Right: `questions:ask` (server scopes; to be listed in `@consilium108/mcp`).
|
|
11
|
+
Description in English only for now (catalogs fall back to it).
|
|
12
|
+
|
|
3
13
|
## 1.0.0 (unreleased)
|
|
4
14
|
|
|
5
15
|
<!-- generated by Claude (Opus 5.5), 2026-11-20; Konsilium #442, SDD flows/sdd-consilium-mcp-modules -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@consilium108/mcp-module-experts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Experts module of the Konsilium MCP (#442): Find experts of the team, ask them, read their answers; open questions; outside experts. Loaded by the host @consilium108/mcp; enabled or disabled per connection by the person.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "NativeMind",
|
package/src/groups/experts.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// handlers use only the host helpers `h` (texts, REST with the caller's credential, forms) — never credentials.
|
|
4
4
|
|
|
5
5
|
/** Tools of `EXPERTS_TOOLS` (the in-process registration order). */
|
|
6
|
-
export const EXPERTS_TOOLS = ['list_experts', 'get_expert', 'suggest_experts', 'ask_expert', 'get_answer', 'withdraw_question', 'edit_question', 'publish_open_question', 'list_open_questions', 'get_open_answers', 'list_questions'];
|
|
6
|
+
export const EXPERTS_TOOLS = ['list_experts', 'get_expert', 'propose_profile_fact', 'suggest_experts', 'ask_expert', 'get_answer', 'withdraw_question', 'edit_question', 'publish_open_question', 'list_open_questions', 'get_open_answers', 'list_questions'];
|
|
7
7
|
|
|
8
8
|
export function registerExpertsTools(server, h) {
|
|
9
9
|
if (h.shape === 'personal') return;
|
|
@@ -38,6 +38,25 @@ export function registerExpertsTools(server, h) {
|
|
|
38
38
|
safe(async ({ expert_id }, ctx) => text(await call(ctx, 'GET', '/api/projects/{id}/experts/{expertId}', { id: P(), expertId: expert_id }))),
|
|
39
39
|
);
|
|
40
40
|
|
|
41
|
+
// 1.1.0 (Konsilium SDD-CONSILIUM-61 R6, wave 2, 2026-11-24): a link from an expert's answer is only SUGGESTED for their
|
|
42
|
+
// profile; the profile owner adds it with ✅ (= server/src/mcp/tools.js propose_profile_fact, one REST call)
|
|
43
|
+
server.registerTool(
|
|
44
|
+
'propose_profile_fact',
|
|
45
|
+
{
|
|
46
|
+
title: 'Suggest a profile link from an answer',
|
|
47
|
+
description:
|
|
48
|
+
'An answer is not the published profile. When an expert\'s answer (question_id) contains a link about them (LinkedIn, GitHub, site, portfolio), ' +
|
|
49
|
+
'suggest adding it to THEIR expert profile. The url must literally occur in the answer. Nothing is published and nobody is messaged: the profile owner ' +
|
|
50
|
+
'sees the suggestion in «Решения» (app) or /decisions (bot) and adds it with ✅ or rejects it; until then get_expert does not show it. Returns status pending.',
|
|
51
|
+
inputSchema: { question_id: z.union([z.number().int(), z.string().max(40)]), url: z.string().min(8).max(500), title: z.string().max(120).optional() },
|
|
52
|
+
annotations: { readOnlyHint: false },
|
|
53
|
+
},
|
|
54
|
+
safe(async ({ question_id, url, title }, ctx) => {
|
|
55
|
+
const r = await call(ctx, 'POST', '/api/projects/{id}/tool/propose_profile_fact', { id: P(), question_id, url, title, ...tool() });
|
|
56
|
+
return r?.fail ? fail(r.fail) : text(r);
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
|
|
41
60
|
server.registerTool(
|
|
42
61
|
'suggest_experts',
|
|
43
62
|
{ title: 'Suggest experts', description: 'Suggest up to 5 experts for a task description (keyword match over areas, role and bio). With `level` (basic | medium | advanced | expert — how deep the answer must be) up to 2 experts from the learning stream of that area may be added, marked `learner: true` (they answer for experience; say so to the user).', inputSchema: { task: z.string(), level: z.enum(['basic', 'medium', 'advanced', 'expert']).optional() }, annotations: ro },
|