basic-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Host/interface to listen on for HTTP mode. Defaults to loopback (127.0.0.1). | 127.0.0.1 |
| MCP_PORT | No | Port for HTTP mode. Default is 3000. | 3000 |
| MCP_DB_PATH | No | Path to the SQLite database file. Default is `data/tasks.db`. | data/tasks.db |
| MCP_ALLOWED_HOSTS | No | Comma-separated list of allowed Host header hostnames (without scheme and port). Required when MCP_HOST is set to a non-loopback interface. | |
| MCP_ALLOWED_ORIGINS | No | Comma-separated list of allowed Origin hostnames (without scheme and port). Required when MCP_HOST is set to a non-loopback interface. | |
| MCP_AUTH_TOKENS_JSON | No | JSON object mapping user IDs to Bearer tokens for HTTP authentication, e.g. `{"alice":"alice-token"}`. Required for Streamable HTTP mode. | |
| REQUEST_STATE_SECRET | No | Secret used to sign requestState in the delete confirmation flow. Must be at least 32 bytes. If not set, a temporary random key is generated (not suitable for multi-process deployments). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This is a demonstration MCP server. Use task tools to create, list, complete, or delete persistent tasks; use resources for read-only context and prompts for reusable task templates.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": true,
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| addA | Add two finite numbers and return both text and structured output. |
| echoA | Return text unchanged or transformed to upper/lower case. |
| current-timeA | Return the current time in an IANA time zone. |
| multiplyA | 计算两个有限数字的乘积,返回结构化结果 |
| process_stepsA | Run a small staged operation that demonstrates MCP progress notifications and cancellation. |
| create_taskC | Create and persist a new task. |
| list_tasksA | List all persisted tasks. |
| complete_taskB | Mark a persisted task as completed. |
| delete_taskA | Permanently delete a task after explicit user confirmation. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| summarize-text | Create a reusable instruction for summarizing supplied text. |
| review-code | Create a structured code-review request. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| task-board | A read-only snapshot of all persisted tasks. |
| about | Server metadata and a summary of the exposed MCP primitives. |
| World greeting | A dynamic text resource addressed by name. |
| MCP greeting | A dynamic text resource addressed by name. |
TDQS
Scored across 9 tools
The task lifecycle tools (create/list/complete/delete) have crisp, non-overlapping boundaries, and add vs multiply vs current-time are each clearly distinct. The only soft spot is process_steps, a vague demo utility whose purpose ('staged operation with progress notifications') doesn't map to an obvious user intent and could be confused with echo as a generic test tool.
Three conventions coexist: bare verbs (add, echo, multiply), a kebab-case noun (current-time), and snake_case verb_noun for the task group (create_task, list_tasks, complete_task, delete_task). The task cluster is internally consistent, but the set as a whole mixes styles and verb patterns without a predictable rule.
Nine tools is well within a sensible range and the task CRUD group clearly earns its place. The math/echo/time/process_steps tools are demonstrative filler, but reasonable for what appears to be a reference/demo server.
The task entity supports create, list, complete, and delete, but there is no get-by-id and no general update (rename, edit description, reopen), so an agent cannot correct or inspect a single task beyond the list snapshot. The utility tools are individually complete but don't form a domain with coverage requirements.