Skip to main content
Glama

speckit_constitution

Establish project principles and foundational guidelines using guided prompts to define core values and constraints for project specifications.

Instructions

Establish project principles using spec-kit

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the logic for the 'speckit_constitution' tool. It returns a standardized message prompting the model to read or create the 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)
    Registration of the 'speckit_constitution' tool in the ListToolsRequestSchema handler, including name, description, and empty input schema.
    { name: "speckit_constitution", description: "Establish project principles using spec-kit", inputSchema: { type: "object", properties: {}, }, },
  • Dispatch case in the CallToolRequestSchema handler that routes the tool call to the handleConstitution method.
    case "speckit_constitution": result = await this.handleConstitution(commandsPath); break;
  • Input schema definition for the 'speckit_constitution' tool, which accepts no parameters.
    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