Freenaute.Freebox.Mcp.linux-x64
1.1.0
dotnet add package Freenaute.Freebox.Mcp.linux-x64 --version 1.1.0
NuGet\Install-Package Freenaute.Freebox.Mcp.linux-x64 -Version 1.1.0
<PackageReference Include="Freenaute.Freebox.Mcp.linux-x64" Version="1.1.0" />
<PackageVersion Include="Freenaute.Freebox.Mcp.linux-x64" Version="1.1.0" />
<PackageReference Include="Freenaute.Freebox.Mcp.linux-x64" />
paket add Freenaute.Freebox.Mcp.linux-x64 --version 1.1.0
#r "nuget: Freenaute.Freebox.Mcp.linux-x64, 1.1.0"
#:package Freenaute.Freebox.Mcp.linux-x64@1.1.0
#addin nuget:?package=Freenaute.Freebox.Mcp.linux-x64&version=1.1.0
#tool nuget:?package=Freenaute.Freebox.Mcp.linux-x64&version=1.1.0
Freenaute Freebox MCP
Local stdio Model Context Protocol server for Freebox discovery, pairing coordination, and read-only system/network status. Pairing always requires explicit physical approval on the Freebox display.
- Package:
Freenaute.Freebox.Mcp(NuGet, package typesDotnetTool+McpServer) - MCP server name (
.mcp/server.json):org.freenaute/freenaute-freebox-mcp - Tool command:
freenaute-freebox-mcp - Runtime: .NET 11 (
net11.0), C# 15, Native AOT, self-contained, single-file, invariant globalization - Transport: stdio only — JSON-RPC on stdin/stdout, all logs on stderr
- Launch policy: no command-line arguments are accepted
Install
# .NET global tool
dotnet tool install --global Freenaute.Freebox.Mcp
# or run without installing (dnx)
dnx Freenaute.Freebox.Mcp --version 1.0.0 --yes
Use from an MCP client
{
"mcpServers": {
"freenaute-freebox-mcp": {
"type": "stdio",
"command": "freenaute-freebox-mcp"
}
}
}
Configuration (environment variables)
All optional; configured by host runtime environment:
| Variable | Default | Meaning |
|---|---|---|
FREEBOX_APPLICATION_ID |
org.freenaute.freebox-mcp |
Registered Freebox application identifier. |
FREEBOX_APPLICATION_NAME |
Freenaute Freebox MCP |
Application name shown during pairing. |
FREEBOX_DEVICE_NAME |
machine name | Device name shown during pairing. |
FREEBOX_CREDENTIAL_PROFILE |
default |
Credential profile; scopes the stored credential with the application ID and Freebox UID. |
FREEBOX_ALLOW_PAIRING_INITIATION |
unset (disabled) | Set exactly to 1, true, or TRUE to allow the freebox_pairing_initiate tool. Startup bootstrap does not require this opt-in. |
FREEBOX_SERVER_ADDRESS |
https://mafreebox.freebox.fr/ |
Freebox server base address passed to the Freebox client. |
FREEBOX_PAIRING_POLL_INTERVAL_SECONDS |
2 |
Default polling interval (seconds) used by freebox_pairing_wait when no explicit argument is provided. Must be > 0. |
FREEBOX_PAIRING_WAIT_TIMEOUT_SECONDS |
600 |
Default timeout (seconds) used by freebox_pairing_wait when no explicit argument is provided. Must be > 0. |
FREEBOX_AUTHENTICATE_ON_STARTUP |
true |
Enables startup authentication bootstrap (reuse persisted credentials; if missing/expired, initiate pairing and wait for physical approval automatically). |
FREEBOX_CREDENTIAL_FILE |
unset (OS vault) | Optional path to an AES-256-GCM encrypted credential file (container/headless mode). When set, it takes priority over the OS vault; requires FREEBOX_CREDENTIAL_PASSPHRASE_FILE. |
FREEBOX_CREDENTIAL_PASSPHRASE_FILE |
unset | Path to the file containing the passphrase used by PBKDF2-SHA256 (with per-file random salt) to derive the AES-256 key for FREEBOX_CREDENTIAL_FILE. |
Do not write application tokens or credentials into MCP configuration files, environment variables, or arguments.
Tools and resources
Tools are organized by families: discovery, pairing, network, system, downloads, calls, cameras, contacts, AirMedia, shares, parental, and notifications.
Resources: freebox://docs/en/overview, freebox://docs/en/resources, freebox://docs/fr/overview,
freebox://docs/fr/resources, and freebox://live/status (current sanitized status).
All status tools are read-only, sanitized and bounded: no hostnames, IP/MAC addresses, SSIDs or tokens are ever returned; host identifiers are SHA-256 hashes.
Pairing
freebox_pairing_status→ state (Missingon first run).- Startup bootstrap (
FREEBOX_AUTHENTICATE_ON_STARTUP=true) automatically initiates pairing when no valid token is available and waits for physical approval on the Freebox display. freebox_pairing_initiatecan still be used manually, but it remains gated byFREEBOX_ALLOW_PAIRING_INITIATION=1|true|TRUE.- Approve on the Freebox, then
freebox_pairing_wait(optionallypollIntervalSecondsandtimeoutSeconds) →Approved; the app token is stored encrypted in the OS credential vault. - Read-only tools (
freebox_connection_status,freebox_lan_overview,freebox_wifi_status,freebox_system_status) now work.
The server intentionally has no CLI side-channel. Pairing and credential bootstrap are handled only through MCP tools and startup automation.
Security
See Security/README.md for the full storage matrix and rules:
- Windows: Credential Manager (
CredWriteW/CredReadW/CredDeleteW, DPAPI-encrypted, local machine). - Linux: libsecret via the
secret-toolCLI when the binary is onPATH. - Containers/headless: AES-256-GCM encrypted file when
FREEBOX_CREDENTIAL_FILEis set. - Anything else: fail-closed, nothing persisted in plaintext.
- Storage key: SHA-256 of Freebox UID + application ID + profile. Session tokens stay in memory only (
X-Fbx-App-Authheader). Secrets are redacted from logs (stderr only).
Build and package (from the repository root)
dotnet restore Freenaute.Freebox.MCP.slnx
dotnet build Freenaute.Freebox.MCP.slnx -c Release --no-restore
dotnet test Freenaute.Freebox.MCP.slnx -c Release
# Native AOT single-file publish, one RID (win-x64|win-arm64|linux-x64|linux-arm64)
dotnet publish mcp/Freenaute.Freebox.Mcp/Freenaute.Freebox.Mcp.csproj `
-c Release -r win-x64 --self-contained true -p:PublishAot=true `
--output .artifacts/publish/1.0.0/win-x64
# NuGet package (DotnetTool + McpServer, embeds .mcp/server.json and this README)
dotnet pack mcp/Freenaute.Freebox.Mcp/Freenaute.Freebox.Mcp.csproj -c Release # -> .artifacts/package
CI/CD release automation (binaries, NuGet package, containers, SBOM, checksums): .github/workflows/release.yml
PublishAot, single-file publishing, and invariant globalization are already set in the
project. Keep warnings from the AOT/trimming/single-file analyzers enabled, and smoke-test
the published artifact for every supported RID (win-x64, win-arm64, linux-x64,
linux-arm64) because Native AOT output is platform-specific. Avoid runtime reflection or
dynamic code generation in new registrations or tool metadata.
Program.cs is the host composition root: register feature services before Build(),
construct one host, and let DI own service disposal. The AddFreebox... extension methods
keep reusable registration bundles, options fail at startup via ValidateOnStart(), and
startup authentication is hosted through the normal host lifetime. Do not add
BuildServiceProvider() calls to registration code.
Microsoft Learn references: Native AOT deployment, dependency injection overview, and dependency injection guidelines.
MCP smoke test
The MCP stdio transport is newline-delimited JSON. Send this as one line on stdin:
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke-test","version":"1.0"}}}
A successful response contains the Freenaute.Freebox.Mcp server identity and the MCP tools/resources
capabilities.
More information
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 61 | 11/23/2026 |