Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/cli/src/commands/gh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ export const ghCommand = new Command('gh')
)
.addCommand(
new Command('search')
.description('Search GitHub issues and PRs')
.description('Search GitHub issues and PRs (defaults to open issues)')
.argument('<query>', 'Search query')
.option('--type <type>', 'Filter by type (issue, pull_request)')
.option('--state <state>', 'Filter by state (open, closed, merged)')
.option('--type <type>', 'Filter by type (default: issue)', 'issue')
.option('--state <state>', 'Filter by state (default: open)', 'open')
.option('--author <author>', 'Filter by author')
.option('--label <labels...>', 'Filter by labels')
.option('--limit <number>', 'Number of results', Number.parseInt, 10)
Expand Down Expand Up @@ -142,10 +142,10 @@ export const ghCommand = new Command('gh')

spinner.text = 'Searching...';

// Search
// Search with smart defaults (type: issue, state: open)
const results = await ghIndexer.search(query, {
type: options.type as 'issue' | 'pull_request' | undefined,
state: options.state as 'open' | 'closed' | 'merged' | undefined,
type: options.type as 'issue' | 'pull_request',
state: options.state as 'open' | 'closed' | 'merged',
author: options.author,
labels: options.label,
limit: options.limit,
Expand Down
18 changes: 16 additions & 2 deletions packages/mcp-server/bin/dev-agent-mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { RepositoryIndexer } from '@lytics/dev-agent-core';
import { SearchAdapter } from '../src/adapters/built-in/search-adapter';
import { PlanAdapter, SearchAdapter, StatusAdapter } from '../src/adapters/built-in';
import { MCPServer } from '../src/server/mcp-server';

// Get config from environment
Expand All @@ -31,6 +31,20 @@ async function main() {
defaultLimit: 10,
});

const statusAdapter = new StatusAdapter({
repositoryIndexer: indexer,
repositoryPath,
vectorStorePath,
defaultSection: 'summary',
});

const planAdapter = new PlanAdapter({
repositoryIndexer: indexer,
repositoryPath,
defaultFormat: 'compact',
timeout: 60000, // 60 seconds
});

// Create MCP server
const server = new MCPServer({
serverInfo: {
Expand All @@ -42,7 +56,7 @@ async function main() {
logLevel,
},
transport: 'stdio',
adapters: [searchAdapter],
adapters: [searchAdapter, statusAdapter, planAdapter],
});

// Handle graceful shutdown
Expand Down
Loading