Add tc-mcp MCP server#11
Merged
carldebilly merged 18 commits intomasterfrom Feb 16, 2026
Merged
Conversation
- 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.
… date string test
- 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.
…on for MCP usage adjustments
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
get_user_infolist_contactsrole,maxResultslist_propertiesmaxResultslist_unitspropertyId,occupancy,maxResultslist_transactionstenantId,propertyId,unitId,status,category,maxResultslist_leasespropertyId,unitId,status,maxResultsA
tc://guideresource 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
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
McpJsonContext) for AOT trimming compatibilityModelContextProtocol0.8.0-preview.1) is in preview — API may changeCdpTokenProvideris registered directly in DI (not viaAddCdpTokenProviderextension) becauseAllowInteractiveLoginis aninit-onlyproperty