Skip to main content
Glama

faf_status

Check if a project contains a project.faf file to verify its configuration status for the Grok MCP server.

Instructions

Check if project has project.faf

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual handler implementation for 'faf_status'. It checks for a FAF file in the current working directory and returns its status or preview content.
    private async handleFafStatus(_args: any): Promise<CallToolResult> {  // ✅ FIXED: Prefixed unused args
      // Native implementation - no CLI needed!
      const cwd = this.engineAdapter.getWorkingDirectory();
    
      try {
        const fafResult = await findFafFile(cwd);
    
        if (!fafResult) {
          return {
            content: [{
              type: 'text',
              text: `🤖 Claude FAF Project Status:\n\n❌ No FAF file found in ${cwd}\n💡 Run faf_init to create project.faf`
            }]
          };
        }
    
        const fafContent = fs.readFileSync(fafResult.path, 'utf-8');
        const lines = fafContent.split('\n').slice(0, 20);
    
        return {
          content: [{
            type: 'text',
            text: `🤖 Claude FAF Project Status:\n\n✅ ${fafResult.filename} found in ${cwd}\n\nContent preview:\n${lines.join('\n')}`
          }]
        };
  • Registration point within the tools handler switch statement.
    case 'faf_status':
      return await this.handleFafStatus(args);

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/Wolfe-Jam/grok-faf-mcp'

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