Tribal Knowledge Service

MIT License
2
  • Apple

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoFastAPI server port8000
API_KEYNoAuthentication key for the APIdev-api-key
MCP_HOSTNoHost to bind to0.0.0.0
MCP_PORTNoMCP server port5000
SECRET_KEYNoJWT signing keyinsecure-dev-key-change-in-production
MCP_API_URLNoFastAPI server URLhttp://localhost:8000
REQUIRE_AUTHNoAuthentication requirementfalse
AWS_S3_BUCKETNoAWS S3 bucket name for AWS integration
AWS_ACCESS_KEY_IDNoAWS access key ID for AWS integration
PERSIST_DIRECTORYNoChromaDB storage path./chroma_db
AWS_SECRET_ACCESS_KEYNoAWS secret access key for AWS integration

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Tribal System Instructions

Tools

Functions exposed to the LLM to take actions

NameDescription
track_error
Track an error and its solution in the knowledge base. Args: error_type: Type of error (e.g., ImportError, TypeError) error_message: The error message language: Programming language (e.g., python, javascript) framework: Framework used (e.g., fastapi, react) code_snippet: The code that caused the error task_description: What the user was trying to accomplish solution_description: Brief description of the solution solution_code_fix: Code that fixes the error solution_explanation: Detailed explanation of why the solution works solution_references: List of reference links Returns: The created error record
find_similar_errors
Find errors similar to the given query. Args: query: Text to search for in the knowledge base max_results: Maximum number of results to return Returns: List of similar error records
search_errors
Search for errors in the knowledge base. Args: error_type: Type of error to filter by language: Programming language to filter by framework: Framework to filter by error_message: Error message to search for code_snippet: Code snippet to search for task_description: Task description to search for max_results: Maximum number of results to return Returns: List of matching error records
get_error_by_id
Get an error record by its ID. Args: error_id: UUID of the error record Returns: The error record or None if not found
delete_error
Delete an error record. Args: error_id: UUID of the error record Returns: True if deleted, False if not found
get_api_status
Check the API status. Returns: API status information
ID: zo517uh6mq