mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 08:03:26 +02:00
[WIP] Refactor everything server to be more modular and use recommended APIs.
* Updated architecture.md
This commit is contained in:
@@ -90,6 +90,7 @@ At `src/everything`:
|
||||
- tools/
|
||||
|
||||
- index.ts
|
||||
|
||||
- `registerTools(server)` orchestrator; delegates to basic tools and control tools.
|
||||
- add.ts
|
||||
- Registers an `add` tool with a Zod input schema that sums two numbers `a` and `b` and returns the result.
|
||||
@@ -98,7 +99,8 @@ At `src/everything`:
|
||||
- echo.ts
|
||||
- Registers an `echo` tool that takes a message and returns `Echo: {message}`.
|
||||
- get-env.ts
|
||||
- Registers a `get-env` tool that returns the current process environment variables as formatted JSON text; useful for debugging configuration.
|
||||
|
||||
- Registers a `get-env` tool that returns the current process environment variables as formatted JSON text; useful for debugging configuration.
|
||||
|
||||
- get-tiny-image.ts
|
||||
- Registers a `get-tiny-image` tool, which returns a tiny PNG MCP logo as an `image` content item, along with surrounding descriptive `text` items.
|
||||
|
||||
Reference in New Issue
Block a user