Compare commits

...

3 Commits

Author SHA1 Message Date
f8b1444afd [main] fix: description null error handling
📝 Details:
- GitLab issues/milestones의 null description 처리
- schemas.ts에서 description을 nullable로 변경
2025-05-27 12:25:31 +09:00
06f9437329 Merge pull request #53 from zereight/fix/51-description-nullable
FIX: description null error
2025-05-27 12:20:39 +09:00
dc99f864ca FIX: description null error 2025-05-27 02:00:36 +09:00
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,14 @@
## [1.0.46] - 2025-05-27
### Fixed
- Fixed issue where GitLab issues and milestones with null descriptions would cause JSON-RPC errors
- Changed `description` field to be nullable with default empty string in schemas
- This allows proper handling of GitLab issues/milestones without descriptions
- See: [PR #53](https://github.com/zereight/gitlab-mcp/pull/53), [Issue #51](https://github.com/zereight/gitlab-mcp/issues/51)
---
## [1.0.45] - 2025-05-24 ## [1.0.45] - 2025-05-24
### Added ### Added

View File

@ -1,6 +1,6 @@
{ {
"name": "@zereight/mcp-gitlab", "name": "@zereight/mcp-gitlab",
"version": "1.0.45", "version": "1.0.46",
"description": "MCP server for using the GitLab API", "description": "MCP server for using the GitLab API",
"license": "MIT", "license": "MIT",
"author": "zereight", "author": "zereight",

View File

@ -407,7 +407,7 @@ export const GitLabMilestoneSchema = z.object({
id: z.number(), id: z.number(),
iid: z.number(), // Added to match GitLab API iid: z.number(), // Added to match GitLab API
title: z.string(), title: z.string(),
description: z.string(), description: z.string().nullable().default(""),
state: z.string(), state: z.string(),
web_url: z.string(), // Changed from html_url to match GitLab API web_url: z.string(), // Changed from html_url to match GitLab API
}); });
@ -417,7 +417,7 @@ export const GitLabIssueSchema = z.object({
iid: z.number(), // Added to match GitLab API iid: z.number(), // Added to match GitLab API
project_id: z.number(), // Added to match GitLab API project_id: z.number(), // Added to match GitLab API
title: z.string(), title: z.string(),
description: z.string(), // Changed from body to match GitLab API description: z.string().nullable().default(""), // Changed from body to match GitLab API
state: z.string(), state: z.string(),
author: GitLabUserSchema, author: GitLabUserSchema,
assignees: z.array(GitLabUserSchema), assignees: z.array(GitLabUserSchema),