Skip to content

Add tc-mcp MCP server#11

Merged
carldebilly merged 18 commits intomasterfrom
dev/cdb/mcp-server
Feb 16, 2026
Merged

Add tc-mcp MCP server#11
carldebilly merged 18 commits intomasterfrom
dev/cdb/mcp-server

Conversation

@carldebilly
Copy link
Copy Markdown
Member

Summary

New project Yllibed.TenantCloudClient.Mcp — a standalone Model Context Protocol server (tc-mcp) that exposes TenantCloud data to AI agents (Claude Desktop, Claude Code, Cursor, etc.).

MCP Tools

Tool Description Filters
get_user_info Current signed-in user profile
list_contacts Tenants, professionals, etc. role, maxResults
list_properties Rental properties maxResults
list_units Rental units propertyId, occupancy, maxResults
list_transactions Financial transactions tenantId, propertyId, unitId, status, category, maxResults
list_leases Lease agreements propertyId, unitId, status, maxResults

A tc://guide resource is also exposed to help the AI agent resolve human-readable names to IDs (e.g. "Evergreen Terrace" → propertyId) and understand available filters.

Auto-configuration

tc-mcp install claude-desktop   # Patches the config JSON
tc-mcp install claude-code      # Runs claude mcp add

Distribution

The CI pipeline publishes self-contained binaries for 6 platforms (win-x64, win-arm64, osx-x64, osx-arm64, linux-x64, linux-arm64) plus a portable .NET 10 build. All assets are attached to GitHub Releases.

Documentation

The README is restructured as a hub linking to dedicated sub-documents: docs/client-library.md, docs/mcp-server.md, docs/authentication.md. NuGet packages get their own READMEs (docs/nuget-client.md, docs/nuget-cdp.md).

Technical notes

  • Source-generated JSON serialization (McpJsonContext) for AOT trimming compatibility
  • The MCP SDK (ModelContextProtocol 0.8.0-preview.1) is in preview — API may change
  • CdpTokenProvider is registered directly in DI (not via AddCdpTokenProvider extension) because AllowInteractiveLogin is an init-only property

- Introduced `Yllibed.TenantCloudClient.Mcp` project targeting .NET 10.
- Implemented `InstallCommand` for registering `tc-mcp` with Claude Desktop and Claude Code.
- Added dependency injection for MCP JSON-RPC tools (e.g., UserTools, ContactTools).
- Updated solution file and dependency versions in `Directory.Packages.props`.
- Added detailed documentation: `client-library.md`, `nuget-cdp.md`, `nuget-client.md`, `authentication.md`, and `mcp-server.md`.
- Implemented `publish-binaries` and `release` steps in CI pipeline for binary artifacts and GitHub Releases.
- Updated NuGet packaging metadata to include new docs and rename README files.
- Enhanced `Yllibed.TenantCloudClient.Mcp` with MCP tools, custom JSON serialization, and `ListResult` wrapper class for paginated results.
- Added `SchemaResource` for MCP guide resource and expanded tool support in `McpJsonContext`.
…upport

- Enhanced `TestBase` to dynamically resolve token provider using `TC_AUTH_TOKEN`, CI variables, and interactive login when applicable.
- Introduced `CdpTokenProvider` with secure token storage and support for non-CI interactive login.
- Updated project file to include `Yllibed.TenantCloudClient.Cdp` dependency for handling CDP-based token resolution.
- Implemented command parsing to distinguish between `install`, `mcp`, and unrecognized commands.
- Added a user-friendly help menu with usage instructions for `tc-mcp`.
- Modified `InstallCommand` to include "mcp" as a default argument for smooth integration with Claude tools.
…ckends

- Introduced `tc-mcp login` and `tc-mcp logout` commands for authentication and credential removal, stored securely using platform-specific solutions (DPAPI on Windows, Keychain on macOS, Secret Service on Linux).
- Added `DeleteAsync` support to `ISecureStorageBackend` implementations and `ITcTokenStore` for token deletion.
- Updated documentation with usage instructions for login/logout commands.
…ts with human-readable references

- Introduced `EntityCache` for caching properties, units, and contacts, enabling fast ID lookups.
- Enhanced MCP tools (`list_transactions`, `list_leases`, `list_units`) to enrich JSON results with a `references` section mapping IDs to names.
- Added `EntityEnricher` for appending enriched reference data to tool outputs.
- Implemented `EntityResources` for resolving entity details via MCP resources.
- Implemented `JsonTcLeaseStatusConverter` for custom serialization/deserialization of `TcLeaseStatus`.
- Updated `JsonTcTransactionStatusConverter` to use string values instead of byte values for `TcTransactionStatus`.
- Enhanced MCP outputs by resolving unit names with associated property names in `EntityEnricher`.
- Registered `SchemaResource` in MCP tool builder.
…P outputs

- Added `TenantId` and `PayerId` properties to `TcLease` and `TcTransaction` respectively.
- Updated `EntityEnricher` to resolve `user_client_id` and `user_payer_id` as `contacts`.
- Enhanced `SchemaResource` to include `contacts` in the `references` section for enriched MCP outputs.
…r implementation.

- Enhance `EntityCache` to include signed-in user in `contacts` for resolving `user_payer_id` references.
@carldebilly carldebilly merged commit de71bc0 into master Feb 16, 2026
6 checks passed
@carldebilly carldebilly deleted the dev/cdb/mcp-server branch February 16, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant