@mcpassure/mcp-anvisa-bulario 2.1.3 → 2.1.5
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/server.js +1 -1
- package/dist/tools/shared.d.ts +3 -12
- package/dist/tools/shared.d.ts.map +1 -1
- package/dist/tools/shared.js +18 -9
- package/dist/tools/shared.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -10,7 +10,7 @@ import { registerListarApresentacoes } from "./tools/listar-apresentacoes.js";
|
|
|
10
10
|
export function createServer(repository) {
|
|
11
11
|
const server = new McpServer({
|
|
12
12
|
name: "mcpassure-anvisa-bulario",
|
|
13
|
-
version: "2.1.
|
|
13
|
+
version: "2.1.5",
|
|
14
14
|
});
|
|
15
15
|
registerBuscarPorNome(server, repository);
|
|
16
16
|
registerBuscarPorPrincipioAtivo(server, repository);
|
package/dist/tools/shared.d.ts
CHANGED
|
@@ -27,13 +27,10 @@ export declare function toListResult(output: MedicamentoListaOutput): {
|
|
|
27
27
|
_meta: {
|
|
28
28
|
defasagem_dias: number;
|
|
29
29
|
status: "ok" | "stale";
|
|
30
|
-
terminologia: string;
|
|
31
|
-
versao: string;
|
|
32
30
|
data_da_base: string;
|
|
33
31
|
fonte: string;
|
|
34
|
-
modo:
|
|
32
|
+
modo: "cache_local";
|
|
35
33
|
};
|
|
36
|
-
disclaimer: string;
|
|
37
34
|
};
|
|
38
35
|
};
|
|
39
36
|
export declare function toBulaResult(output: BulaOutput): {
|
|
@@ -61,13 +58,10 @@ export declare function toBulaResult(output: BulaOutput): {
|
|
|
61
58
|
_meta: {
|
|
62
59
|
defasagem_dias: number;
|
|
63
60
|
status: "ok" | "stale";
|
|
64
|
-
terminologia: string;
|
|
65
|
-
versao: string;
|
|
66
61
|
data_da_base: string;
|
|
67
62
|
fonte: string;
|
|
68
|
-
modo:
|
|
63
|
+
modo: "cache_local";
|
|
69
64
|
};
|
|
70
|
-
disclaimer: string;
|
|
71
65
|
};
|
|
72
66
|
};
|
|
73
67
|
export declare function toApresentacoesResult(output: ApresentacoesOutput): {
|
|
@@ -87,13 +81,10 @@ export declare function toApresentacoesResult(output: ApresentacoesOutput): {
|
|
|
87
81
|
_meta: {
|
|
88
82
|
defasagem_dias: number;
|
|
89
83
|
status: "ok" | "stale";
|
|
90
|
-
terminologia: string;
|
|
91
|
-
versao: string;
|
|
92
84
|
data_da_base: string;
|
|
93
85
|
fonte: string;
|
|
94
|
-
modo:
|
|
86
|
+
modo: "cache_local";
|
|
95
87
|
};
|
|
96
|
-
disclaimer: string;
|
|
97
88
|
};
|
|
98
89
|
};
|
|
99
90
|
export declare function toErrorResult(err: unknown): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/tools/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEnG,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAEX,eAAO,MAAM,UAAU,qIACyF,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/tools/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEnG,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAEX,eAAO,MAAM,UAAU,qIACyF,CAAC;AAWjH,wBAAgB,YAAY,CAAC,MAAM,EAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB1D;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9C;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;EAmBhE;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO;;;;;;EAMzC"}
|
package/dist/tools/shared.js
CHANGED
|
@@ -7,13 +7,10 @@ export const TOOL_ANNOTATIONS = {
|
|
|
7
7
|
export const DISCLAIMER = "Dados informativos. Não substitui consulta oficial ANVISA ou avaliação por profissional de saúde habilitado.";
|
|
8
8
|
function buildMeta(data_da_base) {
|
|
9
9
|
return {
|
|
10
|
-
terminologia: "Bulário ANVISA",
|
|
11
|
-
versao: "20260515",
|
|
12
10
|
data_da_base,
|
|
13
11
|
fonte: "ANVISA / dados.anvisa.gov.br",
|
|
14
12
|
defasagem_dias: 0,
|
|
15
13
|
modo: "cache_local",
|
|
16
|
-
status: "ok",
|
|
17
14
|
};
|
|
18
15
|
}
|
|
19
16
|
export function toListResult(output) {
|
|
@@ -25,10 +22,14 @@ export function toListResult(output) {
|
|
|
25
22
|
defasagem_dias: output._meta.defasagem_dias,
|
|
26
23
|
status: output._meta.status ?? "ok",
|
|
27
24
|
},
|
|
28
|
-
disclaimer: DISCLAIMER,
|
|
29
25
|
};
|
|
30
26
|
return {
|
|
31
|
-
content: [
|
|
27
|
+
content: [
|
|
28
|
+
{
|
|
29
|
+
type: "text",
|
|
30
|
+
text: JSON.stringify({ ...structuredContent, disclaimer: DISCLAIMER }, null, 2),
|
|
31
|
+
},
|
|
32
|
+
],
|
|
32
33
|
structuredContent,
|
|
33
34
|
};
|
|
34
35
|
}
|
|
@@ -41,10 +42,14 @@ export function toBulaResult(output) {
|
|
|
41
42
|
defasagem_dias: output._meta.defasagem_dias,
|
|
42
43
|
status: output._meta.status ?? "ok",
|
|
43
44
|
},
|
|
44
|
-
disclaimer: DISCLAIMER,
|
|
45
45
|
};
|
|
46
46
|
return {
|
|
47
|
-
content: [
|
|
47
|
+
content: [
|
|
48
|
+
{
|
|
49
|
+
type: "text",
|
|
50
|
+
text: JSON.stringify({ ...structuredContent, disclaimer: DISCLAIMER }, null, 2),
|
|
51
|
+
},
|
|
52
|
+
],
|
|
48
53
|
structuredContent,
|
|
49
54
|
};
|
|
50
55
|
}
|
|
@@ -57,10 +62,14 @@ export function toApresentacoesResult(output) {
|
|
|
57
62
|
defasagem_dias: output._meta.defasagem_dias,
|
|
58
63
|
status: output._meta.status ?? "ok",
|
|
59
64
|
},
|
|
60
|
-
disclaimer: DISCLAIMER,
|
|
61
65
|
};
|
|
62
66
|
return {
|
|
63
|
-
content: [
|
|
67
|
+
content: [
|
|
68
|
+
{
|
|
69
|
+
type: "text",
|
|
70
|
+
text: JSON.stringify({ ...structuredContent, disclaimer: DISCLAIMER }, null, 2),
|
|
71
|
+
},
|
|
72
|
+
],
|
|
64
73
|
structuredContent,
|
|
65
74
|
};
|
|
66
75
|
}
|
package/dist/tools/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/tools/shared.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,MAAM,CAAC,MAAM,UAAU,GACrB,8GAA8G,CAAC;AAEjH,SAAS,SAAS,CAAC,YAAoB;IACrC,OAAO;QACL,YAAY
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/tools/shared.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,KAAK;CACZ,CAAC;AAEX,MAAM,CAAC,MAAM,UAAU,GACrB,8GAA8G,CAAC;AAEjH,SAAS,SAAS,CAAC,YAAoB;IACrC,OAAO;QACL,YAAY;QACZ,KAAK,EAAE,8BAA8B;QACrC,cAAc,EAAE,CAAC;QACjB,IAAI,EAAE,aAAsB;KAC7B,CAAC;AACJ,CAAC;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