test-connection
Verify and validate PostGIS database connectivity through the Model Context Protocol (MCP) server, ensuring spatial database functionality is operational and ready for use.
Instructions
PostGIS veritabanı bağlantısını test et
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:239-249 (handler)The handler implementation for the 'test-connection' tool. It executes a SQL query to retrieve the PostGIS version and returns a success message with the version information.case "test-connection": { const result = yield client.query("SELECT PostGIS_Version() as version"); return { content: [ { type: "text", text: `PostGIS bağlantısı başarılı! Versiyon: ${result.rows[0].version}`, }, ], }; }
- server.js:73-80 (registration)The registration of the 'test-connection' tool in the ListTools response, including its name, description, and empty input schema.{ name: "test-connection", description: "PostGIS veritabanı bağlantısını test et", inputSchema: { type: "object", properties: {}, }, },
- server.js:76-79 (schema)The input schema definition for the 'test-connection' tool, which is an empty object indicating no parameters are required.inputSchema: { type: "object", properties: {}, },