Skip to main content
Glama
ampcome-mcps

Shortcut MCP Server

by ampcome-mcps

get-epic

Retrieve Shortcut epic details using its public ID to access project management information and track progress.

Instructions

Get a Shortcut epic by public ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
epicPublicIdYesThe public ID of the epic to get

Implementation Reference

  • The handler function that executes the 'get-epic' tool logic: fetches the epic using the Shortcut client, checks for existence, and formats the result using base utilities.
    async getEpic(epicPublicId: number) {
    	const epic = await this.client.getEpic(epicPublicId);
    
    	if (!epic) throw new Error(`Failed to retrieve Shortcut epic with public ID: ${epicPublicId}`);
    
    	return this.toResult(
    		`Epic: ${epicPublicId}`,
    		await this.entityWithRelatedEntities(epic, "epic"),
    	);
    }
  • Registers the 'get-epic' MCP tool with the server, including name, description, input schema, and thin wrapper handler delegating to getEpic method.
    server.tool(
    	"get-epic",
    	"Get a Shortcut epic by public ID",
    	{ epicPublicId: z.number().positive().describe("The public ID of the epic to get") },
    	async ({ epicPublicId }) => await tools.getEpic(epicPublicId),
    );
  • Zod schema for the input parameter 'epicPublicId' used in the tool registration.
    { epicPublicId: z.number().positive().describe("The public ID of the epic to get") },

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/ampcome-mcps/shortcut-mcp'

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