Skip to main content
Glama
ilask

Redmine MCP Server for Cline

by ilask

create_issue

Create new issues in Redmine projects to track tasks, bugs, or feature requests through the Cline VS Code extension.

Instructions

Create a new Redmine issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID
subjectYesIssue subject
descriptionYesIssue description

Implementation Reference

  • Main handler for CallToolRequestSchema that implements the logic for the 'create_issue' tool, including validation, API call to Redmine, and response formatting.
    this.server.setRequestHandler(CallToolRequestSchema, async (request) => { if (request.params.name !== 'create_issue') { throw new McpError( ErrorCode.MethodNotFound, `Unknown tool: ${request.params.name}` ); } if (!isValidCreateIssueArgs(request.params.arguments)) { throw new McpError( ErrorCode.InvalidParams, 'Invalid create_issue arguments' ); } const { project_id, subject, description } = request.params.arguments; try { const issue = await new Promise((resolve, reject) => { redmine.create_issue({ project_id: project_id, subject: subject, description: description, }, (err, data) => { if (err) { reject(err); } else { resolve(data); } }); }); return { content: [ { type: 'text', text: JSON.stringify(issue), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Redmine API error: ${error}`, }, ], isError: true, }; } });
  • Input schema definition for the create_issue tool, specifying required parameters and types.
    inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID', }, subject: { type: 'string', description: 'Issue subject', }, description: { type: 'string', description: 'Issue description', }, }, required: ['project_id', 'subject', 'description'], },
  • server.js:122-147 (registration)
    Registration of the create_issue tool in the ListToolsRequestSchema response, including name, description, and schema.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ { name: 'create_issue', description: 'Create a new Redmine issue', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID', }, subject: { type: 'string', description: 'Issue subject', }, description: { type: 'string', description: 'Issue description', }, }, required: ['project_id', 'subject', 'description'], }, }, ], }));
  • Helper function used to validate the arguments passed to the create_issue tool.
    const isValidCreateIssueArgs = ( args ) => typeof args === 'object' && args !== null && typeof args.project_id === 'string' && typeof args.subject === 'string' && typeof args.description === 'string';

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ilask/Redmine-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server