get_server_info
Retrieve server details like version, storage path, and configuration to verify connection, debug issues, or troubleshoot problems with the Knowledge MCP Server.
Instructions
Shows server information including version from package.json.
When to use this tool:
Checking server version and capabilities
Debugging connection issues
Verifying server configuration
Getting storage path information
Troubleshooting problems
Key features:
Returns version information
Shows storage path configuration
Provides server description
Lightweight status check
You should:
Use for initial connection verification
Check when debugging issues
Include in bug reports
Verify server is responding
DO NOT use when:
Need git status (use get_storage_status)
Need to sync storage
Information already known
Returns: {success: bool, name: str, version: str, storage_path: str, description: str}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Asynchronous handler function implementing the core logic for 'get_server_info' tool, returning server configuration details including name, version, storage path, and description.getServerInfoAsync(): Promise<string> { const context = this.createContext('get_server_info', {}); try { const result = { name: SERVER_CONFIG.name, version: SERVER_CONFIG.version, storage_path: STORAGE_PATH, description: 'Knowledge MCP Server - Centralized project knowledge management via Model Context Protocol', }; this.logSuccess('get_server_info', {}, context); return Promise.resolve(this.formatSuccessResponse(result)); } catch (error) { this.logError( 'get_server_info', {}, error instanceof MCPError ? error : String(error), context ); return Promise.resolve(this.formatErrorResponse(error, context)); } }
- src/knowledge-mcp/server.ts:545-563 (registration)Tool registration for 'get_server_info' using McpServer.registerTool, specifying title, description, empty input schema, and handler invocation.server.registerTool( 'get_server_info', { title: 'Get Server Information', description: TOOL_DESCRIPTIONS.get_server_info, inputSchema: {}, }, async () => { const result = await serverHandler.getServerInfoAsync(); return { content: [ { type: 'text', text: result, }, ], }; } );
- Detailed description string for the 'get_server_info' tool used in the tool schema registration, including usage guidelines and expected return format.get_server_info: `Shows server information including version from package.json. When to use this tool: - Checking server version and capabilities - Debugging connection issues - Verifying server configuration - Getting storage path information - Troubleshooting problems Key features: - Returns version information - Shows storage path configuration - Provides server description - Lightweight status check You should: 1. Use for initial connection verification 2. Check when debugging issues 3. Include in bug reports 4. Verify server is responding DO NOT use when: - Need git status (use get_storage_status) - Need to sync storage - Information already known Returns: {success: bool, name: str, version: str, storage_path: str, description: str}`,