@@ -19,7 +19,7 @@ import { type EpicMeMCP } from './index.ts'
1919import { suggestTagsSampling } from './sampling.ts'
2020
2121export async function initializeTools ( agent : EpicMeMCP ) {
22- agent . server . registerTool (
22+ agent . mcp . registerTool (
2323 'create_entry' ,
2424 {
2525 title : 'Create Entry' ,
@@ -58,7 +58,7 @@ export async function initializeTools(agent: EpicMeMCP) {
5858 } ,
5959 )
6060
61- agent . server . registerTool (
61+ agent . mcp . registerTool (
6262 'get_entry' ,
6363 {
6464 title : 'Get Entry' ,
@@ -84,7 +84,7 @@ export async function initializeTools(agent: EpicMeMCP) {
8484 } ,
8585 )
8686
87- agent . server . registerTool (
87+ agent . mcp . registerTool (
8888 'list_entries' ,
8989 {
9090 title : 'List Entries' ,
@@ -110,7 +110,7 @@ export async function initializeTools(agent: EpicMeMCP) {
110110 } ,
111111 )
112112
113- agent . server . registerTool (
113+ agent . mcp . registerTool (
114114 'update_entry' ,
115115 {
116116 title : 'Update Entry' ,
@@ -142,7 +142,7 @@ export async function initializeTools(agent: EpicMeMCP) {
142142 } ,
143143 )
144144
145- agent . server . registerTool (
145+ agent . mcp . registerTool (
146146 'delete_entry' ,
147147 {
148148 title : 'Delete Entry' ,
@@ -193,7 +193,7 @@ export async function initializeTools(agent: EpicMeMCP) {
193193 } ,
194194 )
195195
196- agent . server . registerTool (
196+ agent . mcp . registerTool (
197197 'create_tag' ,
198198 {
199199 title : 'Create Tag' ,
@@ -221,7 +221,7 @@ export async function initializeTools(agent: EpicMeMCP) {
221221 } ,
222222 )
223223
224- agent . server . registerTool (
224+ agent . mcp . registerTool (
225225 'get_tag' ,
226226 {
227227 title : 'Get Tag' ,
@@ -244,7 +244,7 @@ export async function initializeTools(agent: EpicMeMCP) {
244244 } ,
245245 )
246246
247- agent . server . registerTool (
247+ agent . mcp . registerTool (
248248 'list_tags' ,
249249 {
250250 title : 'List Tags' ,
@@ -270,7 +270,7 @@ export async function initializeTools(agent: EpicMeMCP) {
270270 } ,
271271 )
272272
273- agent . server . registerTool (
273+ agent . mcp . registerTool (
274274 'update_tag' ,
275275 {
276276 title : 'Update Tag' ,
@@ -299,7 +299,7 @@ export async function initializeTools(agent: EpicMeMCP) {
299299 } ,
300300 )
301301
302- agent . server . registerTool (
302+ agent . mcp . registerTool (
303303 'delete_tag' ,
304304 {
305305 title : 'Delete Tag' ,
@@ -348,7 +348,7 @@ export async function initializeTools(agent: EpicMeMCP) {
348348 } ,
349349 )
350350
351- agent . server . registerTool (
351+ agent . mcp . registerTool (
352352 'add_tag_to_entry' ,
353353 {
354354 title : 'Add Tag to Entry' ,
@@ -426,12 +426,12 @@ function createTagResourceLink(tag: {
426426}
427427
428428async function elicitConfirmation ( agent : EpicMeMCP , message : string ) {
429- const capabilities = agent . server . server . getClientCapabilities ( )
429+ const capabilities = agent . mcp . server . getClientCapabilities ( )
430430 if ( ! capabilities ?. elicitation ) {
431431 return true
432432 }
433433
434- const result = await agent . server . server . elicitInput ( {
434+ const result = await agent . mcp . server . elicitInput ( {
435435 message,
436436 requestedSchema : {
437437 type : 'object' ,
0 commit comments