a year ago
The MCP server allows users to utilize user-defined and/or local LLMs in Clause Code to handle smaller, straightforward tasks and save tokens.
Example:
```
write a simple rust code for demo
⏺ my-custom-tool:query_local_llm (MCP)(prompt: "Write a simple Rust program that demonstrates basic Rust concepts like variables, functions, structs, and error handling. Make it beginner-friendly and
include comments explaining the code.", system_message: "You are a helpful Rust programming assistant. Generate clean, well-commented code suitable for
beginners.")
⎿ Certainly! Below is a simple Rust program designed to be beginner-friendly. It covers some fundamental concepts in Rust such as variable declaration, function definition, struct creation, and bas
ic error handling.
… +82 lines (ctrl+r to expand)
⏺ Here's a simple Rust demo program:
...
```
Server Config
{
"mcpServers": {
"cc-token-saver": {
"type": "stdio",
"command": "python",
"args": [
"<path>/cc_token_saver_mcp/server.py"
]
}
}
}