@@ -20,7 +20,7 @@ import { disconnect } from './mcp/connection'
2020import { loadConfig } from './mcp/init'
2121import { loadLlmFile } from './mcp/config'
2222import { unpackDxt , getManifest } from './mcp/dxt'
23- import { DxtManifest } from '@anthropic-ai/dxt '
23+ import { McpbManifest } from '@anthropic-ai/mcpb '
2424
2525import { closeCommandPicker } from './aid/commands'
2626
@@ -31,7 +31,7 @@ const handlerRegistry = new Map<string, Function>()
3131
3232interface ManifestResponse {
3333 status : 'success' | 'error'
34- result ?: Record < string , DxtManifest > // Object with string keys and DXT values
34+ result ?: Record < string , McpbManifest > // Object with string keys and DXT values
3535 error ?: string
3636}
3737
@@ -53,7 +53,7 @@ export default class IPCs {
5353 } )
5454
5555 ipcMain . handle ( 'msgRequestGetDxtUrl' , ( ) => {
56- return pathToFileURL ( normalize ( resolve ( Constants . ASSETS_PATH . dxt ) ) ) . toString ( )
56+ return pathToFileURL ( normalize ( resolve ( Constants . ASSETS_PATH . mcpb ) ) ) . toString ( )
5757 } )
5858
5959 ipcMain . handle ( 'msgMcpServersStop' , async ( ) => {
@@ -111,7 +111,7 @@ export default class IPCs {
111111 } )
112112
113113 ipcMain . on ( 'msgOpenDxtFilePath' , async ( event : IpcMainEvent , name : string ) => {
114- shell . openPath ( resolve ( join ( Constants . ASSETS_PATH . dxt , name ) ) )
114+ shell . openPath ( resolve ( join ( Constants . ASSETS_PATH . mcpb , name ) ) )
115115 } )
116116
117117 ipcMain . on ( 'msgOpenPath' , async ( event : IpcMainEvent , name : string ) => {
@@ -185,12 +185,12 @@ export default class IPCs {
185185 try {
186186 const buffer = Buffer . from ( data )
187187 const saveOption = Constants . getDxtSource ( name )
188- const filePath = saveOption . dxtPath
188+ const filePath = saveOption . mcpbPath
189189 const dirPath = saveOption . outputDir
190190 if ( ! existsSync ( dirPath ) ) {
191191 mkdirSync ( dirPath , { recursive : true } )
192192 }
193- console . log ( 'DXT to be saved in: ' , filePath )
193+ console . log ( 'MCP bundle to be saved in: ' , filePath )
194194
195195 writeFileSync ( filePath , buffer , { encoding : null } )
196196
@@ -211,18 +211,18 @@ export default class IPCs {
211211 } )
212212
213213 ipcMain . handle ( 'list-manifests' , async ( _event : IpcMainEvent ) : Promise < ManifestResponse > => {
214- const dxtPath = Constants . ASSETS_PATH . dxt
214+ const mcpbPath = Constants . ASSETS_PATH . mcpb
215215
216216 try {
217- const entries = readdirSync ( dxtPath , { withFileTypes : true } )
217+ const entries = readdirSync ( mcpbPath , { withFileTypes : true } )
218218 console . log ( entries )
219219
220220 // Transform the array into an object
221221 const manifestsObject = entries
222222 . filter ( ( dirent ) => dirent . isDirectory ( ) )
223223 . reduce (
224224 ( acc , dirent ) => {
225- acc [ dirent . name ] = getManifest ( join ( dxtPath , dirent . name ) )
225+ acc [ dirent . name ] = getManifest ( join ( mcpbPath , dirent . name ) )
226226 return acc
227227 } ,
228228 { } as Record < string , any >
0 commit comments