Skip to content

Commit 698df59

Browse files
committed
MCP Server Infrastructure Cleanup
1 parent f9cb2de commit 698df59

19 files changed

+280
-295
lines changed

.github/copilot-instructions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,18 @@ These instructions apply to all work in this repository.
3535
- Use the existing scripts in `scripts/` and root automation scripts when available.
3636
- Avoid introducing new dependencies unless necessary and justified.
3737

38+
## Database Operations and Inspection
39+
- When asked about database operations, schema inspection, or data queries, **use `hana-cli` commands directly** to inspect and interact with the database.
40+
- Common database inspection commands:
41+
- `hana-cli tables` - List all tables in the current schema
42+
- `hana-cli inspectTable [schema] [table]` - Show table columns and structure
43+
- `hana-cli querySimple --query "SELECT * FROM TABLE"` - Execute SQL with `--query` flag (supports `--output json|csv|table|excel`)
44+
- `hana-cli indexes [schema] [table]` - List indexes on a table
45+
- `hana-cli dependencies [schema] [object]` - Show object dependencies
46+
- **Important**: Always use the `--query` flag with querySimple: `hana-cli querySimple --query "SQL statement"` (not positional arguments)
47+
- Use actual database queries via `hana-cli` rather than relying on code inspection; this provides real, up-to-date information for testing and validation.
48+
- For custom SQL queries, use `hana-cli querySimple` to execute the SQL and get structured JSON results back, enabling programmatic analysis.
49+
- Document any database schema changes, new tables, or structural modifications discovered during inspection.
50+
3851
## Output Expectations
3952
- Provide concise summaries of changes and recommended follow-ups.

mcp-server/build/command-metadata.d.ts

Lines changed: 44 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,59 +14,67 @@ export interface CommandMetadata {
1414
* Category definitions with descriptions
1515
*/
1616
export declare const CATEGORIES: {
17-
readonly 'database-info': {
18-
readonly name: "Database Information";
19-
readonly description: "View and analyze database structure, metadata, and current state";
17+
readonly 'data-tools': {
18+
readonly name: "Data Tools";
19+
readonly description: "Import, export, compare, validate, and manage data across systems";
2020
};
21-
readonly 'data-quality': {
22-
readonly name: "Data Quality & Validation";
23-
readonly description: "Check data integrity, find duplicates, validate against rules";
21+
readonly 'schema-tools': {
22+
readonly name: "Schema Tools";
23+
readonly description: "Explore schemas, tables, views, and database object metadata";
2424
};
25-
readonly 'data-operations': {
26-
readonly name: "Data Operations";
27-
readonly description: "Import, export, copy, sync data between systems";
25+
readonly 'object-inspection': {
26+
readonly name: "Object Inspection";
27+
readonly description: "Inspect tables, views, procedures, indexes, and related objects";
2828
};
29-
readonly 'performance-analysis': {
30-
readonly name: "Performance Analysis";
31-
readonly description: "Analyze memory usage, expensive operations, and bottlenecks";
29+
readonly 'analysis-tools': {
30+
readonly name: "Analysis Tools";
31+
readonly description: "Analyze dependencies, privileges, calculations, and relationships";
3232
};
33-
readonly 'schema-management': {
34-
readonly name: "Schema Management";
35-
readonly description: "Clone, compare, and analyze database schemas";
36-
};
37-
readonly security: {
38-
readonly name: "Security & Access Control";
39-
readonly description: "Manage users, roles, privileges, and audit trails";
33+
readonly 'performance-monitoring': {
34+
readonly name: "Performance Monitoring";
35+
readonly description: "Monitor performance, expensive operations, and system bottlenecks";
4036
};
4137
readonly 'backup-recovery': {
4238
readonly name: "Backup & Recovery";
43-
readonly description: "Create backups, manage restore points, check backup status";
39+
readonly description: "Create backups, manage restores, and verify recovery readiness";
4440
};
4541
readonly 'system-admin': {
4642
readonly name: "System Administration";
47-
readonly description: "General system health, configuration, and diagnostics";
43+
readonly description: "System health, configuration, diagnostics, and maintenance";
44+
};
45+
readonly 'system-tools': {
46+
readonly name: "System Tools";
47+
readonly description: "System diagnostics, logs, host info, and runtime utilities";
48+
};
49+
readonly security: {
50+
readonly name: "Security";
51+
readonly description: "User, role, privilege, and security audit management";
52+
};
53+
readonly 'mass-operations': {
54+
readonly name: "Mass Operations";
55+
readonly description: "Bulk operations for grants, updates, deletions, and conversions";
4856
};
49-
readonly 'cloud-management': {
50-
readonly name: "SAP HANA Cloud Management";
51-
readonly description: "Manage SAP HANA Cloud instances and subscriptions";
57+
readonly 'connection-auth': {
58+
readonly name: "Connection & Auth";
59+
readonly description: "Connection setup, authentication helpers, and configuration tools";
60+
};
61+
readonly 'btp-integration': {
62+
readonly name: "BTP Integration";
63+
readonly description: "SAP BTP integration tools and account management utilities";
64+
};
65+
readonly 'hana-cloud': {
66+
readonly name: "HANA Cloud";
67+
readonly description: "Manage SAP HANA Cloud instances and related services";
5268
};
5369
readonly 'hdi-management': {
5470
readonly name: "HDI Management";
55-
readonly description: "Manage HDI (HANA Deployment Infrastructure) containers and groups";
56-
};
57-
readonly 'monitoring-diagnostics': {
58-
readonly name: "Monitoring & Diagnostics";
59-
readonly description: "Monitor system events, diagnose issues, analyze logs";
71+
readonly description: "Manage HDI containers, groups, and deployment operations";
6072
};
61-
readonly utilities: {
62-
readonly name: "Utilities & Tools";
63-
readonly description: "Generate documentation, test data, and perform mass operations";
73+
readonly 'developer-tools': {
74+
readonly name: "Developer Tools";
75+
readonly description: "Developer utilities, templates, docs, and interactive helpers";
6476
};
6577
};
66-
/**
67-
* Complete command metadata registry
68-
* Organized by command name for quick lookup
69-
*/
7078
export declare const COMMAND_METADATA_MAP: Record<string, Omit<CommandMetadata, 'command'>>;
7179
/**
7280
* Workflow definition for multi-step tasks

mcp-server/build/command-metadata.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-server/build/command-metadata.js

Lines changed: 63 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-server/build/command-metadata.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-server/build/examples-presets.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp-server/build/examples-presets.js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)