chore(release): unify all versions to v2.6.1 with single-source APP_VERSION

This commit is contained in:
Amirul Islam Redwan71
2026-11-13 01:32:48 +06:00
parent 5e552ee743
commit e6c63ce9fa
26 changed files with 108 additions and 58 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
import { McpToolError, wrapError, wrapSuccess } from "./envelope.js";
import { APP_VERSION } from "./version.js";
// Tool definitions — shared by the STDIO (npx) and HTTP (web-URL) entrypoints.
export const TOOLS = [
{
@@ -329,7 +330,7 @@ export async function executeToolCall(registry, name, args = {}, tenantId = "def
* for HTTP it is built per-request from that client's keys.
*/
export function buildMcpServer(registry, authChecker, tenantId = "default") {
const server = new Server({ name: "aura-courier-mcp", version: "2.6.0" }, { capabilities: { tools: {} } });
const server = new Server({ name: "aura-courier-mcp", version: APP_VERSION }, { capabilities: { tools: {} } });
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS }));
server.setRequestHandler(CallToolRequestSchema, async (request) => {
const { name, arguments: args } = request.params;