Skip to main content
Glama

speckit_constitution

Define project principles and foundational guidelines to establish clear direction and alignment for your team's specifications and workflows.

Instructions

Establish project principles using spec-kit

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic for the 'speckit_constitution' tool. It returns a standardized message prompting the AI to read or create a project constitution file.
    private async handleConstitution(commandsPath: string) { return { messages: [ { role: "user", content: { type: "text", text: `Please read the project constitution at 'commands/speckit.constitution'. [Note that if this file exists, it is generally in the current directory's "./.specify/memory/constitution.md" File] [It's important. You must read it]. If the file is missing or empty, create it with principles focused on code quality, testing standards, user experience consistency, and performance requirements. If it exists, review and use it as the foundation.`, }, }, ], }; }
  • src/index.ts:136-143 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the tool's name, description, and empty input schema.
    { name: "speckit_constitution", description: "Establish project principles using spec-kit", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:200-202 (registration)
    Dispatch case in the CallToolRequestSchema switch statement that routes tool calls to the handleConstitution method.
    case "speckit_constitution": result = await this.handleConstitution(commandsPath); break;
  • Input schema definition for the tool (empty object, no parameters required).
    inputSchema: { type: "object", properties: {}, },

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/anyiba/spec-kit-mcp'

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