Updated package.json and ran prettier

This commit is contained in:
cliffhall 2025-12-13 14:33:16 -05:00
commit a235ed8016
9 changed files with 24 additions and 14 deletions

View file

@ -21,16 +21,16 @@
- Handle errors with try/catch blocks and provide clear error messages - Handle errors with try/catch blocks and provide clear error messages
- Use consistent indentation (2 spaces) and trailing commas in multi-line objects - Use consistent indentation (2 spaces) and trailing commas in multi-line objects
- Match existing code style, import order, and module layout in the respective folder. - Match existing code style, import order, and module layout in the respective folder.
- Use camelCase for variables/functions, - Use camelCase for variables/functions,
- Use PascalCase for types/classes, - Use PascalCase for types/classes,
- Use UPPER_CASE for constants - Use UPPER_CASE for constants
- Use kebab-case for file names and registered tools, prompts, and resources. - Use kebab-case for file names and registered tools, prompts, and resources.
- Use verbs for tool names, e.g., `get-annotated-message` instead of `annotated-message` - Use verbs for tool names, e.g., `get-annotated-message` instead of `annotated-message`
## Extending the Server ## Extending the Server
The Everything Server is designed to be extended at well-defined points. The Everything Server is designed to be extended at well-defined points.
See [Extension Points](docs/extension.md) and [Project Structure](docsstructure.md). See [Extension Points](docs/extension.md) and [Project Structure](docsstructure.md).
The server factory is `src/everything/server/index.ts` and registers all features during startup as well as handling post-connection setup. The server factory is `src/everything/server/index.ts` and registers all features during startup as well as handling post-connection setup.
### High-level ### High-level

View file

@ -1,4 +1,5 @@
# Everything Server – Architecture # Everything Server – Architecture
**Architecture **Architecture
| [Project Structure](structure.md) | [Project Structure](structure.md)
| [Startup Process](startup.md) | [Startup Process](startup.md)
@ -12,14 +13,17 @@ It explains how the server starts, how transports are wired, where tools, prompt
## High‑level Overview ## High‑level Overview
### Purpose ### Purpose
A minimal, modular MCP server showcasing core Model Context Protocol features. It exposes simple tools, prompts, and resources, and can be run over multiple transports (STDIO, SSE, and Streamable HTTP). A minimal, modular MCP server showcasing core Model Context Protocol features. It exposes simple tools, prompts, and resources, and can be run over multiple transports (STDIO, SSE, and Streamable HTTP).
### Design ### Design
A small “server factory” constructs the MCP server and registers features.
Transports are separate entry points that create/connect the server and handle network concerns. A small “server factory” constructs the MCP server and registers features.
Transports are separate entry points that create/connect the server and handle network concerns.
Tools, prompts, and resources are organized in their own submodules. Tools, prompts, and resources are organized in their own submodules.
### Multi‑client ### Multi‑client
The server supports multiple concurrent clients. Tracking per session data is demonstrated with The server supports multiple concurrent clients. Tracking per session data is demonstrated with
resource subscriptions and simulated logging. resource subscriptions and simulated logging.

View file

@ -1,4 +1,5 @@
# Everything Server - Extension Points # Everything Server - Extension Points
**[Architecture](architecture.md) **[Architecture](architecture.md)
| [Project Structure](structure.md) | [Project Structure](structure.md)
| [Startup Process](startup.md) | [Startup Process](startup.md)

View file

@ -1,4 +1,5 @@
# Everything Server - Features # Everything Server - Features
**[Architecture](architecture.md) **[Architecture](architecture.md)
| [Project Structure](structure.md) | [Project Structure](structure.md)
| [Startup Process](startup.md) | [Startup Process](startup.md)

View file

@ -1,4 +1,5 @@
# Everything Server - How It Works # Everything Server - How It Works
**[Architecture](architecture.md) **[Architecture](architecture.md)
| [Project Structure](structure.md) | [Project Structure](structure.md)
| [Startup Process](startup.md) | [Startup Process](startup.md)

View file

