From d6beec97e228f46eb4b1c1687e81d1f2fb11277b Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 20 Mar 2026 10:57:38 +0100 Subject: [PATCH 1/2] fix: improve mcp context size --- src/mcp/mcp-server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcp/mcp-server.ts b/src/mcp/mcp-server.ts index f824663..f212220 100644 --- a/src/mcp/mcp-server.ts +++ b/src/mcp/mcp-server.ts @@ -1,7 +1,7 @@ import { Hono } from 'hono'; import { getRequestListener } from '@hono/node-server'; +import type { IncomingMessage, Server as HttpServer, ServerResponse } from 'node:http'; import { createServer } from 'node:http'; -import type { Server as HttpServer, IncomingMessage, ServerResponse } from 'node:http'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js'; import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js'; @@ -181,7 +181,7 @@ export class BridgeMcpServer { content: [ { type: 'text' as const, - text: typeof result === 'string' ? result : JSON.stringify(result, null, 2), + text: typeof result === 'string' ? result : JSON.stringify(result), }, ], }; From b50508489f8685477b1100f73baf4230342d4c8c Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 20 Mar 2026 10:59:22 +0100 Subject: [PATCH 2/2] fix fmt --- CHANGELOG.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4acbb0c..07b21bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,15 +2,13 @@ ## [0.2.0](https://github.com/gorules/cli/compare/cli-v0.1.0...cli-v0.2.0) (2026-03-01) - ### Features -* add release process ([626d0ec](https://github.com/gorules/cli/commit/626d0ece3e3bc65ff9f2c522eb4fb9da6eb16a0a)) - +- add release process ([626d0ec](https://github.com/gorules/cli/commit/626d0ece3e3bc65ff9f2c522eb4fb9da6eb16a0a)) ### Bug Fixes -* improve mcp instructions ([808aee8](https://github.com/gorules/cli/commit/808aee8cfebaf6c4f88bda8fa28e87aac50f8022)) -* lint and workflow ([0f7e069](https://github.com/gorules/cli/commit/0f7e06912ee52f088f060f20f3460089d1a5b892)) -* missing format cmd ([#2](https://github.com/gorules/cli/issues/2)) ([5bfbd66](https://github.com/gorules/cli/commit/5bfbd6662e01fc83ea642c2de71672a567c224b2)) -* release workflow ([834e60f](https://github.com/gorules/cli/commit/834e60fdbac3a5ba9ca421d401935cf967e3f643)) +- improve mcp instructions ([808aee8](https://github.com/gorules/cli/commit/808aee8cfebaf6c4f88bda8fa28e87aac50f8022)) +- lint and workflow ([0f7e069](https://github.com/gorules/cli/commit/0f7e06912ee52f088f060f20f3460089d1a5b892)) +- missing format cmd ([#2](https://github.com/gorules/cli/issues/2)) ([5bfbd66](https://github.com/gorules/cli/commit/5bfbd6662e01fc83ea642c2de71672a567c224b2)) +- release workflow ([834e60f](https://github.com/gorules/cli/commit/834e60fdbac3a5ba9ca421d401935cf967e3f643))