tpmjs/packages
Ajax Davis a3f1f3935e feat: add API key authentication system and update documentation
API Key System:
- Add TpmjsApiKey, ApiUsageRecord, ApiUsageSummary models to schema
- Create API key utilities (generate, hash, mask with tpmjs_sk_ prefix)
- Implement dual auth middleware (session + API key)
- Add rate limiting with Vercel KV
- Create CRUD endpoints for API key management
- Add usage tracking and analytics endpoint
- Build API key management UI in dashboard
- Build usage dashboard with charts

Route Protection:
- Require auth for MCP endpoints (mcp:execute scope)
- Require auth for agent chat (agent:chat scope)
- Require auth for bridge connections (bridge:connect scope)

Documentation Updates:
- Update all curl/fetch examples with Authorization header
- Document API key format, scopes, and rate limits
- Update PRD-MCP-BRIDGE.md, MCP-AGGREGATOR-DESIGN.md
- Update API docs page with auth requirements
- Update HOW_TO_PUBLISH_A_TOOL.md
2026-01-13 04:45:52 +10:00
..
bridge feat: complete MCP Bridge implementation 2026-01-13 00:59:34 +10:00
config fix: enable Biome CSS tailwindDirectives for @apply parsing 2026-01-09 23:35:53 +10:00
db feat: add API key authentication system and update documentation 2026-01-13 04:45:52 +10:00
env chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
mcp-client feat: complete MCP Bridge implementation 2026-01-13 00:59:34 +10:00
mocks chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
npm-client chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
package-executor fix: increase tool execution timeout to 5 minutes 2026-01-12 04:16:15 +10:00
storybook fix: enable Biome CSS tailwindDirectives for @apply parsing 2026-01-09 23:35:53 +10:00
test chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
tool-ideas chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00
tools feat: complete MCP Bridge implementation 2026-01-13 00:59:34 +10:00
types feat: complete MCP Bridge implementation 2026-01-13 00:59:34 +10:00
ui fix: resolve new ESLint rules from eslint-plugin-react-hooks update 2026-01-09 23:25:15 +10:00
utils chore: update dependencies with compatibility fixes 2026-01-09 22:49:41 +10:00