Skip to content

Commit e1afdc5

Browse files
sai-aarnaclaude
andcommitted
Add /.well-known/mcp/server-card.json endpoint for Smithery discovery
Smithery requires this endpoint to verify and index the MCP server without auto-scanning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b41e75b commit e1afdc5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

apps/api/src/app.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ export function createApp(): Application {
6565
});
6666
});
6767

68+
// MCP Server Card — enables Smithery and other registries to discover this server
69+
app.get('/.well-known/mcp/server-card.json', (_req, res) => {
70+
res.json({
71+
name: 'ATV',
72+
description:
73+
"Access Aarna's DeFi yield vaults — query NAV/TVL/APY, build transactions, track portfolios.",
74+
url: 'https://atv-api.aarna.ai/mcp',
75+
transport: 'streamable-http',
76+
authentication: {
77+
type: 'apiKey',
78+
in: 'header',
79+
name: 'x-api-key',
80+
},
81+
version: '1.0.1',
82+
});
83+
});
84+
6885
// Serve the OpenAPI spec as JSON (useful for tooling / SDK generation)
6986
app.get('/openapi.json', (_req, res) => {
7087
res.json(openApiSpec);

0 commit comments

Comments
 (0)