agentleFS
foursecondfivefourfoursecondfivefour/aether-mcp-server/.github/copilot-instructions.md

aether-mcp-server

Copilot instructions0 starsChanged 5 months agoMITArchived repositoryView on GitHub

This is AETHER_01 — a Windows MCP server in Rust (edition 2021). 10 tools for 99% Windows management over stdio transport. Target: Windows 10/11 x86-64 MSVC only. Build: cargo check (verify) / cargo build (binary). Release profile is hardened with CFG/ASLR/DEP/static CRT.

  • Reads credentials

The file

We split this copilot-instructions.md into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never print to stdout — MCP uses stdout for JSON-RPC exclusively

    line 5
  2. Distinctive:

    Always canonicalize file paths before operations

    line 6
  3. Very specific:

    Always check force: true for dangerous operations

    line 7
  4. Very specific:

    Always audit-log via audit::log_* functions

    line 8
  5. Very specific:

    Never modify mcp.json or .env without explicit user request

    line 9

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot Instructions — AETHER_01

Always

  • Never print to stdout — MCP uses stdout for JSON-RPC exclusively
  • Always canonicalize file paths before operations
  • Always check force: true for dangerous operations
  • Always audit-log via audit::log_* functions
  • Never modify mcp.json or .env without explicit user request

Project Context

This is AETHER_01 — a Windows MCP server in Rust (edition 2021). 10 tools for 99% Windows management over stdio transport. Target: Windows 10/11 x86-64 MSVC only.

Build: cargo check (verify) / cargo build (binary). Release profile is hardened with CFG/ASLR/DEP/static CRT.

Key Dependencies

  • rmcp 0.5 — MCP SDK, use #[tool_router(router = tool_router)] + #[tool_handler(router = self.tool_router)]
  • windows 0.58 — Win32 API, avoid importing windows::core::* (it shadows std::result::Result)
  • windows-registry 0.3 — high-level registry crate
  • tracing 0.1 — logging to stderr with .with_ansi(false).with_writer(std::io::stderr)

Adding a Tool Action

// In handle_* function in tools/<tool>.rs:
"new_action" => {
    let param = params.get("key")
        .and_then(|v| v.as_str())
        .ok_or_else(|| AetherError::invalid_param("key is required"))?;

    check_force(&params)?;  // if dangerous

    // Win32 API call
    let result = unsafe { SomeWin32Function(param) }
        .map_err(|e| AetherError::win32(e))?;

    audit::log_success("tool_name", "new_action", &format!("param={param}"));
    Ok(serde_json::json!({"status":"ok"}).to_string())
}

Error Pattern

// Win32 errors: always translate
.map_err(|e| AetherError::win32(e))?

// Not found
AetherError::not_found("Registry key not found: HKLM\\...\\MissingKey")

// Permission
AetherError::permission_denied("Это опасная операция. Используйте `\"force\": true`")

// Feature disabled
server.gates.check(server.gates.bcd_edit, "AETHER_BCD_EDIT")?;

Warning Signs (flag these in review)

  • use windows::core::* — shadows Result, only import needed types
  • Result<T, E> instead of std::result::Result<T, AetherError>
  • Windows API calls without .map_err(|e| AetherError::win32(e))?
  • Dangerous operation without check_force(&params)?
  • Print to stdout (use tracing::info! to stderr instead)
  • Missing // SAFETY: comment on unsafe blocks

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.