moving things around now that /react is moving to use-mcp
This commit is contained in:
parent
7ea70144b7
commit
d41e92812f
5 changed files with 22 additions and 1264 deletions
|
@ -14,7 +14,7 @@ import { Client } from '@modelcontextprotocol/sdk/client/index.js'
|
|||
import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js'
|
||||
import { ListResourcesResultSchema, ListToolsResultSchema } from '@modelcontextprotocol/sdk/types.js'
|
||||
import { UnauthorizedError } from '@modelcontextprotocol/sdk/client/auth.js'
|
||||
import { NodeOAuthClientProvider, setupOAuthCallbackServer, parseCommandLineArgs, setupSignalHandlers } from './shared.js'
|
||||
import { NodeOAuthClientProvider, setupOAuthCallbackServer, parseCommandLineArgs, setupSignalHandlers } from './shared'
|
||||
|
||||
/**
|
||||
* Main function to run the client
|
||||
|
@ -33,13 +33,11 @@ async function runClient(serverUrl: string, callbackPort: number) {
|
|||
// Create the client
|
||||
const client = new Client(
|
||||
{
|
||||
name: 'mcp-cli',
|
||||
version: '0.1.0',
|
||||
name: 'mcp-remote',
|
||||
version: require('../package.json').version,
|
||||
},
|
||||
{
|
||||
capabilities: {
|
||||
sampling: {},
|
||||
},
|
||||
capabilities: {},
|
||||
},
|
||||
)
|
||||
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
import { EventEmitter } from 'events'
|
||||
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
||||
import { NodeOAuthClientProvider, setupOAuthCallbackServer, parseCommandLineArgs, setupSignalHandlers } from './shared.js'
|
||||
import { connectToRemoteServer, mcpProxy } from '../lib/utils.js'
|
||||
import { NodeOAuthClientProvider, setupOAuthCallbackServer, parseCommandLineArgs, setupSignalHandlers } from './shared'
|
||||
import { connectToRemoteServer, mcpProxy } from './lib/utils'
|
||||
|
||||
/**
|
||||
* Main function to run the proxy
|
1243
src/react/index.ts
1243
src/react/index.ts
File diff suppressed because it is too large
Load diff
|
@ -18,7 +18,7 @@ import {
|
|||
OAuthTokens,
|
||||
OAuthTokensSchema,
|
||||
} from '@modelcontextprotocol/sdk/shared/auth.js'
|
||||
import { OAuthCallbackServerOptions, OAuthProviderOptions } from '../lib/types.js'
|
||||
import { OAuthCallbackServerOptions, OAuthProviderOptions } from './lib/types'
|
||||
|
||||
/**
|
||||
* Implements the OAuthClientProvider interface for Node.js environments.
|
Loading…
Add table
Add a link
Reference in a new issue