@ -1,4 +1,5 @@
# Everything Server – LLM Instructions # Everything Server – LLM Instructions
**[Architecture](architecture.md) | [Project Structure](structure.md) | [Startup Process](startup.md) | [Server Features](features.md) | [Extension Points](extension.md) | [How It Works](how-it-works.md)** **[Architecture](architecture.md) | [Project Structure](structure.md) | [Startup Process](startup.md) | [Server Features](features.md) | [Extension Points](extension.md) | [How It Works](how-it-works.md)**
Audience: These instructions are written for an LLM or autonomous agent integrating with the Everything MCP Server. Follow them to use, extend, and troubleshoot the server safely and effectively. Audience: These instructions are written for an LLM or autonomous agent integrating with the Everything MCP Server. Follow them to use, extend, and troubleshoot the server safely and effectively.
@ -10,10 +11,11 @@ Date: 2025-12-13
You are speaking MCP. Always prefer discovering server capabilities dynamically and follow the MCP spec. The Everything server exposes prompts, tools, resources, logging, and subscriptions. It may run over `stdio`, SSE (deprecated), or Streamable HTTP. You are speaking MCP. Always prefer discovering server capabilities dynamically and follow the MCP spec. The Everything server exposes prompts, tools, resources, logging, and subscriptions. It may run over `stdio`, SSE (deprecated), or Streamable HTTP.
Discover features: Discover features:
- Prompts: `prompts/list` → then `prompts/get` with `name` and `arguments`.
- Tools: `tools/list` → then call tools via `tools/call` with validated params. - Prompts: `prompts/list` → then `prompts/get` with `name` and `arguments`.
- Resources: `resources/list` → then `resources/read { uri }`. - Tools: `tools/list` → then call tools via `tools/call` with validated params.
- Logging: `logging/setLevel`set desired log level if supported by your client SDK; otherwise just read logs returned by tool/prompts as content parts. - Resources: `resources/list` → then `resources/read { uri }`.
- Logging: `logging/setLevel`set desired log level if supported by your client SDK; otherwise just read logs returned by tool/prompts as content parts.
Behavioral guidelines: Behavioral guidelines:
@ -21,7 +23,6 @@ Behavioral guidelines:
- Prefer idempotent reads first (resources, prompts) before mutating via tools. - Prefer idempotent reads first (resources, prompts) before mutating via tools.
- If the server provides instructions in the initialize result (this document), follow them over any prior assumptions. - If the server provides instructions in the initialize result (this document), follow them over any prior assumptions.
## Troubleshooting ## Troubleshooting
When things don’t work, follow this checklist before making code changes. When things don’t work, follow this checklist before making code changes.

View file

@ -1,4 +1,5 @@
# Everything Server - Startup Process # Everything Server - Startup Process
**[Architecture](architecture.md) **[Architecture](architecture.md)
| [Project Structure](structure.md) | [Project Structure](structure.md)
| Startup Process | Startup Process

View file

@ -1,4 +1,5 @@
# Everything Server - Project Structure # Everything Server - Project Structure
**[Architecture](architecture.md) **[Architecture](architecture.md)
| Project Structure | Project Structure
| [Startup Process](startup.md) | [Startup Process](startup.md)
@ -68,7 +69,7 @@ src/everything
### `AGENTS.md` ### `AGENTS.md`
- Directions for Agents/LLMs explaining coding guidelines and how to appropriately extend the server. - Directions for Agents/LLMs explaining coding guidelines and how to appropriately extend the server.
### `package.json` ### `package.json`

View file

@ -25,8 +25,8 @@
"start:stdio": "node dist/index.js stdio", "start:stdio": "node dist/index.js stdio",
"start:sse": "node dist/index.js sse", "start:sse": "node dist/index.js sse",
"start:streamableHttp": "node dist/index.js streamableHttp", "start:streamableHttp": "node dist/index.js streamableHttp",
"prettier-fix": "prettier --write .", "prettier:fix": "prettier --write .",
"prettier-check": "prettier --check ." "prettier:check": "prettier --check ."
}, },
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "^1.24.3", "@modelcontextprotocol/sdk": "^1.24.3",