Token Optimizer MCP
by Tjpatel16
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PROJECT_ROOT | No | Absolute path to the repository being analyzed. | . |
| MAX_FILE_LINES | No | Hard cap on the number of lines returned by file read tools. | 300 |
| FAISS_INDEX_PATH | No | Absolute path to store the FAISS database when embeddings support is installed. | |
| MAX_OUTPUT_CHARS | No | Global cutoff limit applied to all tool responses. | 8000 |
| MAX_PREVIEW_CHARS | No | Snippet length returned alongside search hits. | 200 |
| MAX_SUMMARY_CHARS | No | Truncation limit for structural file summaries. | 2000 |
| TOKEN_COST_PER_1K | No | Cost in USD of 1,000 input tokens for the model being used, used to calculate monetary savings. | 0.003 |
| EMBEDDING_CHUNK_SIZE | No | Lines per chunk for vectorization when embeddings support is installed. | 50 |
| ENABLE_TOKEN_TRACKING | No | Toggle the persistent token tracker on or off. | true |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed